• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Tibia Multi World System help!

tommy91

Member
Joined
Oct 27, 2010
Messages
265
Solutions
1
Reaction score
21
Location
Sweden
Heya! I am wondering if anyone did get this to work? I am attempting to have two servers on the same ip and i heard of this Multiworld.

Please, can you help me?
 
As far as I know multiworld is only supported by TFS 0.3 and 0.4. On 1.0 it will not work, but I might be wrong.

You need to have separate config.lua for each world, then you start TFS with this option:
./tfs --config=your_world_config.lua

and second world with:
./tfs --config=your_second_world_config.lua

In each configs you need to have different gamePort. Like for world1 7172 and for world2 7173.

Also you need to compile TFS with __LOGIN_SERVER__ option. This will be the login server people will use to login to your server.
When you compile it, you paste it in your server dir with name like tfs_login. Then you need to set up data/XML/servers.xml with your servers. Port is your gamePort you set in config.lua.

That was I think. And as I said, it will work only on TFS 0.3 and 0.4.
 
Heya! I am wondering if anyone did get this to work? I am attempting to have two servers on the same ip and i heard of this Multiworld.

Please, can you help me?
I would say it is possible to do, although your best shot would be to extract login server part from TFS and run it separately, then compile your game servers without login server. If you want a hint, have a look at ProtocolLogin::getCharacterList() and see how Proxy servers are implemented. You would just need some sort of configuration to read in your login server (to specify available game servers) and store character's game server in database to know which one it belongs to. You could instead have separate databases for each of your game server and make login server to read from all of them (or keep part of these databases replicated - accounts & player world/name in a separate database for login server).

Also if you only want to use the same IP, but don't care about the ports, you could have two completely separate servers on the same IP/domain, just use different port numbers.
 

Similar threads

Replies
14
Views
606
Back
Top