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
- Create database for account and in this case lets choose Me_MuOnline, you can restore from the normal muonline database backup.
- Create database for lowrate server: MuOnline
- Create database for highrate server: MuOnline2
- Create and ODBC for MuOnline2.
Server 1 (lowrate)
- Configure GS/GSCS to use Me_MuOnline for account db and MuOnline for character db.
Server 2 (highrate)
- Hex EXDB and change all MuOnline to MuOnline2.
- 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.)
- Configure GS/GSCS to use Me_MuOnline for account db and MuOnline2 for character db.
Server Shortcuts(starter) // most of the tricks are here
- Run Joinserver, Event Server and Ranking Server as default.
- Dataserver1 - path to file\dataserver.exe 55960 1
- Dataserver2 - path to file\dataserver.exe 55962 2
- Exdb - path to file\exdb.exe WAN_IP
- Chatserver - path to file\chatserver.exe WAN_IP
- GS - path to file\gameserver.exe 127.0.0.1 55970 127.0.0.1 55960 55901
- GSCS - path to file\gameserverCS.exe 127.0.0.1 55970 127.0.0.1 55960 55919
- Dataserver1 - path to file\dataserver.exe 55964 1
- Dataserver2 - path to file\dataserver.exe 55966 2
- Exdb - path to file\Exdb.exe 127.0.0.1 55915 //we need to run server2 exdb in other port
- 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.
- 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.
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.
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.
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
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
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.
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
Re: [Guide]Run 2 Servers in one computer
Recheck your MuOnline2 ODBC if it is pointing to MuOnline2.
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?
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"
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...
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.
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.
Re: [Guide] Run 2 Servers in one computer
can upload working hex editor? my hex editor not found muonline :|
Re: [Guide] Run 2 Servers in one computer
thats because we have to hex the ini.dat files :<: