Starting the Server
Complete Installation and Initialization first. This chapter uses the default Standalone profile (「单机版」).
Start All Components
- Select Standalone (「单机版」) at the top. This profile contains five components. Standalone PvP (「单机 PK 版」) also includes Game ch.52.
- Click Start Server (「启动服务端」). If the database has not been initialized, follow the prompt to initialize it first.
- Wait until all components show Ready (「就绪」) and the lower-right corner shows Ready 5/5 (「已就绪 5/5」) in green.
- Open the game launcher and follow Game Launcher and Accounts to sign in.
When switching game editions, stop the server before starting the new edition. See Multiple Client Editions.
Startup Order and Readiness Checks
The launcher starts components in dependency order. The ports below are the package defaults.
| Component | Starts after | Ready when |
|---|---|---|
| MySQL | No prerequisite | 127.0.0.1:3306 accepts connections, and database connection setup and update processing have finished |
| Bridge | MySQL is ready | 127.0.0.1:7000 accepts connections |
| Channel | Bridge is ready | 127.0.0.1:7001 accepts connections |
| Game ch.11 | MySQL and Bridge are ready | 127.0.0.1:30011 accepts connections |
| Login gate | MySQL is ready | Its process has started |
The default readiness timeout is 600 seconds. After a timeout, the component shows Error (「异常」), but its process may still be running. Click the component to view its log, and check Ports and cfg Files.
For Login gate, Ready only means that its process has started. If registration or sign-in fails, also check its log.
Component States
| State | Meaning |
|---|---|
| Stopped (「已停止」) | The component is not running |
| Waiting for dependencies (「等待依赖」) | Required components are not ready yet |
| Starting (「启动中」) | The process has started and readiness checks are in progress |
| Ready (「就绪」) | Readiness checks passed |
| Stopping (「停止中」) | Waiting for the process to exit |
| Error (「异常」) | Startup failed, the process exited unexpectedly, or a readiness check timed out |
The text beside the state gives more detail. If a component shows Error, check its runtime log first. See Troubleshooting for common errors.
Control Individual Components
| Action | Behavior |
|---|---|
| Start (「启动」) | Starts this component and its dependencies |
| Stop (「停止」) | Stops only this component |
| Restart (「重启」) | Stops and restarts this component |
| Open Folder (「打开目录」) | Opens this component's folder |
Stopping one component does not automatically stop components that depend on it. Stop the whole server before restarting a shared dependency such as MySQL.
When MySQL shows Checking database updates (「正在检查数据库更新」), wait for the update to finish. Stopping or restarting MySQL at this point interrupts the update. Unfinished files run again at the next startup.
Log Panel
Click a row in the component list to view its output in the Runtime Log panel (「运行日志」) below. Database initialization, backup, and restore progress appears in the MySQL log.
The panel keeps the most recent 400 lines for each component and clears them when that component starts again. For older entries, check the log files in the component's folder. See Game ch.11 Log Locations.
Notification Area Icon
The server launcher displays an icon in the taskbar notification area while running.
| Action | Behavior |
|---|---|
| Left-click | Shows the main window |
| Right-click | Opens the component, server start/stop, and exit menu |
| Hover | Shows the server status |
The server keeps running when the window is minimized to the notification area. Exit (「退出」) in the right-click menu stops all components before closing the launcher.
Close the Window
By default, closing the window opens the Close Launcher dialog (「关闭启动器」).
| Option | Behavior |
|---|---|
| Minimize to System Tray (「最小化到系统托盘」) | Hides the window and keeps the server running |
| Stop Server and Exit (「停止服务端并退出」) | Stops all components and exits |
| Cancel (「取消」) | Leaves the current state unchanged |
Select Remember my choice (「记住此选择,不再询问」) to save the selected behavior. You can change it on the Window tab.
Wait for components to exit normally. A Force Exit button (「强制退出」) appears after 12 seconds. Forcing an exit can lose unsaved data.
Stop the Server
Click Stop Server (「停止服务端」) at the top or in the notification area menu. The launcher stops components in reverse dependency order, with MySQL last.
By default, the stop timeout is 20 seconds for other components and 40 seconds for MySQL. The launcher forcibly ends the process after the timeout. MySQL may take longer to stop when it has many pending writes.
The server is off when every component shows Stopped (「已停止」). Click Start Server (「启动服务端」) to start it again. Do not end the server launcher directly in Task Manager.
Database Update Folder
After MySQL starts, the launcher checks mysql\update\ for .sql and .sql.gz files and runs them in filename order. Numbers in filenames are sorted numerically: 2-a.sql runs before 10-a.sql.
During this process, MySQL shows Checking database updates (「正在检查数据库更新」). Successfully processed files are deleted. Failed or interrupted files remain and run again the next time MySQL starts.
| Message | What to do |
|---|---|
| Database update complete (「数据库更新完成」) | Continue starting the server normally |
| Database update failed (「数据库更新失败」) | Keep the filename and full error from the dialog, then follow the steps below |
| Database update was not run (「数据库更新未执行」) | Stop the other components that are still running, then restart MySQL |
MySQL may still show Ready after an update fails. This does not mean the update succeeded. Resolve the update error first. If the script ran but could not be deleted, delete the specified file as instructed so that it does not run again.
If an update fails, first check whether you added or changed any update files. Keep those files and describe your changes when reporting the problem. Part of an update may already have run; do not delete the failing file simply to skip it. If a bundled update fails, also provide its filename and the full error. Restart MySQL to retry only after the required fix is clear.
Restoring an older backup does not automatically rerun deleted update scripts. Check the release notes for that edition to see whether updates need to be reapplied.
Back Up the Database
MySQL must be Ready (「就绪」) before you can create a backup.
- Select Database → Back Up Database (「数据库」→「备份数据库」).
- Wait for Database backup complete (「数据库备份完成」).
- Check the backup file at the path shown in the dialog.
Backups are stored in backup\. The usual filename is dnf-<edition-id>-<date>-<time>.sql.gz. If no edition is selected, the filename does not include an edition ID.
After each successful backup, the launcher keeps the latest seven backups for the current edition and deletes its older backups. Backups for other editions are unaffected. Copy any backups you want to keep long term to another folder.
Restore a Backup
Restoring overwrites the existing data included in the backup. Accounts, characters, inventories, and other data return to their state at the time of the backup. Progress made since then is overwritten. Make sure the backup matches the game edition before restoring it.
Copy any older backups you need to keep outside backup\ first so that automatic cleanup cannot remove them. MySQL must be Ready, and all other components must be stopped.
- Click Stop Server (「停止服务端」) and wait for all components to stop.
- Start MySQL on its own and wait until it shows Ready (「就绪」).
- Select Database → Back Up Database (「数据库」→「备份数据库」) and wait for it to finish, preserving the current data.
- Select Database → Restore from Backup… (「数据库」→「从备份恢复…」).
- Choose the backup, click Restore (「恢复」), then Confirm Restore (「确认恢复」).
- Wait for Database restore complete (「数据库恢复完成」), then click Start Server (「启动服务端」).
The restore window lists backups for the current edition and other SQL files that can be imported. You can copy external backups into backup\. Files must use the .sql or .sql.gz format and include CREATE DATABASE statements.
If restoring fails, check the MySQL log and resolve the specific error. Do not start other components before the restore completes.