Skip to content

The Forest: Server Configuration

Learn how to set your The Forest game server’s name, passwords, save slot, difficulty, and game rules in config.cfg → Find out more

19 November 20263 min read0 Views0 helpful

Introduction

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.

How configuration works

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.cfg file. 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 parameters at a glance

Startup parameterDescription
Server nameYour server’s name in the server list. Default: ZapX The Forest Server
Max. playersThe maximum number of players who can join at the same time: 8 (default: 8).
Server passwordPassword required to join. Leave blank for a server without a password.
Admin passwordPassword for in-game admin commands. It’s best to set a dedicated password instead of leaving it blank.
Steam server tokenOptional 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.

Important

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.

Editing config.cfg

You can change all other settings directly in the file. Follow these steps:

  1. Stop your server in the Overview.
  2. Open the config/config.cfg file in the Files tab.
  3. Change the desired value and save the file.
  4. 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.

Code
difficulty Normal
initType Continue
slot 1
serverAutoSaveInterval 30
veganMode off

Savegame and session

SettingDescriptionDefault
initTypeContinue resumes the save in the selected slot; New starts a new game.Continue
slotWhich of the 5 save slots your server uses, from 1 to 5.1
difficultyDifficulty: Peaceful, Normal, or Hard. Only applies when starting a new game. A continued save keeps the difficulty it was created with.Normal
serverAutoSaveIntervalHow often your server saves automatically, in minutes; minimum 15.30
Warning

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.

Game rules

SettingDescriptionDefault
veganModeRemoves all enemies from the game.off
vegetarianModeRemoves enemies during the day only.off
allowBuildingDestructionWhether built structures can be destroyed.on
treeRegrowModeMakes 10% of felled trees regrow when you sleep.off
resetHolesModeResets all holes in structures when loading a save.off
allowEnemiesCreativeModeWhether enemies can still appear in Creative Mode.off
realisticPlayerDamageUses full weapon damage when attacking other players.off
allowCheatsAllows players to use the built-in debug console (cheats).off
enableVACEnables Valve Anti-Cheat (VAC) on your server.off

Performance and logging

SettingDescriptionDefault
showLogsShows the server event log in the Console.off
targetFpsIdleThe server’s target frame rate while no one is connected.0
targetFpsActiveThe server’s target frame rate when at least one player is connected.0
serverContactContact email address for the server admin.blank
Tip

Leave the saveFolderPath line blank. Your server stores its savegames in the saves folder, and the Savegames tab only detects them there.

Conclusion

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! 🙂

FAQ

Frequently asked questions

In the Files tab, under config/config.cfg. Stop your server before editing the file, then start it again afterward.
Your server writes the server name, player count, passwords, Steam server token, IP, and ports from the startup parameters to the file every time it starts. Change these values in the Configuration tab under Startup Parameters.
A maximum of 8. Set the number in the Configuration tab under Startup Parameters, in the Max. Players field.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 Users found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.