With the right configuration, you can turn your Deadlock game server into exactly the kind of server you have in mind for private matches with your friends: your own name, a password, the right starting map, and custom server settings. In this guide, we’ll show you which settings are available, where to find them in ZapX, and what else you can configure in server.cfg.
Your Deadlock server reads its settings from two sources:
- Startup parameters: Set the server name, server password, RCON password, starting map, and additional startup parameters in ZapX under the Startup parameters tab in Configuration. Your server passes these values directly to Deadlock each time it starts, so you don’t need to edit a file manually.
- server.cfg: Add custom game console variables to the
server.cfgfile, one setting per line. You can open the file in the Files tab.
Your server creates server.cfg once, the first time it starts, and never overwrites it afterward. Each time the server starts, it runs the file immediately after setting the server name, server password, and RCON password, and then loads the starting map.
Do not add the server name (hostname), server password (sv_password), or RCON password (rcon_password) to server.cfg. Because the file runs after the startup parameters, an entry in the file would override the value set in the panel, leaving you with two different values for the same setting. Always set these three values in the Startup Parameters.
After you save, ZapX will prompt you to restart the server. Changes to the startup parameters and server.cfg only take effect after a restart.
| Startup parameter | Description |
|---|---|
| Server name | Your server’s name. Default: ZapX Deadlock Server |
| Server password | Password required to join. Leave blank for a server without a password. |
| RCON Password | Password for the remote console (RCON). If you leave this field blank, your server generates a password and saves it in the rcon_password.txt file. |
| Starting map | The map your server starts with. Default: dl_midtown |
| Additional startup parameters | Additional command-line parameters your server appends at startup. Default: blank |
The maximum number of players is not a startup parameter. Your server automatically gets this value from its server slots when it starts.
Use the Starting map field to choose which map your server starts with. The default is dl_midtown. Enter the map name without a file extension, save, and restart your server.
A misspelled or unavailable map name will prevent your server from starting. If it won’t start after you change the map, enter dl_midtown again. For more help, see Common issues.
You can find server.cfg in the Files tab. The file contains only a few comment lines when it’s first created, each beginning with //. Follow these steps to add your own settings:
- Open
server.cfgin the Files tab. - Enter each command on its own line in the format
<command> <value>. Put text containing spaces in quotation marks. - Save the file and restart your server.
If you delete server.cfg, your server will create a new file with the comment lines the next time it starts. Any custom entries will be lost. Make a backup of the file first if you want to keep them.
If your server doesn’t start properly after you edit server.cfg, comment out your new lines by adding // and restart. This makes it easy to find the entry causing the problem. You can view the server output in the Console tab and in the logs/console.log file, which your server starts fresh each time it runs.
Use the Additional startup parameters field to enter parameters that don’t have their own field. Your server appends them to the very end of the startup command, after the starting map. Add a + before console variables, using the format +<command> <value>. Separate multiple parameters with spaces. You can’t pass values containing spaces in this field; add those settings to server.cfg instead.
ZapX sets your server’s IP address and port. Don’t enter your own parameters for these, or your server will no longer be reachable at the address shown in Overview.
An invalid entry in this field can prevent your server from starting. If this happens, try clearing the field and restarting.
ZapX sends commands you enter in the Console tab to your running server over RCON. It uses your RCON password automatically, so you don’t need to enter it in the console.
Here’s how the RCON password works:
- If you enter a custom password in the RCON Password field, your server will use it after the next restart.
- If you leave the field blank, your server generates a password once at startup and saves it in the
rcon_password.txtfile in the Files tab. The server keeps using this password until you set a custom one.
Deadlock uses the same port for RCON as it does for the game. To connect with your own RCON program, use the IP:Port shown in Overview and your RCON password. For example, see Automated server messages to learn how to send recurring messages to your players.
Only share your RCON password with people and programs you trust. RCON gives full control over your server.
Your Deadlock server is now set up just the way you want it. To learn how you and your friends can connect to the server, see Connecting to the server. For an overview of all the areas of your server in ZapX, see the Dashboard overview. If something isn’t working as expected, our Common issues guide can help. If you have any other questions, our support team is available every day! 🙂