Sons of The Forest Server Settings: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
Line 3: Line 3:
|description=Sons of the Forest dedicated server settings in dedicatedserver.cfg: what each does, its values, and how to change them over FTP or in the Command Center.
|description=Sons of the Forest dedicated server settings in dedicatedserver.cfg: what each does, its values, and how to change them over FTP or in the Command Center.
}}
}}
To change settings for your server, you will need to access the config file via [[FTP Access|FTP]] or by using the Command Center.
To change your server's settings, edit the config file over [[FTP Access|FTP]] or in the Command Center.
===FTP===
===FTP===
#Stop your server from the panel.
#Stop your server in the Command Center.
#Log in to [[FTP Access|FTP]].
#Log in to [[FTP Access|FTP]].
#Navigate to the directory you wish to upload or edit a file.<br>You want to edit the '''dedicatedserver.cfg''' file.
#Go to the folder that holds the '''dedicatedserver.cfg''' file. That's the file you edit.
#Open up the file using a text editor like Notepad or Notepad++.<br> If you are not familiar with configuration files, this file has no comment lines, so do not add lines starting with two slashes.<br> A file the panel cannot read is replaced at the next start with one that holds only your server's name, password, slots, address and ports.
#Open the file in a text editor like Notepad or Notepad++.<br> This file has no comment lines, so don't add lines starting with two slashes.<br> 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===
===Command Center===
Line 22: Line 22:
|-
|-
| '''"IpAddress": "0.0.0.0"'''
| '''"IpAddress": "0.0.0.0"'''
|Listening interface for the game server, usually 0.0.0.0 if listening on all interfaces.
|The IP address the server listens on. Usually 0.0.0.0, which listens on every address.
|-
|-
|'''"GamePort": 8766'''
|'''"GamePort": 8766'''
|UDP port used for gameplay netcode (Bolt).
|UDP port for gameplay traffic (Bolt).
|-
|-
|'''"QueryPort": 27016'''
|'''"QueryPort": 27016'''
|UDP port used by Steam to list the server and enable the discovery services.
|UDP port Steam uses to show the server in the server list.
|-
|-
|'''"BlobSyncPort": 9700'''
|'''"BlobSyncPort": 9700'''
| BlobSyncPort UDP port used by the BlobSync system to initialize game systems and exchange data.
| UDP port the game's BlobSync system uses to set up game systems and exchange data.
|-
|-
|'''"ServerName": "Sons Of The Forest Server (dedicated)"'''
|'''"ServerName": "Sons Of The Forest Server (dedicated)"'''
Line 37: Line 37:
|-
|-
|'''"MaxPlayers": 8'''
|'''"MaxPlayers": 8'''
|The maximum number of players allowed simultaneously on the server.
|The most players allowed on the server at once.
|-
|-
|'''"Password": ""'''
|'''"Password": ""'''
| Adds a password to make your server “private”. Upon connection, this password will be requested before the client can proceed.
| Adds a password to make your server private. Players are asked for it when they connect.
|-
|-
|'''"LanOnly": false'''
|'''"LanOnly": false'''
| Allows or restricts the server visibility to LAN only.
| Limits the server to your local network (LAN) when set to true.
|-
|-
|'''"SaveSlot": 1'''
|'''"SaveSlot": 1'''
|When creating a new save, this number will be the id of the save.
|The ID a new save gets.
|-
|-
|'''"SaveMode": "Continue"'''
|'''"SaveMode": "Continue"'''
|Game save initialization mode.
|How the server starts its save.
• “continue”: will create a new save on SaveSlot if it doesn’t exist, or load it if it exist.
• “continue”: loads the save on SaveSlot, or creates it if it doesn't exist.
• “new”: will create a new game, with a new game id, and overwrite any game previously saved on the SaveSlot. If the server stops and restarts, the previous save will be overwritten for as long as the mode is set to “new”.
• “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"'''
|'''"GameMode": "Normal"'''
| Sets the difficulty game mode when creating a new save. This parameter is ignored if loading a save (save mode set to “continue” with a save that exists on the slot). If the game mode is set to “custom”, then the custom game mode settings will be read from CustomGameModeSettings option, described later.
| 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'''
|'''"SaveInterval": 600'''
Line 60: Line 60:
|-
|-
|'''"IdleDayCycleSpeed": 0.0'''
|'''"IdleDayCycleSpeed": 0.0'''
|A multiplier to how quickly the time passes compared to normal gameplay when the server is considered idle (no player connected).
|How fast time passes, compared to normal play, while the server is idle (no players connected).
|-
|-
|'''"IdleTargetFramerate": 5'''
|'''"IdleTargetFramerate": 5'''
|Target framerate of the server when it’s considered idle (no player connected).
|The server's target frame rate while it's idle (no players connected).
|-
|-
|'''"ActiveTargetFramerate": 60'''
|'''"ActiveTargetFramerate": 60'''
| Target framerate of the server when it’s NOT considered idle (one or more player connected).
| The server's target frame rate while one or more players are connected.
|-
|-
|'''"LogFilesEnabled": false'''
|'''"LogFilesEnabled": false'''
|Defines if the logs will be written to files. The logs will be output in <user data folder>/logs.
|Whether logs are written to files. Log files go in <user data folder>/logs.
|-
|-
|'''"TimestampLogFilenames": true'''
|'''"TimestampLogFilenames": true'''
|Enabled log files timestamping.
|Adds the date and time to log file names.
• “true”: every time the server runs will dump log output to a new file, with filename having the following format: sotf_log_{DateTime:yyyy-MM-dd_HH-mm-ss}.txt
• “true”: each server run writes a new log file, named like this: sotf_log_{DateTime:yyyy-MM-dd_HH-mm-ss}.txt
• “false”: the filename will be sotf_log.txt and previous log will be overwritten if it already exists.
• “false”: the file is called sotf_log.txt, and each run overwrites the last log.
|-
|-
|'''"TimestampLogEntries": true'''
|'''"TimestampLogEntries": true'''
|Enables each log entry written to file to be timestamped.
|Adds the date and time to each line in the log file.
|-
|-
|'''"GameSettings": {}'''
|'''"GameSettings": {}'''
| A key value map of all game settings you can use to tweak your game (in any mode). All parameters will be listed in the table below, along with their possible values. If the value is null, or empty, default settings will be used.
| 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": {}'''
|'''"CustomGameModeSettings": {}'''
| A key value map of all settings available to customize your game in custom mode. All parameters will be listed in the table below, along with their possible values. If the value is null, or empty, default settings will be used. This parameter is ignored if the game mode is not “custom” or if loading a save (save mode set to “continue” with a save that exists on the slot), whether is it “custom” or not.
| 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==
==Game settings==
{| class="wikitable"
{| class="wikitable"
! style="font-weight: bold;" | Command
! style="font-weight: bold;" | Command
Line 93: Line 93:
|-
|-
| '''"Gameplay.TreeRegrowth": true'''
| '''"Gameplay.TreeRegrowth": true'''
|Enable automatic tree regrowth, triggered when sleeping. Values: true, false
|Trees grow back when players sleep. Values: true, false
|-
|-
| '''"Structure.Damage": true'''
| '''"Structure.Damage": true'''
Line 100: Line 100:
|}
|}


==Custom Game Mode Settings==
==Custom game mode settings==
{| class="wikitable"
{| class="wikitable"
! style="font-weight: bold;" | Command
! style="font-weight: bold;" | Command
Line 112: Line 112:
|-
|-
| '''"GameSetting.Vail.EnemySpawn": true'''
| '''"GameSetting.Vail.EnemySpawn": true'''
|Enable enemies spawning. Values: true, false
|Turns enemy spawning on or off. Values: true, false
|-
|-
| '''"GameSetting.Vail.EnemyHealth": "Normal"'''
| '''"GameSetting.Vail.EnemyHealth": "Normal"'''
Line 121: Line 121:
|-
|-
| '''"GameSetting.Vail.EnemyArmour": "Normal"'''
| '''"GameSetting.Vail.EnemyArmour": "Normal"'''
|Adjust enemies armor strength. Values: low, normal, high
|Adjust enemy armor strength. Values: low, normal, high
|-
|-
| '''"GameSetting.Vail.EnemyAggression": "Normal"'''
| '''"GameSetting.Vail.EnemyAggression": "Normal"'''
Line 133: Line 133:
|-
|-
| '''"GameSetting.Environment.StartingSeason": "Summer"'''
| '''"GameSetting.Environment.StartingSeason": "Summer"'''
|Set environmental starting season. Values: spring, summer, autumn, winter
|Set the starting season. Values: spring, summer, autumn, winter
|-
|-
| '''"GameSetting.Environment.SeasonLength": "Default"'''
| '''"GameSetting.Environment.SeasonLength": "Default"'''
Line 148: Line 148:
|-
|-
| '''"GameSetting.Survival.ConsumableEffects": "Normal"'''
| '''"GameSetting.Survival.ConsumableEffects": "Normal"'''
|Enable damage taken when low hydration and low fullness. Values: normal, hard
|Turns on damage when hydration and fullness are low. Values: normal, hard
|-
|-
| '''"GameSetting.Survival.PlayerStatsDamage": "Off"'''
| '''"GameSetting.Survival.PlayerStatsDamage": "Off"'''
|Enable damage from each bad or rotten food and drink. Values: off, normal, hard
|Turns on damage from bad or rotten food and drink. Values: off, normal, hard
|-
|-
| '''"GameSetting.Survival.ColdPenalties": "Off"'''
| '''"GameSetting.Survival.ColdPenalties": "Off"'''
|Adjusts the severity that cold will affect health and stamina regeneration. Values: off, normal, hard
|Sets how badly cold slows health and stamina regeneration. Values: off, normal, hard
|-
|-
| '''"GameSetting.Survival.StatRegenerationPenalty": "Off"'''
| '''"GameSetting.Survival.StatRegenerationPenalty": "Off"'''
Line 185: Line 185:
|}
|}


Don't have a server yet? [https://www.survivalservers.com/services/game_servers/sons_of_the_forest/ Rent a Sons Of The Forest server] from Survival Servers and be online in minutes.
[https://www.survivalservers.com/services/game_servers/sons_of_the_forest/ Rent a Sons of the Forest server] from Survival Servers and be online in minutes.

Revision as of 09:06, 17 November 2026

To change your server's settings, edit the config file over FTP or in the Command Center.

FTP

  1. Stop your server in the Command Center.
  2. Log in to FTP.
  3. Go to the folder that holds the dedicatedserver.cfg file. That's the file you edit.
  4. 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

  1. Click the Dedicatedserver.cfg button under TOOLS on your server's page.
  2. Edit your desired settings, click Save, then click RESTART on your server's 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.