Holdfast server config file explained
What each line of a Holdfast: Nations at War server config does: ports, server name, region, passwords, welcome messages, network mode and automatic restarts.
Every Holdfast server reads one plain text file when it starts: the server config. It decides how your server shows up in the server browser, who can join, and which maps it plays. This guide goes through the server-wide part of that file, top to bottom.
How the file works
Each useful line is a setting name, a space, then its value. Lines that start with # are comments and are ignored, and so are empty lines. Put the server-wide settings at the top and the map rotations underneath (see map rotation and game modes).
serverconfig_default.txt, so work in a copy with your own name, such as serverconfig_myregiment.txt, and point the server at that file. On a Nordyx server you edit the file in the control panel's file manager.Ports
Three ports are required, and each must be different for every server on the same machine. On a Nordyx server these are set for you; leave them as they are.
server_port 20100
steam_communications_port 8700
steam_query_port 27000
The query port is what lets the server browser show your player count and current map.
Name, region and passwords
server_name [ABC] 1st Regiment - Line Battles
server_region europe
server_admin_password ChooseALongPassword
#server_password OnlyForPrivateServers
server_welcome_message Welcome to the 1st Regiment server!
server_regiontakes one of: europe, usa, usaeast, usawest, australia, china, japan, russia, southkorea, brazil. Nordyx servers are in Denmark, so useeurope.server_admin_passwordis the password for the admin console (admin commands guide). Make it long and don't share it in public channels.- Remove the
#in front ofserver_passwordto make the server private, for example during an event.
A pop-up for players who join can be set with server_intro_title and server_intro_body.
Network mode
network_broadcast_mode trades bandwidth for close-range accuracy:
| Value | Use it for |
|---|---|
LowBandwidth | The default. Best for high player counts. |
Balanced | Between the two; playable on big servers with strong hardware. |
HighAccuracy | More updates at close range, for lower player counts. |
UltraHighAccuracy | Melee servers; lighter than Realtime and copes with more players. |
Realtime | Melee Arena with small player counts only. |
Population thresholds
Maps can be limited to low, medium or high player counts. These lines set where each band starts (the values shown are the defaults):
population_low_min_players 30
population_medium_min_players 50
population_high_min_players 100
Add map_rotation_start_randomise true if the server should start on a random rotation instead of the first.
Artillery and anti-griefing
artillery_fieldgun_respawn_timer 120
artillery_rocketlauncher_respawn_timer 120
antigriefing_enabled true
Respawn timers are in seconds; both default to two minutes.
Automatic restarts
The server can restart itself on a timer. It waits for the round to end, then restarts, but gives up waiting after the overtime has passed:
server_autorestart_interval_minutes 320
server_autorestart_overtime_minutes 10
server_autorestart_broadcasted_message Restart at the end of this round.
server_autorestart_broadcasted_message_interval_minutes 2
There is a matching set of server_autoshutdown_… settings that stop the server instead. On Nordyx you can also restart from the control panel at any time.
Applying changes
Save the file and restart the server. For small changes there's a faster way: log in to the admin console in game and run rc fileReloader serverConfigFile to reload the config without a restart.
Run it on a Nordyx server
Holdfast: Nations at War servers in Denmark with a control panel where you edit the config file, load mods and restart.