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:
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 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.