Skip to content

Deadlock: Server Configuration

Learn how to set your server name, password, RCON password, starting map, and custom settings in `server.cfg` for your Deadlock game server → Find out more

26 November 20264 min read1 Views0 helpful

Don't have your own server yet? Host your Deadlock server with ZAP-Hosting from €12.99 / month.Or try 3 days from €2.34

Introduction

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.

How configuration works

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.cfg file, 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.

Important

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 parameters at a glance

Startup parameterDescription
Server nameYour server’s name. Default: ZapX Deadlock Server
Server passwordPassword required to join. Leave blank for a server without a password.
RCON PasswordPassword 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 mapThe map your server starts with. Default: dl_midtown
Additional startup parametersAdditional command-line parameters your server appends at startup. Default: blank
Info

The maximum number of players is not a startup parameter. Your server automatically gets this value from its server slots when it starts.

Starting map

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.

Warning

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.

Custom settings in server.cfg

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:

  1. Open server.cfg in the Files tab.
  2. Enter each command on its own line in the format <command> <value>. Put text containing spaces in quotation marks.
  3. 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.

Tip

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.

Additional startup parameters

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.

Important

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.

RCON password and console

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.txt file 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.

Warning

Only share your RCON password with people and programs you trust. RCON gives full control over your server.

Conclusion

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! 🙂

FAQ

Frequently asked questions

Go to Startup Parameters in the Configuration tab to set your server name, server password, RCON password, starting map, and additional startup parameters. Add custom console variables to server.cfg in the Files tab.
Always set your server name, server password, and RCON password in the startup parameters. server.cfg runs after these values and would override them if you added the same settings there, leaving two different values for the same setting.
If you entered a custom password in the RCON Password field, that is the password to use. If you left the field blank, your server generated a password and saved it in rcon_password.txt in the Files tab.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.