EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Multiple LoginServer Connections (https://www.eqemulator.org/forums/showthread.php?t=30202)

Secrets 03-30-2010 09:29 PM

Quote:

Originally Posted by loglos (Post 185900)
Are you running win7 64bit? I am and was getting the heap issue also. Everytime I logged in. I just grabbed the source and recompiled and now it works fine.

I have other problems, but the login server is no longer having issues. ;-)

I was using winxp 32-bit at the time of the post, KLS redid the LS recently and it had been fixed way before even that.

gaeorn 04-16-2010 01:16 AM

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.

KLS 04-16-2010 02:33 AM

Jerk you broke the postgresql compile.

gaeorn 04-16-2010 07:50 AM

Quote:

Originally Posted by KLS (Post 186590)
Jerk you broke the postgresql compile.

Yes, I did. Is anyone using it? I figured I would fix it eventually.

KLS 04-16-2010 03:14 PM

I compile against it =p

trevius 04-17-2010 05:44 AM

Testing this out on Storm Haven currently and it seems to work great so far! Awesome work :D

I made a little write-up about it on my main page here:

http://stormhavenserver.com/joomla/

Glad players can finally try out Storm Haven when using the SoD client!

Lillu 04-17-2010 06:21 AM

I just wanted to say a big thank you for gaeorn and the rest of the team for SoD compatibility and ls extension. It's a great addition to eqemu. After our recent code update, setting up an LS on THF is our next project. We'll be glad to welcome SoD clients too.

Thank you for all your hard work. <3
Lillu


All times are GMT -4. The time now is 04:31 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.