Your Sons of the Forest server is controlled by a small set of configuration files, most of which live in the same folder. This guide breaks down what each file does and walks through every setting inside your main configuration file, dedicatedserver.cfg.
Step 1: Finding Your Configuration Files
- Log into your MintServers panel and click Stop to shut down your server.
- Navigate to the Files tab on the left-hand sidebar.
- Open the
serverconfigfolder. This is where your configuration files are kept.
📁 server (your main server directory)
📁 serverconfig
📄 ownerswhitelist.txt (list of server admins)
📄 SonsGameSettings (internal game settings, generally not edited directly)
📁 Saves (your world save data)
Step 2: Understanding dedicatedserver.cfg
dedicatedserver.cfg is a JSON file that controls almost everything about how your server runs, from its name and player limit to difficulty and world generation settings. Below is the default file:
Core Server Settings
🌐 Network & Identity
IpAddress— Listening interface for the server. Leave as0.0.0.0to listen on all interfaces.GamePort— UDP port used for gameplay traffic. Default8766.QueryPort— UDP port used by Steam to list your server. Default27016.BlobSyncPort— UDP port used to sync game data between clients and server. Default9700.ServerName— The name shown in the in-game server browser.LanOnly— Set totrueto hide your server from the public internet listing and restrict it to LAN.
👥 Players & Access
MaxPlayers— Maximum simultaneous players. Accepts 1 through 8, the game's supported co-op ceiling.Password— Requires players to enter this password before connecting. Leave as""for no password, or set up to 40 characters.
💾 Save & Game Mode
SaveSlot— The save ID used when creating or loading a world. Must be 1 or higher.SaveMode—"continue"loads the save onSaveSlotif it exists, or creates a new one if it doesn't."new"always creates a fresh save on that slot, overwriting anything already there on every restart.GameMode— Difficulty used when creating a new save:normal,hard,hardsurvival,peaceful, orcustom. Ignored when loading an existing save.SaveInterval— How often, in seconds, the server automatically saves. Default600(10 minutes).
⚙️ Performance & Logging
IdleDayCycleSpeed— Multiplier for how fast in-game time passes while no players are connected. Between0and1.IdleTargetFramerate— Target server framerate while idle (no players connected).ActiveTargetFramerate— Target server framerate while active (one or more players connected).LogFilesEnabled— Writes server logs to a/logsfolder when set totrue.TimestampLogFilenames— Whentrue, each server run creates a new timestamped log file instead of overwriting the last one.TimestampLogEntries— Adds timestamps to individual lines within the log file.
Game Settings
The GameSettings block applies regardless of which GameMode you've selected:
Gameplay.TreeRegrowth— Enables automatic tree regrowth, which is triggered by sleeping.Structure.Damage— Allows player-built structures to take damage.
Custom Game Mode Settings
When GameMode is set to "custom", the CustomGameModeSettings block lets you fine-tune difficulty and world settings individually. These settings are only read when a new save is created, they have no effect on an existing save, and they're ignored entirely if GameMode isn't set to custom.
🧟 Enemies & Animals
GameSetting.Vail.EnemySpawn—true/false. Enables or disables enemy spawning entirely.GameSetting.Vail.EnemyHealth—low,normal,high.GameSetting.Vail.EnemyDamage—low,normal,high.GameSetting.Vail.EnemyArmour—low,normal,high.GameSetting.Vail.EnemyAggression—low,normal,high.GameSetting.Vail.AnimalSpawnRate—low,normal,high.
🌦️ Environment
GameSetting.Environment.StartingSeason—spring,summer,autumn,winter.GameSetting.Environment.SeasonLength—short,default,long,realistic.GameSetting.Environment.DayLength—short,default,long,realistic.GameSetting.Environment.PrecipitationFrequency—low,default,high.
🍖 Survival
GameSetting.Survival.ConsumableEffects—normal,hard. Controls whether low hydration or fullness causes damage.GameSetting.Survival.PlayerStatsDamage—off,normal,hard. Controls damage from eating bad or rotten food.GameSetting.Survival.ColdPenalties—off,normal,hard. Controls how much cold affects health and stamina regeneration.GameSetting.Survival.ReducedFoodInContainers—true/false. Reduces the amount of food found in containers.GameSetting.Survival.SingleUseContainers—true/false. Containers can only be opened once.
Other Configuration Files
ownerswhitelist.txt— Plain text file listing the Steam64 IDs of players with full admin access. See our guide on adding admins for details.SonsGameSettings— Generated automatically by the game itself. This file generally does not need to be edited directly.Saves— Contains your world's save data, organized by save slot. See our guide on transferring a local save if you want to bring in a save from your own PC.
🛠️ Troubleshooting Configuration Issues
Server won't start after editing:This almost always means invalid JSON, most commonly a missing comma or quotation mark. Compare your file carefully against the default example above.Custom settings aren't applying:Custom game mode settings only take effect when a new save is created. They won't change an existing world.Need to start fresh:With your server stopped, deletededicatedserver.cfgand start your server once. A clean default file will be generated automatically.Not sure which setting changed something:Keep a backup copy of your working configuration file before making edits, so you always have something to revert to.
That covers the core configuration files for your Sons of the Forest server. If you get stuck editing any of these settings, no worries! Just open a support ticket and our team will gladly jump in and help you get it sorted out.