Run 2 Servers in one computer

Page 1 of 7 1234567 LastLast
Results 1 to 15 of 93
  1. #1
    Proficient Member phit666 is offline
    MemberRank
    Apr 2007 Join Date
    197Posts

    Run 2 Servers in one computer

    [Objective]

    Run 2 servers (high rate and low rate) in single computer and clients can access both servers with same client and account but with different characters.

    [Requirements]

    1. GS / GSCS has an option for Account and Character Database selection.
    2. Hexeditor
    3. You already have a working server or you already know how to setup the server.

    [Steps]

    Database Connectivity

    1. Create database for account and in this case lets choose Me_MuOnline, you can restore from the normal muonline database backup.
    2. Create database for lowrate server: MuOnline
    3. Create database for highrate server: MuOnline2
    4. Create and ODBC for MuOnline2.


    Server 1 (lowrate)

    1. Configure GS/GSCS to use Me_MuOnline for account db and MuOnline for character db.

    Server 2 (highrate)

    1. Hex EXDB and change all MuOnline to MuOnline2.
    2. Hex Dataserver1 and change MuOnline to MuOnline2, just make a copy for the second Dataserver if you will use backup. ( delete dataserver.dat if there is, it will give an error upon starting but you can safely ignore it.)
    3. Configure GS/GSCS to use Me_MuOnline for account db and MuOnline2 for character db.

    Server Shortcuts(starter) // most of the tricks are here


    • Common


    1. Run Joinserver, Event Server and Ranking Server as default.


    • Server1 (lowrate)


    1. Dataserver1 - path to file\dataserver.exe 55960 1
    2. Dataserver2 - path to file\dataserver.exe 55962 2
    3. Exdb - path to file\exdb.exe WAN_IP
    4. Chatserver - path to file\chatserver.exe WAN_IP
    5. GS - path to file\gameserver.exe 127.0.0.1 55970 127.0.0.1 55960 55901
    6. GSCS - path to file\gameserverCS.exe 127.0.0.1 55970 127.0.0.1 55960 55919


    • Server2 (highrate)


    1. Dataserver1 - path to file\dataserver.exe 55964 1
    2. Dataserver2 - path to file\dataserver.exe 55966 2
    3. Exdb - path to file\Exdb.exe 127.0.0.1 55915 //we need to run server2 exdb in other port
    4. GS - path to file\gameserver.exe 127.0.0.1 55970 127.0.0.1 55964 55921 127.0.0.1 55966 127.0.0.1 55915 //all in one line.
    5. GSCS - path to file\gameserverCS.exe 127.0.0.1 55970 127.0.0.1 55964 55939 127.0.0.1 55966 127.0.0.1 55915 //all in one line.

    * Server2 GS/GSCS Color Legends: Green - Joinserver, Blue - Dataserver1, Brown - Gameserver port, Pink - Dataserver2, Orange - Exdb

    Connect Server // server lists

    Code:
    0  "GSL" "WAN_IP" 55901 "SHOW"
    19  "GSCSL" "WAN_IP" 55919 "HIDE"
    20  "GSH" "WAN_IP" 55921 "SHOW"
    39 "GSCSH" "WAN_IP" 55939 "HIDE"
    Note: I cant be able to run chatserver in both server currently :( In this setup chatserver is only active in server1.
    Last edited by phit666; 11-07-09 at 09:37 AM.


  2. #2
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide]Run 2 Servers in one computer

    i followed the guide exactly as it is writen but i get all my characters on both servers and the second gameserver doesnt connect to the second ExDB...

    Again I did exactly the same as it is said on the guide.

  3. #3
    Proficient Member phit666 is offline
    MemberRank
    Apr 2007 Join Date
    197Posts

    Re: [Guide]Run 2 Servers in one computer

    Make sure your gameserver has an option to connect separately to Account and and Character Database. If you have the option try putting both first with MuOnline2 (account and character). Make sure also you have the ODBC string MuOnline2 and pointed to MuOnline2 database.

  4. #4
    Account Upgraded | Title Enabled! crlfrancis is offline
    MemberRank
    Sep 2006 Join Date
    256Posts

    Re: [Guide]Run 2 Servers in one computer

    If you have done as Phit said make sure the new dataserver you made is hex with MuOnline2 and the correct dataserver ports is included in the gameserver parameters

  5. #5
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide]Run 2 Servers in one computer

    another thing i forgot to mention is that the second gameserver doesnt connect to the second exdb... y put exactly the same line with my ports and it didnt connect to the second exdb

  6. #6
    Proficient Member phit666 is offline
    MemberRank
    Apr 2007 Join Date
    197Posts

    Re: [Guide]Run 2 Servers in one computer

    Can you post the shortcut link you made for 2nd exdb and gameserver? When you run 2nd exdb is it showing MuOnline2 data? Well regardless of your exdb issue you can actually test the 2nd GS without it. Ive tested this setup with GS 1.00.16 and 1.00.18.

  7. #7
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide]Run 2 Servers in one computer

    127.0.0.1 (joinserver port) 127.0.0.1 (dataserver1) 55921 127.0.0.1 (dataserver2) 127.0.0.1 (ExDB2)

    when i run the second exdb it gets the data from MuOnline, i hex it to MuOnline2 though. I think the dataservers also get the data from MuOnline even though i changed all of them to MuOnline2

  8. #8
    Proficient Member phit666 is offline
    MemberRank
    Apr 2007 Join Date
    197Posts

    Re: [Guide]Run 2 Servers in one computer

    Recheck your MuOnline2 ODBC if it is pointing to MuOnline2.

  9. #9
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide]Run 2 Servers in one computer

    once again ive checked EVERYTHING!!!!

    i just read that i have to decrypt dataserver.ini.dat and exdb.ini.dat files to be able to change the database that they are gonna read. how do i decrypt those files though?

  10. #10
    Proficient Member phit666 is offline
    MemberRank
    Apr 2007 Join Date
    197Posts

    Re: [Guide]Run 2 Servers in one computer

    Base in my test with the exdb u've sent it was a misconfigured ODBC for MuOnline2 coz it works with me. Save the code below as file.reg and register it.


    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI]
    
    
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\MuOnline2]
    "Driver"="C:\\WINDOWS\\system32\\SQLSRV32.dll"
    "Description"="MuOnline2"
    "Server"="(local)"
    "Database"="MuOnline2"
    "LastUser"="sa"
    "Trusted_Connection"="Yes"

  11. #11
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide]Run 2 Servers in one computer

    well i used your odbc registry and my exdb is hex with MuOnline2 and it still reads from MuOnline... maybe you should give me your whole exdb folder to see it...

  12. #12
    Proficient Member phit666 is offline
    MemberRank
    Apr 2007 Join Date
    197Posts

    Re: [Guide]Run 2 Servers in one computer

    I used yours and it works so there has no need for decrypting that file you are saying. One thing you can do is remove MuOnline2 ODBC and try running the 2nd EXDB then it should give you an error.

  13. #13
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide]Run 2 Servers in one computer

    it doesnt give an error because its reading from MuOnline! What im trying to say is that its not odbc problem, the exdb is hexed with MuOnline2 where it said MuOnline but it still reads from MuOnline.

  14. #14
    Valued Member adeunreal is offline
    MemberRank
    Sep 2008 Join Date
    118Posts

    Re: [Guide] Run 2 Servers in one computer

    can upload working hex editor? my hex editor not found muonline :|

  15. #15
    Pleasure To Kill KREATOR is offline
    MemberRank
    Aug 2008 Join Date
    U.S.ALocation
    407Posts

    Re: [Guide] Run 2 Servers in one computer

    thats because we have to hex the ini.dat files



Page 1 of 7 1234567 LastLast

Advertisement