The Forest Server Settings

The server reads one file, config.cfg, once as it starts. Every line is a key and a value. Here is each setting the panel exposes, with the game's own default.

The settings

KeyDefaultWhat it does
serverNameThe Forest on FluxWhat players see in the server list
serverPlayers8Max players, 2 to 100 (the game's own limits)
serverPassword(empty)Join password; empty is an open server
serverPasswordAdmin(empty)Admin password; empty means nobody can use admin commands
serverAutoSaveInterval15Minutes between autosaves while players are on (15 is the least the game allows)
difficultyNormalPeaceful, Normal or Hard, for a new world
veganModeoffNo enemies at all
vegetarianModeoffNo enemies by day
allowEnemiesCreativeModeoffEnemies in a creative-mode world
allowBuildingDestructiononWhether structures can be destroyed
treeRegrowModeoffRegrows 10% of cut trees when players sleep
resetHolesModeoffCloses every hole in structures when a save loads
realisticPlayerDamageoffFull weapon damage between players
allowCheatsoffLets clients use the built-in debug console
targetFpsIdle / targetFpsActive5 / 60Updates a second with nobody on / with players on

Things worth knowing

  • The server reads the file only when it starts, so a change needs a restart.
  • The difficulty is chosen when a world is made. A world keeps the difficulty it was made with: to play another, start a new world in another save slot.
  • serverAutoSaveInterval cannot go under 15 minutes: the game raises a smaller value to 15.
  • The ports and the save folder are not settings you choose on Flux: the deployment sets them to the ports it publishes.

On Flux

The Server Settings tab of the dashboard is a form for all of this, with the defaults beside each field and presets for the rules: no enemies, enemies only at night, full weapon damage between players. Saving restarts the server, which applies the file.

Frequently asked questions

How often does The Forest server save?

Every 15 minutes by default while players are on (the game does not allow less), and once when the last player leaves. It does not save when it is stopped.

Can I change the difficulty of an existing world?

No. A world keeps the difficulty it was made with. Start a new world in another save slot to play another.

Related The Forest guides