Standalone Loginserver (Development) (from l2j.sf.net)
Standalone Loginserver (Development)
Hello,
There is a great expansion limit with l2j and the lack of modular gameservers. I would like to build one that is standalone or atleast modular that you can turn on and off.
Here is what i've got:
First, we read the config variables to see if we're turning each one on or off. You simply edit server.properties and add EnableGameserver = False or True and EnableLoginserver = False or True.
>net.sf.l2j.Config.java
Line 38:
code:
public static final boolean ENABLE_GAMESERVER;
public static final boolean ENABLE_LOGINSERVER;
Line 399:
code:
ENABLE_GAMESERVER = Boolean.parseBoolean(serverSettings.getProperty("EnableGameserver", "true"));
ENABLE_LOGINSERVER = Boolean.parseBoolean(serverSettings.getProperty("EnableLoginserver", "true"));
Here is the part that turn the server on or off based on that code.
>net.sf.l2j.Server.java
Line 70:
code:
if(Config.ENABLE_GAMESERVER){
gameServer = new GameServer();
**
if(Config.ENABLE_LOGINSERVER){
loginServer = LoginServer.getInstance();
**
The loginserver runs independently fine. Next, we have to register the gameservers from remote locations.
The loginserver needs to pick which server to send the login information to.
The gameserver needs to initiate a remote connection to a remote loginserver
The Loginserver needs "server" accounts that the gameserver can login with to prevent abuse.
This post has been edited 2 time(s), it was last edited by kinko on 30-10-2005 at 22:50.