View Single Post
  #8  
Old 04-16-2010, 01:16 AM
gaeorn
Developer
 
Join Date: Apr 2009
Location: USA
Posts: 478
Default

I redid the multiple login server code from the ground up. It now can support unlimited login server connections. I also made changes to the open source login server and the game server so login server accounts can be updated from within the game. This requires that the world server connects to the login server with a world account/password that has the ServerTrusted flag set to 1 in tblWorldServerRegistration on the login server end.

To use multiple login servers, edit your eqemu_config.xml and replace the <loginserver> and </loginserver> lines with <loginserver1> and </loginserver1>. Then you can copy those lines and everything between them and change to <loginserver2> and </loginserver2>. Repeat for as many login servers as you want.

For example:
Code:
                <loginserver1>
                        <host>eqemulator.org</host>
                        <port>5998</port>
                        <account>worldaccount</account>
                        <password>worldpass</password>
                </loginserver1>
                <loginserver2>
                        <host>anotherls.org</host>
                        <port>5998</port>
                        <account>worldaccount</account>
                        <password>worldpass</password>
                </loginserver2>
                <loginserver3>
                        <host>mylocalhost</host>
                        <port>5998</port>
                        <account>worldaccount</account>
                        <password>worldpass</password>
                </loginserver3>
To allow a game server to update account information, you must create a world server account on the login server and then set ServerTrusted to 1 in the tblWorldServerRegistration table for that world account. Then when logged into the game, you can use #setlsinfo <email address> <password> and it will update all connected login servers with the new information (assuming the login server trusts the game server you are logged in to).

The above features have been committed to the SVN.

NOTES:
* multiple login servers does not work with minilogin.
* this is set to expect the same login server ID for the same account, regardless of which login server one logs in from. this won't be a problem if you are setting up a new secondary login server with an empty db because the users can simply go in game and update the information on the additional login server. if you already have used the prior hack for dual login servers, you will need to clear the db for one of the login servers (or painstakingly update it by hand) so the account IDs match.

Last edited by gaeorn; 04-16-2010 at 01:29 AM.. Reason: added notes
Reply With Quote