Principle
The Server must not shut down until saving is complete. When it receives the stop command, the GameServer disconnects players, then waits for the database to write all characters and items still in the queue, with no limit on total time. The more players online, the longer the wait. An abrupt shutdown (killing the process, cutting the power) may cause unsaved data to be lost.
The correct way to shut down
- Notify players beforehand (in-game announcement or on the website).
- In START, click Stop All and confirm ("Safely shut down all servers? GameServer shuts down first, ConnectServer shuts down last"). Or stop each server individually with the Stop button.
- Wait until all servers change to Stopped. While waiting, the server log shows a single progress line in the form
[ SAVE DATA ] ...: XX%; the program exits only when it reaches 100%. - Only then shut down Windows, power off the machine, or work on the database.
Internal order
- The GameServer disconnects players, then waits until all character, login and log data has been written to the database.
- Only after saving is complete does the LoginServer unlock the accounts' logins (this prevents players from logging in again before their data has finished saving, which would lead to rollbacks or item duplication).
- ServerLink and LoginServer wait until all queues (guild, gens...) have been written to the database, then exit.
- ConnectServer shuts down last.
When forcing a shutdown is acceptable
- START waits up to Safe stop timeout (
StopTimeoutinSTART.ini, default 90 seconds), but this deadline is extended every time the server sends a progress message. START forces a shutdown only when the server stays silent beyond that time (truly hung) and records a log entry. - The server itself also has its own mechanism: if it stays silent with no progress for longer than
ShutdownTimeoutSeconds(minimum 60 seconds), it writes a log, creates a_hang.dmpfile and forcibly exits. - Use the Force Stop button only when the server is truly hung. It asks for confirmation: "Unsaved data may be lost".
[ SAVE DATA ] line stays still for a very long time, do not force a shutdown right away. Check that SQL Server is still running and that there is enough disk space. Force a shutdown only when there is truly no progress and you have a database backup.Exiting START
When you exit START while servers are still running, START asks: Yes = safely shut down everything and then exit; No = exit START but the servers keep running (reopening START will pick them up again automatically); Cancel = go back. For licensing: do not exit START while the internet connection is down (see License).
Shutting down or restarting Windows
Always click Stop All and wait for it to complete before shutting down or restarting Windows. For Windows updates that restart automatically, set active hours or disable automatic restart to prevent the machine from rebooting by itself while players are online.