Role

LoginServer holds the login state of all accounts: GameServer connects to it to verify the account / password when a player logs in; LoginServer prevents an account from being logged in in two places at once and handles server transfers between GameServers. Players do not connect directly to LoginServer.

File: 2.LoginServer\loginserver.conf (section [LoginServer]). The file parsing rules are the same as ConnectServer.

Account settings (lockout after repeated wrong passwords, server transfer time, etc.) are not in loginserver.conf but in the [Account] section of Data\Common.ini, because GameServer shares them.

Keys

Key Sample value Meaning
ServerName "TSWMU LoginServer" Name shown on the server window and the tab name in START.
AccountDB "127.0.0.1;1433;sa;your_password;MuOnline" Account database connection (IP;Port;Username;Password;Database name). See connection string.
AccountDB.Threads 1 Number of background connections (1 - 32).
AccountDB.QueryThreads 2 Number of direct query connections. If many players log in at the same time, increase it to 2 - 4.
DatabasePingMinutes 30 How many minutes between each database "ping" so the connection is not dropped when idle.
GameServer.Port 44430 Internal port for GameServer to connect to. It must match LoginServer.Port in Data\game_common.conf.
GameServer.ListenIP "127.0.0.1" "127.0.0.1" = only a GameServer 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.
DataReloadSeconds 60 How many seconds between each reload of Data\World\WorldServer.xml and the [Account] section of Data\Common.ini (edits apply without a restart). 0 = no reload.
Panel 1 1 = show the management window; 0 = black console only. When opened through START, it is always shown in the START tab.
ShutdownTimeoutSeconds 60 Force exit when the program is silent (making no progress) for longer than this many seconds during shutdown. The minimum effective value is 60; 0 = disable this mechanism.

Configuration example

[LoginServer]
ServerName = "TSWMU LoginServer"
AccountDB = "127.0.0.1;1433;sa;your_password;MuOnline"
AccountDB.Threads = 1
AccountDB.QueryThreads = 2
DatabasePingMinutes = 30
GameServer.Port = 44430
GameServer.ListenIP = "127.0.0.1"
DataReloadSeconds = 60
Panel = 1
ShutdownTimeoutSeconds = 60

On shutdown

On shutdown, LoginServer waits until all queued data has been written to the database before exiting; there is no total time limit. An account's login lock is released only after GameServer has finished saving the character. See Safe server shutdown.