Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Run 2 Servers in one computer

Junior Spellweaver
Joined
Apr 16, 2007
Messages
145
Reaction score
82
[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:
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
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.
 
Junior Spellweaver
Joined
Apr 16, 2007
Messages
145
Reaction score
82
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.
 
Junior Spellweaver
Joined
Sep 13, 2006
Messages
116
Reaction score
3
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
 
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
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
 
Junior Spellweaver
Joined
Apr 16, 2007
Messages
145
Reaction score
82
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.
 
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
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
 
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
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?
 
Junior Spellweaver
Joined
Apr 16, 2007
Messages
145
Reaction score
82
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"
 
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
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...
 
Junior Spellweaver
Joined
Apr 16, 2007
Messages
145
Reaction score
82
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.
 
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
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.
 
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
Re: [Guide] Run 2 Servers in one computer

thats because we have to hex the ini.dat files :<:
 
Junior Spellweaver
Joined
Dec 12, 2007
Messages
152
Reaction score
2
Re: [Guide] Run 2 Servers in one computer

what about the gs in 97d versions? there is not this options about accs and chars.
 
Experienced Elementalist
Joined
Aug 5, 2008
Messages
268
Reaction score
28
Re: [Guide] Run 2 Servers in one computer

what about the gs in 97d versions? there is not this options about accs and chars.

In this case you'd have to hex gs to access MuOnline and Me_MuOnline... which i dont know how to do ^^
 
Newbie Spellweaver
Joined
Jan 28, 2007
Messages
26
Reaction score
1
Re: [Guide] Run 2 Servers in one computer

Hello... MMT server has "me_muonline" option? i am not sure about this... thanks!!!
 
Junior Spellweaver
Joined
Apr 16, 2007
Messages
145
Reaction score
82
Re: [Guide] Run 2 Servers in one computer

Its not specifically me_muonline database, if the gs can support separated account and characterdb then it can be done.
 
Back
Top