With the right configuration, you can turn your Day of Defeat: Source game server into exactly the server you have in mind: with your own name, a password, your favorite starting map, and rules such as time limits, bonus rounds, class limits, or friendly fire. In this guide, we’ll show you which settings are available, where to find them in ZapX, and what you can customize in your own configuration file.
Your Day of Defeat: Source server reads its settings from two sources:
- Startup parameters: Set the server name, server password, player limit, starting map, Steam server token, and RCON password in ZapX under the Configuration tab, in Startup parameters.
- Configuration files: Add all other server commands (Cvars), such as time limits, bonus rounds, or class limits, to the
custom.cfgfile in thedod/cfgfolder. Open the file from the Files tab.
Your server rewrites the dod/cfg/server.cfg file every time it starts. It contains the server name, server password, and RCON password from the startup parameters, and then runs your custom.cfg. This means:
Don’t edit server.cfg manually—your changes will be lost the next time the server starts. Always put your own settings in custom.cfg. This file does not exist initially, so create it yourself in the dod/cfg folder and then restart your server. It will only be loaded after the restart.
Because custom.cfg runs last, its settings take priority, even over values set in the panel. Therefore, don’t add hostname, sv_password, or rcon_password to custom.cfg; change them in the startup parameters instead. Otherwise, the value in the file will take effect, and your setting in the panel won’t have any effect.
After you save the startup parameters, ZapX will offer to restart the server right away. Changes to custom.cfg also take effect only after a restart.
| Startup parameter | Meaning |
|---|---|
| Server name | Your server’s name in the server list. Default: ZAP Day of Defeat: Source |
| Server password | Password required to join. Leave blank for an open server. |
| Max. players | How many players can play on your server at the same time. Default: 16 |
| Starting map | The map your server starts with. Default: dod_anzio |
| Steam server token (GSLT) | Game Server Login Token from Steam, required for your server to appear in the server list. See Create a GSLT. |
| RCON Password | Password for the remote console. ZapX creates a random password when you create your server, and you can change it here. |
For map names and the GSLT, your server only accepts letters, numbers, and _, ., /, and -. Other characters, such as spaces, are removed when the server starts. Quotation marks are removed from server names and passwords.
For Starting map, enter the map name without the file extension. These official maps are installed on your server:
| Map | Map name |
|---|---|
| Anzio | dod_anzio |
| Argentan | dod_argentan |
| Avalanche | dod_avalanche |
| Colmar | dod_colmar |
| Donner | dod_donner |
| Flash | dod_flash |
| Jagd | dod_jagd |
| Kalt | dod_kalt |
| Palermo | dod_palermo |
Upload custom maps as .bsp files (and the corresponding .nav file, if available) to the dod/maps folder using the Files tab. Your server will load them the next time it starts. If a custom map has the same name as an official map, the server will skip it, so rename it in that case. Add custom content such as sounds, materials, or models to the corresponding dod/sound, dod/materials, and dod/models folders. To help your players download these files quickly, see Set up FastDL.
Use the changelevel <kartenname> command in the Console tab to switch maps immediately without restarting the server. To see which maps your server recognizes, use the maps * command.
In custom.cfg, put each server command on its own line and place text in quotation marks. For example:
mp_timelimit 30
mp_winlimit 0
dod_bonusround 1
dod_bonusroundtime 15
mp_friendlyfire 0
mp_limitteams 2
sv_alltalk 0
These are the settings most commonly changed (your server’s default values are in parentheses):
| Command | Meaning |
|---|---|
mp_timelimit | Minutes per map before the server switches to the next map in the rotation. 0 = no time limit (0) |
mp_winlimit | The score a team must reach before the map changes. 0 = no limit (0) |
dod_bonusround | 1 lets the winning team continue attacking during the break after winning a round (1) |
dod_bonusroundtime | Break after a round win, in seconds; 5 to 15 (15) |
dod_enableroundwaittime | 1 enables the waiting period between rounds (1) |
mp_chattime | How many seconds players can continue chatting after a map ends before the next map loads (10) |
mp_friendlyfire | 1 allows damage to teammates (0) |
dod_friendlyfiresafezone | Distance around a player within which their teammates won’t take damage from them, even with friendly fire enabled (100) |
mp_limitteams | The maximum number of players one team can have more than the other; 1 to 20 (2) |
mp_autokick | 1 automatically kicks inactive players and players who repeatedly kill teammates from the server (0) |
dod_freezecam | 1 shows a still image of the enemy who killed you when you die (1) |
mp_allowspectators | 1 enables the spectator team in addition to Allies and Axis (1) |
mp_fadetoblack | 1 fades dead players’ screens to black so they can’t continue watching the round (0) |
sv_voiceenable | 1 enables in-game voice chat (1) |
sv_alltalk | 1 lets all players hear each other in voice chat, including the opposing team (0) |
sv_cheats | 1 enables cheat commands; useful only for testing (0) |
Don’t set sv_lan to 1. Your server will only be visible on the local network and won’t be accessible over the internet.
You can also enter many of these commands while the server is running in the Console tab, for example, mp_timelimit 20. However, they will only apply temporarily. Add any settings you want to keep permanently to custom.cfg.
In Day of Defeat: Source, you can set how many players on each team can play a particular class at the same time. The command is mp_limit_<team>_<klasse>. Replace the team with allies or axis:
| Class | Allies command | Axis command |
|---|---|---|
| Rifleman | mp_limit_allies_rifleman | mp_limit_axis_rifleman |
| Assault | mp_limit_allies_assault | mp_limit_axis_assault |
| Support | mp_limit_allies_support | mp_limit_axis_support |
| Sniper | mp_limit_allies_sniper | mp_limit_axis_sniper |
| Machine Gunner | mp_limit_allies_mg | mp_limit_axis_mg |
| Rocket | mp_limit_allies_rocket | mp_limit_axis_rocket |
The value -1 means no limit (default), while 0 disables the class for that team. You can also hide the random class selection in the class menu with mp_allowrandomclass 0. Here’s an example that allows a maximum of one sniper and one machine gunner per team:
mp_limit_allies_sniper 1
mp_limit_axis_sniper 1
mp_limit_allies_mg 1
mp_limit_axis_mg 1
For clan wars and scrims, you can use a ready-up start: With mp_clan_readyrestart 1, the match begins only after one player from each team has typed the ready signal in chat. Set the signal with mp_clan_ready_signal; the default is ready.
You can run commands at any time directly in the Console tab. To control your server remotely, use RCON with the RCON Password from the startup parameters. Learn more in our RCON guide.
To get admin rights in-game, an admin menu, and additional features, you’ll need SourceMod and Metamod:Source. The extensions and their settings are located in the dod/addons folder:
Your Day of Defeat: Source server is now set up just the way you want it. See Connect to your server to learn how to join. 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! 🙂
