Role

Data\game_common.conf is the configuration shared by all GameServers (the [GameCommon] section). Each GameServer reads this file first, then reads the GameServer.conf in its own folder; if a key has the same name in both, GameServer.conf wins. After editing, you must restart the GameServers. The file reading rules are the same as for ConnectServer (comments go on their own line, and keys with wrong names are ignored).

Keys

Key Sample value Meaning
GameDB "127.0.0.1;1433;sa;your_password;MuOnline" Database for characters, items, guilds, etc. Must match the GameDB of ServerLink. Format: IP;Port;Account;Password;Database name, see connection string.
GameDB.Threads 1 Number of background connections (1 - 32).
GameDB.QueryThreads 2 Number of direct query connections.
AccountDB "127.0.0.1;1433;sa;your_password;MuOnline" Account database. Must match the AccountDB of LoginServer / ConnectServer.
AccountDB.Threads, AccountDB.QueryThreads 1, 2 Same as above.
LogDB "127.0.0.1;1433;sa;your_password;LogMuOnline" Log database (trades, dropped items, purchases, etc.).
LogDB.Threads, LogDB.QueryThreads 1, 2 Same as above.
DatabasePingMinutes 10 How many minutes between database "pings" so the connection is not dropped when idle.
ServerLink.Host "127.0.0.1" IP of the machine running ServerLink (127.0.0.1 if on the same machine).
ServerLink.Port 55566 Must match GameServer.Port in serverlink.conf.
LoginServer.Host "127.0.0.1" IP of the machine running LoginServer.
LoginServer.Port 44430 Must match GameServer.Port in loginserver.conf.
ConnectServer.Host "127.0.0.1" IP of the machine running ConnectServer.
ConnectServer.Port 44422 Must match GameServer.Port in connectserver.conf. If the port is wrong, the GameServer runs but does not appear in the server selection list.

Internal port reference table

Internal ports must match on both sides:

Program Program side (key GameServer.Port) GameServer side (game_common.conf) Sample
ConnectServer connectserver.conf ConnectServer.Port 44422
LoginServer loginserver.conf LoginServer.Port 44430
ServerLink serverlink.conf ServerLink.Port 55566

Example

[GameCommon]
GameDB = "127.0.0.1;1433;sa;your_password;MuOnline"
GameDB.Threads = 1
GameDB.QueryThreads = 2
AccountDB = "127.0.0.1;1433;sa;your_password;MuOnline"
AccountDB.Threads = 1
AccountDB.QueryThreads = 2
LogDB = "127.0.0.1;1433;sa;your_password;LogMuOnline"
LogDB.Threads = 1
LogDB.QueryThreads = 2
DatabasePingMinutes = 10
ServerLink.Host = "127.0.0.1"
ServerLink.Port = 55566
LoginServer.Host = "127.0.0.1"
LoginServer.Port = 44430
ConnectServer.Host = "127.0.0.1"
ConnectServer.Port = 44422

Running on multiple machines

If ConnectServer / LoginServer / ServerLink run on a different machine from the GameServer: set GameServer.ListenIP = "0.0.0.0" in that program's .conf, set the .Host keys here to that machine's IP, and use a firewall that only allows the IPs of the GameServer machines to reach the internal ports. [NEEDS CHECKING: whether a multi-machine setup requires a license / START on each machine]