Configuring Your The Forest Server
Customize your The Forest dedicated server settings including difficulty, tree regrowth, building destruction, and more.
The Forest dedicated servers are configured through the config.cfg file. This guide covers how to access and modify your server settings.
Server Configuration
Stop Your Server
Access the XGamingServer Panel and Stop your server.
Open the Configuration File
Go to Files and open the config.cfg file in the server's root directory.
Edit Server Settings
The configuration file uses key-value pairs. Here are the most common settings:
| Setting | Description | Values |
|---|---|---|
serverName | Server name shown in browser | Any text |
serverPlayers | Maximum players | 1-8 |
serverPassword | Password to join | Any text or blank |
serverAutoSaveInterval | Auto-save interval in minutes | Number |
difficulty | Game difficulty | Peaceful, Normal, Hard, HardSurvival |
initType | New or continue game | New, Continue |
slot | Save slot number | 1-5 |
treeRegrowMode | Whether trees regrow | On, Off |
vegetationMode | Vegetation density | On, Off |
enemySpawn | Whether enemies spawn | On, Off |
allowBuildingDestruction | Can buildings be destroyed | On, Off |
allowCheats | Enable cheat commands | On, Off |
Save and Start Your Server
Save your changes and start your server to apply the new settings.
💡 Tip: Many common settings like server name, max players, and password can also be changed from
Startupin the panel. See Change Server Name, Max Players, and Set a Password for details.
If you need help with configuration, join our Discord and we will assist you.
How is this guide?