• 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!

Creating a multi-world.

frankfarmer

who'r ninja now
Premium User
Joined
Aug 5, 2008
Messages
1,581
Reaction score
80
Can someone please explain to me how i make game worlds?

Lua:
<?xml version="1.0" encoding="UTF-8"?>
<servers>
	<server id="0" name="Server 1" versionMin="850" versionMax="852" address="realtibia.servegame.com" port="7171"/>
	<server id="1" name="Server 2" versionMin="850" versionMax="852" address="customtibia.servegame.com" port="7172"/>
</servers>

Lua:
	-- Connection config
	worldId = 0
	ip = "server 1"
	bindOnlyConfiguredIpAddress = false
	loginPort = 7171
	gamePort = 7172
	adminPort = 7171
	statusPort = 7171

Lua:
	-- Connection config
	worldId = 1
	ip = "server 2"
	bindOnlyConfiguredIpAddress = false
	loginPort = 7171
	gamePort = 7173
	adminPort = 7171
	statusPort = 7171

What does this mean?
Lua:
	loginOnlyWithLoginServer = false

Question

How do I start two game worlds and the character list works like global tibia?

Thanks!
 
I do not know how to do multiworld properly, however this little bit of information may help.
When they were talking about using only ONE data directory, what they were referring to was this, in your config.lua
Code:
	dataDirectory = "data/"

With this line, it allows multiworld hosts to have each config.lua and therefore server .exe linked to the one data directory, like so.

SERVER ONE
/xampp/htdocs/SERVER ONE/config.lua
Code:
EXTRACT:
        worldId = 0
        ...
	dataDirectory = "/xampp/htdocs/DATA DIR"

SERVER TWO
/xampp/htdocs/SERVER TWO/config.lua
Code:
EXTRACT:
        worldId = 1
        ...
	dataDirectory = "/xampp/htdocs/DATA DIR"

Then with this set up, the servers.xml /data/XML/servers.xml) can be set up like so:
Code:
server id="0" name="SERVER ONE" versionMin="841" versionMax="842" address="127.0.0.1" port="7171"
server id="1" name="SERVER TWO" versionMin="841" versionMax="842" address="127.0.0.1" port="7171"

I hope that helped a little
 
Last edited:
hmm

I think what frank wants is just a straight out tutorial for how to do this step by step. I do too :\ would be nice. there are tutorials for making a server with screenshots. why not , making a multi world? :D
 
if im correct and correct me if im wrong but im tryin to host 2 servers and it keeps stuffing up on me im bout to try otherways but this is 1 way i no
loginPort = 7171
gamePort = 7172
adminPort = 7171
statusPort = 7171
and second server should be
loginPort = 7174
gamePort = 7173
adminPort = 7171
statusPort = 7171

hence i seen u guys never changed the login port im sure it needs its on login port or u will login into the 1st server and not the second (if im right lol)
 
This should be pretty easy. Just 2 folders with each server/data in it. Have different database and it should work.
 
Sorry to bump an old thread but this is pissing me off...
I have searched for hours, found so many conflicting answers its rediculous
I am trying to get multi world going. Its worked on this tfs version before (0.4) previous owner had it running.
Trying to set it like RL tibia, log into either world using the same login server (no ip changer)
I have set all as follows
Servers.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<servers>
    <server id="0" name="Erandria" versionMin="870" versionMax="870" address="91.121.157.20" port="7172"/>
    <server id="1" name="DevServer" versionMin="870" versionMax="870" address="91.121.157.20" port="7173"/>
</servers>

Then Server one config
Code:
worldId = 0
    ip = "xx.xxx.xxx.xx"
    bindOnlyGlobalAddress = false
    loginPort = 7171
    gamePort = 7172
    loginTries = 3
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 1000
    motd = "Welcome to yadyada server."
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = 0
    serverName = "Erandria"
    loginMessage = ""
    statusTimeout = 1 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = false
    premiumPlayerSkipWaitList = false

Server two config
Code:
worldId = 1
    ip = "xx.xxx.xxx.xx"
    bindOnlyGlobalAddress = false
    loginPort = 7174
    gamePort = 7173
    loginTries = 3
    retryTimeout = 5 * 1000
    loginTimeout = 60 * 1000
    maxPlayers = 1000
    motd = "Welcome to the development server."
    displayOnOrOffAtCharlist = false
    onePlayerOnlinePerAccount = false
    allowClones = 0
    serverName = "Erandria Dev"
    loginMessage = ""
    statusTimeout = 1 * 60 * 1000
    replaceKickOnLogin = true
    forceSlowConnectionsToDisconnect = false
    loginOnlyWithLoginServer = true
    premiumPlayerSkipWaitList = false

Now both server in different folder (of course)
Both share same database, however when attempting to login I only see server ID 0 and not my second one
Second world runs if I change login port to 7174 but if using 7171 I get the following
Code:
theforgottenserver: /usr/include/boost/thread/pthread/condition_variable_fwd.hpp:46: boost::condition_variable::~condition_variable(): Assertion `!pthread_mutex_destroy(&internal_mutex)' failed.
Aborted

bump bump

Compiled with login server just to be sure, come up saying it was enabled but still wont recognize the second world at all
 
Last edited by a moderator:
Back
Top