Role

ServerLink is the "bridge" between GameServers: guild, Gens, alliance, guild search, mail / chat between servers, Castle Siege and cross-channel party. It writes those changes to the character database. Players do not connect directly to ServerLink.

File: 3.ServerLink\serverlink.conf (section [ServerLink]). The file reading rules are the same as ConnectServer.

Keys

Key Sample value Meaning
ServerName "Server Link" Name shown on the server window and the tab name in START.
GameDB "127.0.0.1;1433;sa;your_password;MuOnline" Character database connection (guild, gens, characters...). It must point to the same database as the GameServer's GameDB. See connection string.
GameDB.Threads 1 Number of background connections (1 - 32).
GameDB.QueryThreads 2 Number of direct query connections.
DatabasePingMinutes 30 How many minutes between database "pings" so the connection is not dropped when idle.
GameServer.Port 55566 Internal port that GameServers connect to. It must match ServerLink.Port in Data\game_common.conf.
GameServer.ListenIP "127.0.0.1" "127.0.0.1" = only GameServers on the same machine can connect (recommended). "0.0.0.0" = GameServers on other machines can connect too; in that case you must block this port from the outside with a firewall.
Party.LeaderOfflineDays 30 If the party leader does not enter the game for more than this number of days, the party is disbanded and all members are removed from it. The "leader last online" timestamp is stored in the database (table pty_list, column LeaderLastOnline), so it is kept when ServerLink is stopped / restarted. 0 = never disband automatically. Cross-channel parties are stored in the tables pty_list / pty_list_member (created automatically); logging out or changing channel keeps you in the party.
ShutdownSaveSeconds 30 Present in the sample file but no longer read in this version: on shutdown, ServerLink always waits until the guild / gens queue is fully written to the database before exiting. You can leave it as is.
ShutdownTimeoutSeconds 60 Forces exit when the program is silent (no progress) for more than this number of seconds during shutdown. Minimum effective value is 60; 0 = disables the mechanism.
Panel 1 1 = show the management window; 0 = black console only. When opened via START, it is always shown in the START tab.

Configuration example

[ServerLink]
ServerName = "Server Link"
GameDB = "127.0.0.1;1433;sa;your_password;MuOnline"
GameDB.Threads = 1
GameDB.QueryThreads = 2
DatabasePingMinutes = 30
GameServer.Port = 55566
GameServer.ListenIP = "127.0.0.1"
Party.LeaderOfflineDays = 30
ShutdownTimeoutSeconds = 60
Panel = 1