The server configuration file (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Papela/Nitrox-Cracked-Mod/llms.txt
Use this file to discover all available pages before exploring further.
server.cfg) controls all aspects of your Nitrox server’s behavior. This file is automatically created in your save directory when you first start a server.
Configuration File Location
Theserver.cfg file is located in your server’s save directory:
Replace
<ServerName> with your actual server name.Configuration Format
The configuration file uses a simple key-value format:Network Settings
ServerPort
The port number the server listens on for incoming connections.Example:
MaxConnections
Maximum number of players that can connect simultaneously.Constraints: Must be greater than 0Example:
ServerPassword
Password required for players to join the server. Leave empty for no password.Example:
AutoPortForward
If enabled, the server attempts to open the port on your router via UPnP.Example:
Your router must support UPnP for this to work. If it fails, you’ll need to manually port forward.
LANDiscoveryEnabled
Determines whether the server responds to LAN discovery requests.Example:
When enabled, your server will appear in the LAN servers list for players on the same network.
World Settings
Seed
World generation seed. Leave blank for a random spawn position.Example:
GameMode
Default game mode for the server.Possible Values:
SURVIVAL- Standard survival mode with hunger, thirst, and oxygenFREEDOM- No hunger or thirst requirementsHARDCORE- Permadeath modeCREATIVE- Creative mode with unlimited resources
KeepInventoryOnDeath
Prevents players from losing items when they die.Example:
PvPEnabled
Enables or disables player versus player damage and interactions.Example:
Save Settings
SaveInterval
Time in milliseconds between automatic world saves.Constraints: Must be at least 1000 (1 second)Example:
DisableAutoSave
Disables automatic world saving.Example:
MaxBackups
Maximum number of backup saves to keep.Constraints: Must be 0 or greaterExample:
Setting to 0 disables backups entirely. Older backups are automatically deleted when this limit is reached.
DisableAutoBackup
Disables automatic backup creation.Example:
PostSaveCommandPath
Path to a script or executable to run after each successful save.Example:
Useful for custom backup solutions or external monitoring scripts.
Performance Settings
InitialSyncTimeout
Time in milliseconds to wait for initial world sync when a player connects.Example:
Increase this value if players are timing out during initial connection on slower networks.
CreateFullEntityCache
If enabled, caches entities for the entire map on next server start.Example:
SafeBuilding
When enabled, rejects build actions detected as desynchronized.Example:
This prevents building glitches but may occasionally reject legitimate builds on high-latency connections.
Permission Settings
AdminPassword
Password players use with
/login command to gain admin permissions.Example:DefaultPlayerPerm
Default permission level for new players.Possible Values:
PLAYER- Basic player permissionsMODERATOR- Can kick, mute, and use moderation commandsADMIN- Full server control
LocalhostIsAdmin
If enabled, players connecting from localhost automatically get admin permissions.Example:
Player Default Stats
These settings control the starting stats for new players.DefaultOxygenValue
Starting oxygen level for new players.Example:
DefaultMaxOxygenValue
Maximum oxygen capacity for new players.Example:
DefaultHealthValue
Starting health for new players.Example:
DefaultHungerValue
Starting food level for new players.Example:
DefaultThirstValue
Starting water level for new players.Example:
DefaultInfectionValue
Starting Kharaa infection level for new players.Example:
Recommended to keep at 0.1 (the default starting value). Setting to 0 means new players are cured by default.
Advanced Settings
SerializerMode
Format used for saving world data.Possible Values:
JSON- Human-readable JSON formatPROTOBUF- Binary format (smaller file size, faster)
DisableConsole
Disables the server console.Example:
IsEmbedded
When true and started in launcher, uses the launcher UI instead of a separate window.Example:
Example Configuration
Here’s a complete example configuration file:server.cfg
Runtime Configuration
Some settings can be changed while the server is running using commands:Change Admin Password
Change Server Password
Change Game Mode
Toggle PvP
Changes made via commands are automatically saved to the configuration file.
Troubleshooting
Configuration not loading
Configuration not loading
Symptoms: Settings don’t apply, server uses defaultsSolutions:
- Check that the file is named exactly
server.cfg - Verify the file is in the correct save directory
- Check for syntax errors (use
Property=Valueformat) - Look for warnings in the server log
Invalid value warnings
Invalid value warnings
Symptoms: Log shows “invalid value” warningsSolutions:
- Check that numeric values are within valid ranges
- Verify boolean values are
trueorfalse(lowercase) - Ensure enum values match exactly (case-sensitive)
Port forwarding not working
Port forwarding not working
Symptoms: Players can’t connect from outside your networkSolutions:
- Set
AutoPortForward=true - Check if your router supports UPnP
- Manually forward the port in your router settings
- Verify firewall allows the port
See Also
Server Commands
Control your server with console commands
Getting Started
Set up your first Nitrox server
