Skip to content

Day of Defeat: Source: Server Configuration

Learn how to configure your Day of Defeat: Source server name, password, starting map, class limits, and other rules.

26 November 20266 min read3 Views0 helpful

Don't have your own server yet? Host your Day of Defeat: Source server with ZAP-Hosting from €4.49 / month.Or try 3 days from €0.81

Introduction

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.

How configuration works

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.cfg file in the dod/cfg folder. 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:

Important

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

Startup parameterMeaning
Server nameYour server’s name in the server list. Default: ZAP Day of Defeat: Source
Server passwordPassword required to join. Leave blank for an open server.
Max. playersHow many players can play on your server at the same time. Default: 16
Starting mapThe 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 PasswordPassword for the remote console. ZapX creates a random password when you create your server, and you can change it here.
Info

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.

Starting map and custom maps

For Starting map, enter the map name without the file extension. These official maps are installed on your server:

MapMap name
Anziodod_anzio
Argentandod_argentan
Avalanchedod_avalanche
Colmardod_colmar
Donnerdod_donner
Flashdod_flash
Jagddod_jagd
Kaltdod_kalt
Palermodod_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.

Tip

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.

More settings in custom.cfg

In custom.cfg, put each server command on its own line and place text in quotation marks. For example:

cfg
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):

CommandMeaning
mp_timelimitMinutes per map before the server switches to the next map in the rotation. 0 = no time limit (0)
mp_winlimitThe score a team must reach before the map changes. 0 = no limit (0)
dod_bonusround1 lets the winning team continue attacking during the break after winning a round (1)
dod_bonusroundtimeBreak after a round win, in seconds; 5 to 15 (15)
dod_enableroundwaittime1 enables the waiting period between rounds (1)
mp_chattimeHow many seconds players can continue chatting after a map ends before the next map loads (10)
mp_friendlyfire1 allows damage to teammates (0)
dod_friendlyfiresafezoneDistance around a player within which their teammates won’t take damage from them, even with friendly fire enabled (100)
mp_limitteamsThe maximum number of players one team can have more than the other; 1 to 20 (2)
mp_autokick1 automatically kicks inactive players and players who repeatedly kill teammates from the server (0)
dod_freezecam1 shows a still image of the enemy who killed you when you die (1)
mp_allowspectators1 enables the spectator team in addition to Allies and Axis (1)
mp_fadetoblack1 fades dead players’ screens to black so they can’t continue watching the round (0)
sv_voiceenable1 enables in-game voice chat (1)
sv_alltalk1 lets all players hear each other in voice chat, including the opposing team (0)
sv_cheats1 enables cheat commands; useful only for testing (0)
Warning

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.

Class limits and clan matches

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:

ClassAllies commandAxis command
Riflemanmp_limit_allies_riflemanmp_limit_axis_rifleman
Assaultmp_limit_allies_assaultmp_limit_axis_assault
Supportmp_limit_allies_supportmp_limit_axis_support
Snipermp_limit_allies_snipermp_limit_axis_sniper
Machine Gunnermp_limit_allies_mgmp_limit_axis_mg
Rocketmp_limit_allies_rocketmp_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:

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

RCON, admins, and plugins

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:

Conclusion

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

Free tools

Day of Defeat: Source Tools

View all

FAQ

Frequently asked questions

Your Day of Defeat: Source server rewrites dod/cfg/server.cfg every time it starts. Add your own settings to dod/cfg/custom.cfg instead. Create the file if it doesn’t exist, then restart your server. It runs after server.cfg and your changes will be kept.
Go to the Configuration tab and open Startup Parameters. Don’t also add hostname, sv_password, or rcon_password to custom.cfg, since it runs last and overrides the values in the panel.
Use mp_limit_allies_<klasse> and mp_limit_axis_<klasse> in custom.cfg. For example, set mp_limit_allies_sniper 1 and mp_limit_axis_sniper 1. The value -1 means no limit, and 0 disables the class. Restart your server afterward.

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.