OpenDNF OpenDNF Dungeon & Fighter · Server Emulator

Server Settings

The package already contains the settings required to run the server. This chapter covers common settings and configuration errors.

Open Settings

Click Settings (「设置」) at the top of the server launcher, then choose the Startup, Components, or Window tab (「启动配置」「组件」「窗口」).

Click Save and Apply (「保存并应用」) to validate and write launcher.toml. Closing the window directly discards the changes. Restore Defaults (「恢复默认设置」) only resets the values shown in the window; you must still save them.

Component options take effect the next time that component starts. The theme takes effect after saving. If the launcher reports configuration problems, correct the values it names. The warning does not prevent the file from being saved.

Startup Tab

Log Level

RUST_LOG controls component log levels. An empty value uses each component's default. Set it to debug, save, and restart the affected component when troubleshooting.

Detailed game-server logs are written to Log.debug.<date>. Clear RUST_LOG after troubleshooting.

Variable Table

Port variables are used for startup arguments or readiness checks. Changing a variable does not rewrite a component's configuration file. Check Ports and cfg Files when troubleshooting ports.

The login gateway uses the connection and communication settings included in the package. You normally do not need to edit them. If a file is missing, restore it as described in Login Gateway Configuration.

The package uses local addresses. Login gate listens on 127.0.0.1:5505, and readiness checks use 127.0.0.1.

Components Tab

This tab contains program paths, startup arguments, dependencies, and readiness checks. The package already configures these values. Do not add, remove, or reconfigure components during normal use.

When a component is abnormal, save the error from its runtime log first, then follow the matching steps in Troubleshooting. Do not bypass the problem by disabling dependency checks or extending timeouts.

Window Tab

For When closing the window (「关闭窗口时」), choose one of the following:

  • Ask every time (「每次询问」): choose an action whenever you close the window. This is the default.
  • Minimize to system tray (「最小化到系统托盘」): hide the window and keep the server running.
  • Stop server and exit (「停止服务端并退出」): stop the components and exit.

Theme (「主题」) supports Follow system (「跟随系统」), Light (「浅色」), and Dark (「深色」). The log panel always uses a dark background.

Handling Configuration Errors

launcher.toml is next to opendnf-launcher.exe. Change common settings in the settings window.

If you must repair the file, close the launcher and make a backup first. The launcher reads the file when it opens and rewrites it when settings are saved.

When it reports that the configuration file cannot be parsed, close the launcher and copy launcher.toml as a backup. If you just edited it, restore the backup from before the edit. If no backup exists, restore the file from the matching package version. Put it next to the launcher and open the launcher again.

When parsing fails, the launcher uses default settings but does not rewrite the original file. Do not click Save and Apply before restoring the file, or the defaults will overwrite it.

Ports and cfg Files

Use this table when checking inconsistent ports or port conflicts. No changes are needed with the package defaults.

ComponentDefault portCheck here
MySQL3306SG_DB_PROXY_PORT in Startup settings; startup arguments override the port in mysql\my.ini
Bridge7000BRIDGE_TCP_PORT and bridge\cfg\server.cfg → this_tcp_port
Channel7001CHANNEL_TCP_PORT and channel\cfg\channel.cfg → this_tcp_port
Game ch.1130011GAME_CH11_TCP_PORT and game\cfg\siroco11.cfg → tcp_port
Game ch.5230052GAME_CH52_TCP_PORT and game\cfg\siroco52.cfg → tcp_port
Login gate5505Fixed by the package

Except for MySQL, the launcher variables in this table only control readiness checks. They do not change the port a component listens on. Connection ports between components must also match.

If a port is in use, stop the server from any other package and wait for every component to stop. Try again. If the port is still in use, compare the launcher variables and cfg files above. If you changed a configuration, restore the matching files from the same package version. Changing the MySQL port also requires updating the database connection settings for Login gate and the server components; changing only the launcher check port cannot fix the conflict.