With the right configuration, you can make your The Forest game server exactly the way you want it: with your own server name, password, difficulty, save slot, and game rules such as Vegan or Vegetarian mode. In this guide, we’ll show you which settings are available, where to find them in ZapX, and what you can adjust directly in the config.cfg file.
Your server settings are located in two places:
- Startup parameters: You’ll find the basic settings in ZapX under the Configuration tab, in Startup Parameters.
- config.cfg: All other settings are in the
config/config.cfgfile. You’ll find it in the Files tab.
Whenever your server starts, it writes the values from the Startup Parameters to config.cfg. All other lines in the file remain unchanged.
| Startup parameter | Description |
|---|---|
| Server name | Your server’s name in the server list. Default: ZapX The Forest Server |
| Max. players | The maximum number of players who can join at the same time: 8 (default: 8). |
| Server password | Password required to join. Leave blank for a server without a password. |
| Admin password | Password for in-game admin commands. It’s best to set a dedicated password instead of leaving it blank. |
| Steam server token | Optional server login token from Steam. Leave blank to have your server log in to Steam anonymously (default). |
After you save, ZapX will offer to restart the server. Your changes won’t take effect until the server restarts.
Your server overwrites the server name, player count, passwords, Steam server token, IP, and ports (serverIP, serverSteamPort, serverGamePort, serverQueryPort) in config.cfg every time it starts. If you change these lines directly in the file, your changes will be lost the next time the server starts. Always use the Startup Parameters to change these values.
You can change all other settings directly in the file. Follow these steps:
- Stop your server in the Overview.
- Open the
config/config.cfgfile in the Files tab. - Change the desired value and save the file.
- Start your server again.
Each setting is on its own line: first the name, then a space and the value, with no equals sign. Set switches to on or off. Lines beginning with // are comments.
difficulty Normal
initType Continue
slot 1
serverAutoSaveInterval 30
veganMode off
| Setting | Description | Default |
|---|---|---|
initType | Continue resumes the save in the selected slot; New starts a new game. | Continue |
slot | Which of the 5 save slots your server uses, from 1 to 5. | 1 |
difficulty | Difficulty: Peaceful, Normal, or Hard. Only applies when starting a new game. A continued save keeps the difficulty it was created with. | Normal |
serverAutoSaveInterval | How often your server saves automatically, in minutes; minimum 15. | 30 |
Setting initType New starts a new game in the selected slot. Download your save from the Savegames tab or create a backup first, then set the value back to Continue.
Your savegames are stored in the saves folder. For instructions on downloading and uploading them, see our guide Managing savegames.
| Setting | Description | Default |
|---|---|---|
veganMode | Removes all enemies from the game. | off |
vegetarianMode | Removes enemies during the day only. | off |
allowBuildingDestruction | Whether built structures can be destroyed. | on |
treeRegrowMode | Makes 10% of felled trees regrow when you sleep. | off |
resetHolesMode | Resets all holes in structures when loading a save. | off |
allowEnemiesCreativeMode | Whether enemies can still appear in Creative Mode. | off |
realisticPlayerDamage | Uses full weapon damage when attacking other players. | off |
allowCheats | Allows players to use the built-in debug console (cheats). | off |
enableVAC | Enables Valve Anti-Cheat (VAC) on your server. | off |
| Setting | Description | Default |
|---|---|---|
showLogs | Shows the server event log in the Console. | off |
targetFpsIdle | The server’s target frame rate while no one is connected. | 0 |
targetFpsActive | The server’s target frame rate when at least one player is connected. | 0 |
serverContact | Contact email address for the server admin. | blank |
Leave the saveFolderPath line blank. Your server stores its savegames in the saves folder, and the Savegames tab only detects them there.
Congratulations, your The Forest server is now set up just the way you want it. For instructions on joining your server, see our guide Connecting to the server. If something isn’t working as expected, our guide Troubleshooting common issues can help. If you have any other questions or need help, our support team is available every day! 🙂