How to Configure Your Holdfast: Nations At War Server

Learn how to configure your Holdfast: Nations At War dedicated server using the serverconfig_default.cfg file.

Holdfast: Nations At War server configuration is managed through the serverconfig_default.cfg file located in the server's root directory. This file controls everything from the server name and password to game modes, player limits, and admin access.

Editing the Configuration File

Open the XGamingServer panel

Log in to the XGamingServer panel and stop your Holdfast server.

Navigate to Files

In the sidebar, click Files.

Open the config file

Open serverconfig_default.cfg in the server root directory.

Edit your settings

Modify the values you want to change (see the reference tables below).

Save and restart

Click Save and start your server.

📝 Note: Always stop your server before editing the config file. Some changes may not apply correctly if the server is running, and the server may overwrite your changes on shutdown.

Server Identity Settings

These settings control how your server appears to players:

SettingDescriptionExample
server_nameName displayed in the server browserserver_name My Holdfast Server
server_passwordPassword required to join (blank = no password)server_password secret123
max_playersMaximum number of players allowedmax_players 150
server_regionRegion code for server browser filteringserver_region 0

For detailed guides on each setting:

Game Mode Settings

Holdfast supports multiple game modes. Configure the active mode and its settings:

SettingDescriptionExample
game_modeActive game modegame_mode 0
round_time_minutesRound duration in minutesround_time_minutes 15
auto_balance_teamsAutomatically balance team sizesauto_balance_teams true
friendly_fireEnable friendly fire damagefriendly_fire false
allow_spectatorsAllow players to spectateallow_spectators true

See our full Change Game Mode guide for all game mode options and values.

Game Mode Values

ValueGame Mode
0Army Battlefield
1Army Deathmatch
2Army Siege
3Naval Battlefield

Admin Settings

Configure who can administer your server:

SettingDescriptionExample
admin_steam_id_64Steam64 IDs of admin playersadmin_steam_id_64 76561198012345678
admin_passwordPassword for admin login (if using password auth)admin_password adminpass

Multiple admins can be added by listing each Steam64 ID on a separate admin_steam_id_64 line. See our Adding Admins guide for step-by-step instructions.

Map Rotation

The map rotation determines which maps are played and in what order. Maps are configured in the config file as a list:

map_rotation KF-BattleofWaterloo
map_rotation KF-FortBaxter
map_rotation KF-PortRoyal
map_rotation KF-TheFarm

💡 Tip: The server cycles through maps in the order listed. You can include the same map multiple times if you want it to appear more frequently in the rotation.

Gameplay Tweaks

SettingDescriptionDefault
spawn_protection_timeSeconds of invulnerability after spawning3
class_limit_enabledEnable class limits per teamfalse
officer_limitMaximum officers per team (if class limits enabled)2
musician_limitMaximum musicians per team2
cavalry_limitMaximum cavalry per team4
allow_flag_bearerAllow the flag bearer classtrue
allow_sapperAllow the sapper classtrue

Network Settings

SettingDescriptionDefault
server_portGame port20100
tick_rateServer tick rate (higher = smoother but more CPU)30
max_pingMaximum allowed player ping (0 = no limit)0

📝 Note: The server_port in the config should match what's assigned in the Network tab on the XGamingServer panel. If they don't match, players won't be able to connect.

Example Configuration

Here's a complete example serverconfig_default.cfg:

// Server Identity
server_name [US East] Army Battlefield | XGaming Community
server_password
max_players 100
server_region 0

// Game Mode
game_mode 0
round_time_minutes 15
auto_balance_teams true
friendly_fire false
allow_spectators true

// Admin Access
admin_steam_id_64 76561198012345678
admin_steam_id_64 76561198087654321

// Map Rotation
map_rotation KF-BattleofWaterloo
map_rotation KF-FortBaxter
map_rotation KF-PortRoyal

// Gameplay
spawn_protection_time 3
class_limit_enabled false
allow_flag_bearer true
allow_sapper true

// Network
server_port 20100
tick_rate 30
max_ping 0

Verifying Your Configuration

After making changes and restarting the server:

Check the Console

Go to Console on the XGamingServer panel and verify the server starts without errors. Look for messages confirming your settings loaded correctly.

Connect and verify

Connect to your server and verify the settings are applied — check the server name in the browser, try the password, and confirm the game mode is correct.

💡 Tip: If the server fails to start after a config change, check the Console output for error messages. A common issue is syntax errors in the config file. Double-check that each setting is on its own line and values don't contain unexpected characters.

If you get stuck at any time, you can join our Discord.

How is this guide?

40% Off — Limited TimeGet your Holdfast server todayInstant setup, DDoS protection, and 24/7 support included.
Get a Server

On this page