How To Use Commands In Sons Of The Forest Pc : Cheat Codes For Survival Mode

Learning how to use commands in Sons of the Forest PC is a great way to customize your survival horror experience. Mastering the command console in Sons of the Forest gives you direct control over gameplay elements and environmental conditions. This guide will show you exactly how to access and use these powerful tools.

How To Use Commands In Sons Of The Forest Pc

Before you can start typing commands, you need to enable the developer console. This is a simple process that only takes a moment. The console is disabled by default, so you must activate it through the game’s files.

Here is the step-by-step process to enable the console.

  1. Navigate to your Sons of the Forest installation folder. This is usually found at: C:\Program Files (x86)\Steam\steamapps\common\Sons Of The Forest.
  2. Locate the file named game.cfg. Open this file with a text editor like Notepad.
  3. Find the line that says Console Enabled = false.
  4. Change “false” to “true”. Save the file and close it.

Now, when you launch the game, you can open the console by pressing the F1 key on your keyboard. A small text box will appear at the top of your screen. This is where you will type all your commands.

Basic Console Commands And Syntax

Typing commands correctly is crucial. The console uses a specific syntax, which means you need to format your text properly for the game to understand. Most commands follow a simple structure.

The basic format is often just the command word itself. For example, typing godmode on will make you invincible. Some commands require a value after them, like additem 10 to add items.

Here are some essential tips for using the console:

  • Type commands exactly as shown. They are usually case-sensitive.
  • Press the ~
  • Use the up and down arrow keys to cycle through your previous commands.
  • You can type help in the console to see a partial list of available commands.

Essential Cheat Commands For Gameplay

These commands directly affect your character’s stats and the core gameplay. They are perfect for when you get stuck or want to reduce the game’s difficulty for a more relaxed session.

Player And Survival Commands

Manage your health, stamina, and basic needs with these codes.

  • godmode on/off: Toggles invincibility. You will not take damage from enemies or the environment.
  • addenergy: Instantly refills your stamina bar to maximum.
  • addhealth: Fully restores your health.
  • hunger: Sets your hunger level to zero.
  • thirst: Sets your thirst level to zero.
  • rest: Sets your sleep need to zero.

Inventory And Item Spawning

This is one of the most popular uses for commands. You can get any item in the game without searching for it. The general command is additem [item id] [quantity].

For example, to get a modern axe, you would type additem 14. To get five pieces of duct tape, you would type additem 223 5. You need to know the specific item ID number. A full list of item IDs is available from the game’s community wikis.

Some other useful item commands include:

  • addallitems: This adds one of every item in the game to your inventory. Use with caution as it can clutter your backpack.
  • addallstoryitems: Gives you all key story-related items.
  • clearinventory: Removes all items from your inventory. This is irreversible.

World And Environment Control Commands

These commands let you change the weather, time of day, and even the behavior of the island’s inhabitants. They are powerful tools for setting the scene or creating specific scenarios.

Time And Weather Manipulation

You have complete control over the day-night cycle and atmospheric conditions.

  • settime [hour]: Sets the time of day. Use a value between 0 (midnight) and 23 (11 PM). For example, settime 12 sets it to noon.
  • setday: Immediately changes the time to morning (around 8 AM).
  • setnight: Immediately changes the time to night (around 10 PM).
  • weather [type]: Changes the weather. Types include clear, rain, storm, and fog.
  • freezeweather on/off: Locks the current weather so it does not change naturally.

Enemy And Creature Commands

You can spawn, remove, or control the cannibals and mutants. This is useful for testing or creating controlled encounters.

  • spawnenemy [enemy name]: Spawns a specific enemy near you. Names include skinnycannibal, maskedcannibal, and mutantbaby.
  • killallenemies: Instantly defeats every hostile creature in the immediate area.
  • cannibalhate [value]: Adjusts how much cannibals hate you. A value of 0 makes them neutral.
  • allowenemies on/off: Toggles whether new enemies can spawn in the world.

Building And Creative Mode Commands

If you enjoy the construction aspect of Sons of the Forest, these commands will save you countless hours of gathering resources. They allow for instant building and creative freedom.

The primary command for building is buildhack on. When this mode is active, you can place any structure without requiring the necessary logs or materials in your inventory. It essentially gives you creative mode for building.

Other useful construction commands include:

  • addstick, addlog, addrock: Adds these basic resources directly to your inventory or nearby.
  • finishstructure: Instantly completes the construction of the building you are currently looking at.
  • destroyallstructures: Removes every player-built structure from the world. This command cannot be undone, so be very careful.

Advanced Technical Commands

These commands are for players who want to tweak the game’s performance, visuals, or underlying systems. They can help with debugging or simply improving your frame rate.

Graphics And Performance

You can adjust certain visual settings beyond the standard menu options.

  • fov [value]: Changes your field of view. The default is usually around 60. Try values between 70 and 90 for a wider view.
  • grass.on off: Toggles grass rendering on or off. Turning it off can significantly boost performance.
  • showfps on/off: Displays a frames-per-second counter on your screen.

Game State And Save Commands

Manage your saves and game progression with these codes.

  • save: Forces an immediate manual save of your game.
  • load [save name]: Loads a specific save file.
  • restart: Restarts the game from the beginning, erasing your current progress.
  • gotoloc [x] [z]: Teleports your character to specific map coordinates.

Troubleshooting Common Command Issues

Sometimes commands don’t work as expected. Here are solutions to frequent problems players encounter.

If the console won’t open, double-check the game.cfg file to ensure you saved it correctly. Make sure you are pressing F1 in-game, not on the main menu. Some keyboards may require you to also press the Fn key with F1.

If a command is not working, first check for typos. Remember that spacing is important. For item IDs, ensure you have the correct number, as they can change with game updates. Commands also may not function properly in multiplayer sessions unless you are the host.

Using too many commands, especially item spawning, can sometimes cause game instability or crashes. It’s a good idea to save your game before experimenting with new codes. If you experience issues, try loading a previous save from before you used the commands.

Responsible Use Of Commands In Gameplay

Commands are powerful, but they can also diminish the intended experience. The survival horror tension of Sons of the Forest comes from scarcity and threat. Using godmode on and addallitems from the start removes that core element.

Consider using commands to enhance a second playthrough, to recover from a game-breaking bug, or to create a specific sandbox experience. For example, after beating the game normally, you might use building commands to construct a massive fortress without the grind. They are best used as a tool for customization rather than a first-time crutch.

Also, be aware that using commands may disable achievements for that play session. The game is designed to reward survival within its standard rules. If you care about earning Steam achievements, it is safest to avoid using the console during that save file.

Frequently Asked Questions

Can you use console commands in Sons of the Forest multiplayer?

Yes, but only the host of the multiplayer session can typically use commands. Other players in the game will not have access to the console. The host’s commands will affect the entire shared world.

What is the Sons of the Forest command for unlimited ammo?

There is not a direct “unlimited ammo” command. However, you can use the additem command with the ID for arrows or bullets to add large quantities to your inventory. For example, additem 46 100 gives you 100 pistol bullets.

How do you spawn items using Sons of the Forest cheats?

You spawn items with the additem [id] command. You must know the specific item ID number. These IDs can be found on community wiki pages dedicated to Sons of the Forest items and cheats.

Is there a teleport command in Sons of the Forest?

Yes, the gotoloc [x] [z] command allows for teleportation. You need to know the X and Z coordinates on the map. An easier method is often to use the settime command to skip to day if you’re just trying to avoid night.

Do commands disable achievements in Sons of the Forest?

Using commands can potentially disable achievements for that particular game save. The game may track when the console is used and flag the save file. For a guaranteed achievement run, it is recommended not to use any console commands.