Sons of The Forest Server Settings
To change your server's settings, edit the config file over FTP or in the Command Center.
FTP
- Stop your server in the Command Center.
- Log in to FTP.
- Go to the folder that holds the dedicatedserver.cfg file. That's the file you edit.
- Open the file in a text editor like Notepad or Notepad++.
This file has no comment lines, so don't add lines starting with two slashes.
If the Command Center can't read the file, it replaces it at the next start with one that holds only your server's name, password, slots, address and ports.
Command Center
- Click the Dedicatedserver.cfg button under TOOLS on the Game Server page.
- Edit your desired settings, click Save, then click RESTART on the Game Server page.
You can also change these settings in Server Config under TOOLS, which shows every game setting in one window with no file to edit.
Config Settings
| Command | Description |
|---|---|
| "IpAddress": "0.0.0.0" | The IP address the server listens on. Usually 0.0.0.0, which listens on every address. |
| "GamePort": 8766 | UDP port for gameplay traffic (Bolt). |
| "QueryPort": 27016 | UDP port Steam uses to show the server in the server list. |
| "BlobSyncPort": 9700 | UDP port the game's BlobSync system uses to set up game systems and exchange data. |
| "ServerName": "Sons Of The Forest Server (dedicated)" | Name of the server visible in the server list, and in the Steam contacts. |
| "MaxPlayers": 8 | The most players allowed on the server at once. |
| "Password": "" | Adds a password to make your server private. Players are asked for it when they connect. |
| "LanOnly": false | Limits the server to your local network (LAN) when set to true. |
| "SaveSlot": 1 | The ID a new save gets. |
| "SaveMode": "Continue" | How the server starts its save.
• “continue”: loads the save on SaveSlot, or creates it if it doesn't exist. • “new”: creates a new game with a new game ID and overwrites any game saved on the SaveSlot. While the mode is “new”, every restart overwrites the previous save. |
| "GameMode": "Normal" | Sets the difficulty for a new save. It's ignored when loading a save (save mode set to “continue” with a save that exists on the slot). If the game mode is “custom”, the custom settings are read from CustomGameModeSettings, in the Custom game mode settings table. |
| "SaveInterval": 600 | How often the game server automatically saves the game to SaveSlot, in seconds. |
| "IdleDayCycleSpeed": 0.0 | How fast time passes, compared to normal play, while the server is idle (no players connected). |
| "IdleTargetFramerate": 5 | The server's target frame rate while it's idle (no players connected). |
| "ActiveTargetFramerate": 60 | The server's target frame rate while one or more players are connected. |
| "LogFilesEnabled": false | Whether logs are written to files. Log files go in <user data folder>/logs. |
| "TimestampLogFilenames": true | Adds the date and time to log file names.
• “true”: each server run writes a new log file, named like this: sotf_log_{DateTime:yyyy-MM-dd_HH-mm-ss}.txt • “false”: the file is called sotf_log.txt, and each run overwrites the last log. |
| "TimestampLogEntries": true | Adds the date and time to each line in the log file. |
| "GameSettings": {} | A list of game settings you can use to change your game, in any mode. Each one is in the Game settings table, with its values. If it's null or empty, the default settings are used. |
| "CustomGameModeSettings": {} | A list of settings to customize your game in custom mode. Each one is in the Custom game mode settings table, with its values. If it's null or empty, the default settings are used. It's ignored if the game mode isn't “custom”, or when loading a save (save mode set to “continue” with a save that exists on the slot), custom or not. |
Game settings
| Command | Description |
|---|---|
| "Gameplay.TreeRegrowth": true | Trees grow back when players sleep. Values: true, false |
| "Structure.Damage": true | Allow buildings to be damaged. Values: true, false |
Custom game mode settings
| Command | Description |
|---|---|
| "GameSetting.Multiplayer.Cheats": false | Allow cheats on the server. Values: true, false |
| "GameSetting.Multiplayer.PvpDamage": "Normal" | Adjust the damage players do to each other. Endnight's guide lists no other values for it. |
| "GameSetting.Vail.EnemySpawn": true | Turns enemy spawning on or off. Values: true, false |
| "GameSetting.Vail.EnemyHealth": "Normal" | Adjust enemy starting health. Values: low, normal, high |
| "GameSetting.Vail.EnemyDamage": "Normal" | Adjust damage enemies can do. Values: low, normal, high |
| "GameSetting.Vail.EnemyArmour": "Normal" | Adjust enemy armor strength. Values: low, normal, high |
| "GameSetting.Vail.EnemyAggression": "Normal" | Adjust enemy aggression level. Values: low, normal, high |
| "GameSetting.Vail.AnimalSpawnRate": "Normal" | Adjust animal spawn rate. Values: low, normal, high |
| "GameSetting.Vail.EnemySearchParties": "Normal" | Adjust how often enemy search parties come looking for you. Values: low, normal, high |
| "GameSetting.Environment.StartingSeason": "Summer" | Set the starting season. Values: spring, summer, autumn, winter |
| "GameSetting.Environment.SeasonLength": "Default" | Adjust season length. Values: short, default, long, realistic |
| "Structure.Damage": "true" | Allow buildings to be damaged. Values: true, false |
| "GameSetting.Environment.DayLength": "Default" | Adjust day length. Values: short, default, long, realistic |
| "GameSetting.Environment.PrecipitationFrequency": "Default" | Adjust the frequency of rain and snow. Values: low, default, high |
| "GameSetting.Survival.ConsumableEffects": "Normal" | Turns on damage when hydration and fullness are low. Values: normal, hard |
| "GameSetting.Survival.PlayerStatsDamage": "Off" | Turns on damage from bad or rotten food and drink. Values: off, normal, hard |
| "GameSetting.Survival.ColdPenalties": "Off" | Sets how badly cold slows health and stamina regeneration. Values: off, normal, hard |
| "GameSetting.Survival.StatRegenerationPenalty": "Off" | Reduces how fast health and stamina regenerate. Values: off, normal, hard |
| "GameSetting.Survival.ReducedFoodInContainers": false | Reduces the amount of food found in containers. Values: true, false |
| "GameSetting.Survival.SingleUseContainers": false | Containers can only be opened once. Values: true, false |
| "GameSetting.Survival.BuildingResistance": "Normal" | Adjust how well buildings stand up to attacks. Values: low, normal, high |
| "GameSetting.Survival.CreativeMode": false | Turns the world into a creative game with no survival needs. Values: true, false |
| "GameSetting.Survival.PlayersImmortalMode": false | God mode for every player, so nobody can die. Values: true, false |
| "GameSetting.FreeForm.ForcePlaceFullLoad": false | Places everything a player holds in one click, such as stones, stone floors and wood floors. Values: true, false |
| "GameSetting.Construction.NoCuttingsSpawn": false | Stops cuttings from spawning. Values: true, false |
| "GameSetting.Survival.OneHitToCutTrees": false | A tree falls with a single hit. Values: true, false |
Rent a Sons of the Forest server from Survival Servers and be online in minutes.