• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

(Help please) Multi-world system gameservers in TFS 0.3

Mazen

Developer
Joined
Aug 20, 2007
Messages
612
Reaction score
38
Location
Sweden
Hello, I've been working on using the multi-world system on TFS 0.3. But I'm having a problem with my login-server.

I have started one login-server(compiled with "-D__LOGIN_SERVER__" and has its own config file called "config.lua" as usual)

The gameserver "Sanera" is compiled as any ot server except that it has its own config file (Sanera.lua).

Here is my servers.xml file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<servers>
	<server id="1" name="Sanera" address="127.0.0.1" port="7172"/>
</servers>

In the config.lua(login-server config file) I changed all ports to 7171. On the Sanera.lua file I changed all ports to 7172 to avoid any port conflict between the login-server and the gameserver. I also changed worldId on config.lua to 0, and in Sanera.lua I changed it to 1.

When I was done, I successfully started the login-server(Console version) first wish loaded the gameworld Sanera. Then I started the gameserver Sanera without any problems. But when I tried to login the Login-server crashed.

(Note that both config files and both servers are in the same folder. I didn't make any copy of the rest of the files.)

Did I do anything wrong or did I misunderstand everything? I do know that I need one login-server and many gameservers with different ports. I did only one gameserver just for testing. So what have I missed? Please help me.
 
I too have the same problem
When I used to compile this configuration

Code:
./configure --enable-mysql --enable-server-diag --enable-login-server

When you want to connect it displays a list of my characters
but when I select my character it displays Invalid server address 10049

Configuration in config.lua I have the following
Code:
	-- Connection config
	worldId = 0
	ip = "mydominian.xx"
	loginPort = 7171
	gamePort = 7171
	adminPort = 7171
	statusPort = 7171
	loginTries = 10
	retryTimeout = 5 * 1000
	loginTimeout = 60 * 1000
	maxPlayers = "1000"
	motd = "Welcome to the Forgotten Server!"
	displayOnOrOffAtCharlist = "no"
	onePlayerOnlinePerAccount = "yes"
	allowClones = 0
	serverName = "Forgotten"
	loginMessage = "Welcome to the Forgotten Server!"
	adminLogsEnabled = "no"
	statusTimeout = 5 * 60 * 1000
	replaceKickOnLogin = "yes"
	forceSlowConnectionsToDisconnect = "yes"
	loginOnlyWithLoginServer = "yes"
and servers xml

<?xml version="1.0" encoding="UTF-8"?>
<servers>
<server id="0" name="Example" address="mydominian.xx" port="7171"/>
</servers>
 
Last edited:
I can't even connect to the character list. It crashes before I can connect to the character list.

May I ask, is this for linux? Cuz I use windows:
Code:
./configure --enable-mysql --enable-server-diag --enable-login-server

Btw, do I have to set these for the login-server, or is it the gameserver you mean?
forceSlowConnectionsToDisconnect = "yes"
loginOnlyWithLoginServer = "yes"

Also, I did compile the login-server with -D__LOGIN_SERVER__, do I have to compile that with the gameservers too?

Sorry, I'm a bit confused. :S

EDIT: Aff, the server crashed when I used these settings as you told me to. I didn't want to use the login-server as a gameserver, I wanted it to be separate.
 
Last edited:
It shouldn't be so complicated. I already got the login-server started but it still craches when I login. Maybe it's a bug? Cuz I'm almost 100% sure that there are no port conflicts.
 
YESS, I fixed the login-server. I forgot to rebuild it when I fixed the linkers.
The login-server is working and I can see my characters in Sanera, but I can't login on any of them.

Now the only problem here is the gameserver, is it the ports maybe? I'll try to use different loginport and not the same as the gameport and as the rest of the port configurations. Or maybe I shouldn't care about the loginport on the gameserver.
 
Last edited:

YESSS! If fixed it!

Look, I compiled the server wrong the first time. Now when everything is right, I changed the ports to:

Sanera.lua:
Code:
	loginPort = 7172
	gamePort = 7173
	adminPort = 7172
	statusPort = 7173

	loginOnlyWithLoginServer = "yes"

Server.xml:
Code:
<servers>
	<server id="2" name="Swevolutions" address="127.0.0.1" port="7171"/>
	<server id="1" name="Sanera" address="127.0.0.1" port="7173"/>
</servers>

Config.lua:
Code:
	worldId = 3
	loginPort = 7171
	gamePort = 7171
	adminPort = 7171
	statusPort = 7171

	loginOnlyWithLoginServer = "no"

Thats it. It worked. I logged in :D
 
YESSS! If fixed it!

Look, I compiled the server wrong the first time. Now when everything is right, I changed the ports to:

Sanera.lua:
Code:
	loginPort = 7172
	gamePort = 7173
	adminPort = 7172
	statusPort = 7173

	loginOnlyWithLoginServer = "yes"

Server.xml:
Code:
<servers>
	<server id="2" name="Swevolutions" address="127.0.0.1" port="7171"/>
	<server id="1" name="Sanera" address="127.0.0.1" port="7173"/>
</servers>

Config.lua:
Code:
	worldId = 3
	loginPort = 7171
	gamePort = 7171
	adminPort = 7171
	statusPort = 7171

	loginOnlyWithLoginServer = "no"

Thats it. It worked. I logged in :D

open swev again ;(
 
Back
Top