With the right configuration, you can turn your Holdfast: Nations At War game server into exactly the server you have in mind: with your own name, password, welcome message for your players, and game rules. In this guide, we’ll show you which settings to configure as startup parameters in ZapX and what you can adjust directly in the configuration file.
Holdfast reads its server settings from the config/serverconfig.txt file. However, you don’t need to change the most important values there by hand: you’ll find them in ZapX under the Configuration tab, in Startup parameters.
Each time your server starts, it writes the values from the startup parameters to the corresponding lines in serverconfig.txt. Everything else, such as game rules or the map rotation, stays as it is and can be edited directly in the file. You’ll find the file in the config folder under the Files tab.
Always change values that are available as startup parameters under Startup Parameters, not directly in serverconfig.txt. Any changes made in the file will be overwritten the next time the server starts with the values from the startup parameters.
After you save your changes, ZapX will offer to restart the server. Your changes won’t take effect until the server has restarted.
| Startup parameter | Line in serverconfig.txt | Description |
|---|---|---|
| Server name | server_name | The name of your server in the server list. Default: ZapX Holdfast Server |
| Region | server_region | The region under which your server appears in the server list. Default: europe |
| Server password | server_password | Password required to join. Leave blank for a public server without a password. |
| Welcome message | server_welcome_message | Message players see when they join. Default: Welcome to your ZapX Holdfast server! |
| Intro title | server_intro_title | Heading on your server’s welcome screen. Default: Welcome! |
| Intro text | server_intro_body | Text on the welcome screen. Default: Hosted by ZapX |
| Network mode | network_broadcast_mode | Your server’s network broadcast mode: Standard (default) or Competitive for competitive servers |
| Max. players | maximum_players | The number of players who can play on your server at the same time. Default: 64 |
| Additional startup parameters | – | Optional additional command-line parameters for the server, separated by spaces. Leave blank if you don’t need any. |
Max. players applies to the entire server: when it starts, your server sets every maximum_players line in serverconfig.txt to this value, including those in your map rotation entries.
If the Server password field is blank, your server writes the line as a comment, #server_password, in the file. Your server can then be accessed without a password.
ZapX automatically generates a random admin password for your server during its initial setup. You can find it on the server_admin_password line in serverconfig.txt.
Your server also rewrites the server_admin_password line every time it starts. Any change made directly to this line will therefore only last until the next restart. Keep the password confidential and only share it with players who should have admin privileges.
ZapX assigns your server’s ports automatically. Each time it starts, your server writes them to the server_port, steam_communications_port, and steam_query_port lines. Don’t edit these lines by hand; the values will be overwritten the next time the server starts anyway. You can see your server’s ports under the Overview tab.
Add mods from the Steam Workshop under the Workshop tab. Each time your server starts, it adds the Workshop IDs as mods_installed lines in a separate section of serverconfig.txt managed by ZapX. You can identify this section by the # ZAPX_MANAGED_WORKSHOP_BEGIN and # ZAPX_MANAGED_WORKSHOP_END markers. Don’t edit it by hand; it is rewritten every time the server starts.
After making changes under the Workshop tab, restart your server to load the mods. Our guide Installing mods shows you how to find and add mods.
You can edit anything that isn’t available as a startup parameter directly in serverconfig.txt, for example:
| Line | Description |
|---|---|
friendly_fire | Whether players can damage members of their own faction (true or false) |
admin_console_allowed | Whether admin console commands are allowed in the game at all (true or false) |
allow_spectating | Whether players are allowed to spectate (true or false) |
show_serverperformance_warning | Whether your server shows players a warning when performance drops (true or false) |
map_rotation_start_randomise | Whether the first map is randomly selected from the rotation after startup (true or false) |
You can edit the file under the Files tab or under Configuration: there, an AI displays the settings as easy-to-understand form fields, and you can access the raw text using Edit directly. When your server starts for the first time, it creates serverconfig.txt from the included template. After that, your changes are retained, except for lines your server writes using the startup parameters.
Before making major changes, copy the current contents of serverconfig.txt. That way, you can quickly restore them if your server no longer starts as expected after a change.
You’ve now configured your Holdfast server just the way you want it. Our guide Connecting to the server shows your players how to join. If something isn’t working as expected, our guide Common issues can help. If you have any other questions, our support team is available every day! 🙂
