The Forest Console Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
[wiki:ss-claude-11372] Cut filler: notes about the page itself, repeated lines, empty phrases and decorative pictures (Ryan 2026-10-15)
[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=The Forest console commands for dedicated servers: allow cheats in Server.cfg, open the F1 console, and use admin commands such as /kick, /ban and /save.
|description=The Forest console commands for dedicated servers: allow cheats in Server.cfg, open the F1 console, and use admin commands such as /kick, /ban and /save.
}}
}}
To enable console commands for your Forest server, you will need to access the configuration file from '''TOOLS''' > '''Server.cfg''' on your server's page or via [[FTP Access|FTP]] to do so.
To turn on console commands for your Forest server, open the settings file from '''TOOLS''' > '''Server.cfg''' on the Game Server page, or over [[FTP Access|FTP]].


#Stop your server from the panel.
#Stop your server from the Command Center.
#Log in to FTP using WinSCP (a free FTP software) using the connection details found in the "FTP DETAILS" section of your server's page in the Command Center. Set Encryption to "TLS/SSL Explicit encryption", or the login is refused.<br> Download link for WinSCP here: [https://winscp.net/eng/download.php WinSCP download page]
#Log in over FTP with WinSCP, a free FTP program. Use the login in the "FTP DETAILS" section of the Game Server page in the Command Center. Set Encryption to "TLS/SSL Explicit encryption", or the login is refused.<br> Get WinSCP from the [https://winscp.net/eng/download.php WinSCP download page].
#Navigate to the directory you wish to upload or edit a file.<br>The file is Server.cfg , which is located at the first folder.
#Go to the folder where you want to upload or edit a file.<br>The file is Server.cfg, in the first folder.
#Open up the file using a text editor like Notepad or Notepad++.<br>If you are not familiar with configuration files, any line starting with two slashes is ignored by the program.<br><code>// This is a comment and will not be read by a file</code>
#Open the file in a text editor like Notepad or Notepad++.<br>If you're new to settings files: the server ignores any line that starts with two slashes.<br><code>// This is a comment and will not be read by a file</code>
#To enable cheats for your server, you will need to add a new line at the bottom of the file.<br>'''allowCheats on'''
#To turn on cheats, add a new line at the bottom of the file:<br>'''allowCheats on'''
#After editing/uploading/deleting your files in the proper directories, press the '''START''' button at the top of your server's page. (using '''Save Settings & Restart''' will overwrite your change)
#After you've edited, uploaded or deleted your files in the right folders, press the '''START''' button at the top of the Game Server page. (Using '''Save Settings & Restart''' overwrites your change.)
#Start up the Forest game on your own computer.
#Start The Forest on your own PC.
#Once you are at the main menu, type in the following: developermodeon.<br>Note: You will not see any indicator that you typed this in correctly.
#At the main menu, type: developermodeon.<br>Note: Nothing shows that you typed it correctly.
#To test if this works, press the F1 button. If you see $> toggleworkscheduler in the upper left corner, you did this correctly. Press F1 again.
#To test if this works, press F1. If you see $> toggleworkscheduler in the upper left corner, you did this correctly. Press F1 again.
#Find your server and connect to it.
#Find your server and connect to it.
#At the login screen, type in the admin password, which is the '''Admin Pass''' in the settings form on your server's page.
#At the login screen, type in the admin password, which is the '''Admin Pass''' in the settings form on the Game Server page.
#When you are in the game, press F1. You will see $> toggleworkscheduler in the upper left corner. You can now type in cheat commands.
#When you're in the game, press F1. You'll see $> toggleworkscheduler in the upper left corner. You can now type in cheat commands.
If you do not see the input prompt when you press F1, you will need to check the Server.cfg file to see if your addition was overwritten.
If you don't see the input prompt when you press F1, check the Server.cfg file to see if your new line was overwritten.
==Command List==
==Command list==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
|-
|-
| '''/help''' || Provides you with a help menu of all the known commands.
| '''/help''' || Shows a help menu of all the known commands.
|-
|-
| '''/save''' (slot number 1-5) || Saves the game on the chosen slot number. Be careful as it may save over another game in your dedicated server save folder.
| '''/save''' (slot number 1-5) || Saves the game on the chosen slot number. Be careful: it may save over another game in your dedicated server save folder.
|-
|-
| '''/restart''' || Restarts the server.
| '''/restart''' || Restarts the server.
Line 41: Line 41:
|}
|}


You can [https://www.survivalservers.com/services/game_servers/the_forest/ host your own The Forest server] with Survival Servers with instant setup.
[https://www.survivalservers.com/services/game_servers/the_forest/ Rent a server for The Forest] from Survival Servers with instant setup.

Latest revision as of 09:07, 17 November 2026

To turn on console commands for your Forest server, open the settings file from TOOLS > Server.cfg on the Game Server page, or over FTP.

  1. Stop your server from the Command Center.
  2. Log in over FTP with WinSCP, a free FTP program. Use the login in the "FTP DETAILS" section of the Game Server page in the Command Center. Set Encryption to "TLS/SSL Explicit encryption", or the login is refused.
    Get WinSCP from the WinSCP download page.
  3. Go to the folder where you want to upload or edit a file.
    The file is Server.cfg, in the first folder.
  4. Open the file in a text editor like Notepad or Notepad++.
    If you're new to settings files: the server ignores any line that starts with two slashes.
    // This is a comment and will not be read by a file
  5. To turn on cheats, add a new line at the bottom of the file:
    allowCheats on
  6. After you've edited, uploaded or deleted your files in the right folders, press the START button at the top of the Game Server page. (Using Save Settings & Restart overwrites your change.)
  7. Start The Forest on your own PC.
  8. At the main menu, type: developermodeon.
    Note: Nothing shows that you typed it correctly.
  9. To test if this works, press F1. If you see $> toggleworkscheduler in the upper left corner, you did this correctly. Press F1 again.
  10. Find your server and connect to it.
  11. At the login screen, type in the admin password, which is the Admin Pass in the settings form on the Game Server page.
  12. When you're in the game, press F1. You'll see $> toggleworkscheduler in the upper left corner. You can now type in cheat commands.

If you don't see the input prompt when you press F1, check the Server.cfg file to see if your new line was overwritten.

Command list

Command Description
/help Shows a help menu of all the known commands.
/save (slot number 1-5) Saves the game on the chosen slot number. Be careful: it may save over another game in your dedicated server save folder.
/restart Restarts the server.
/shutdown Shuts down the server.
/ban (steam id) Bans the user.
/kick (steam id) Kicks the user.
/treeregrowmode Regrow cut down trees when sleeping. Options are /treeregrowmode on or /treeregrowmode off.
/allowbuildingdestruction Allow building destruction. Options are /allowbuildingdestruction on or /allowbuildingdestruction off.
/allowenemiescreative Allow enemies in creative games. Options are /allowenemiescreative on or /allowenemiescreative off.

Rent a server for The Forest from Survival Servers with instant setup.