Console

Console is a developer interface in Don't Starve. Players can open a console menu by pressing

~ (Any OS). However, the feature must be enabled in the file below first:

\Klei\DoNotStarve\settings.ini <- Windows, Mac ~/.klei/DoNotStarve/settings.ini <- Linux

Opening settings.ini, players should make the following changes:

[MISC] ENABLECONSOLE = true

Also, players may not install Mods which may conflict with the console opening button. Otherwise, players will fail to open console menu. If players find great difficulties in using Console tools, players may use Testing Tool Mod as an alternative.

Note: there is currently a bug in the Linux version that prevents this file from b

eing created. For a fix check out the bug report.



Debug Spawn


DebugSpawn in the console is the mostly used by players. It can spawn unimplemented features like Unimplemented/Speculated Characters and Unimplemented/Speculated Items.

Players can also spawn other entities too. For example, if a player wants to spawn a Deerclops, he/she has to open the console and type DebugSpawn("deerclops").

Nevertheless, players are noticed that the entity name should follow the file name under. If players want to spawn a Treeguard, players should type DebugSpawn("leif") as the file name of Treeguard is leif.lua.

Spawn multiple items at once

The follow the instructions below to spawn 40 items. Substitute  by the technical code name of the item, players can look these codes up below in paragraph "List of Debug Spawn".

Step 1: Open console

Step 2: Enter this code: for x = 1, 40 do DebugSpawn("yourprefabname") end

Step 3: Press Enter/Return to execute code.

List of Debug Spawn

Characters

 * DebugSpawn("Wilson")
 * DebugSpawn("Willow")
 * DebugSpawn("Wendy")
 * DebugSpawn("Wolfgang")
 * DebugSpawn("Wickerbottom")
 * DebugSpawn("WX78")


 * DebugSpawn("Wes")
 * DebugSpawn("Lockedwes")
 * DebugSpawn("Woodie")
 * DebugSpawn("Wilton")
 * DebugSpawn("Waxwell") (Only In Surprise! Story Mode Preview)

Structures
Maxwellian


 * DebugSpawn("adventure_portal")
 * DebugSpawn("teleportato_base")
 * DebugSpawn("teleportato_box")
 * DebugSpawn("teleportato_crank")
 * DebugSpawn("teleportato_potato")
 * DebugSpawn("teleportato_ring")


 * DebugSpawn("maxwellthrone")
 * DebugSpawn("Maxwellkey")
 * DebugSpawn("Maxwelllock")
 * DebugSpawn("marbletree")
 * DebugSpawn("maxwellhead")
 * DebugSpawn("maxwelllight")

Nature
 * DebugSpawn("tree")
 * DebugSpawn("pond")
 * DebugSpawn("sapling")
 * DebugSpawn("flower")
 * DebugSpawn("pighouse")
 * DebugSpawn("rabbithole")
 * DebugSpawn("spiderden")
 * DebugSpawn("tallbirdnest")
 * DebugSpawn("berrybush")
 * DebugSpawn("blue_mushroom")
 * DebugSpawn("red_mushroom")
 * DebugSpawn("green_mushroom")
 * DebugSpawn("grass")

Mobs
Hostile


 * DebugSpawn("snowman) (does not currently work)''
 * DebugSpawn("spider")
 * DebugSpawn("slurtle)''
 * DebugSpawn("spiderwarrior")
 * DebugSpawn("merm")
 * DebugSpawn("knight")
 * DebugSpawn("bishop")
 * DebugSpawn("spiderqueen")
 * DebugSpawn("tentacle")
 * DebugSpawn("tallbird")
 * DebugSpawn("bat")


 * DebugSpawn("hound")
 * DebugSpawn("firehound")
 * DebugSpawn("icehound")
 * DebugSpawn("krampus")
 * DebugSpawn("walrus")
 * DebugSpawn("ghost")
 * DebugSpawn("leif")
 * DebugSpawn("deerclops")
 * DebugSpawn("killerbee")

Neutral


 * DebugSpawn("bee")
 * DebugSpawn("beefalo")
 * DebugSpawn("frog")
 * DebugSpawn("penguin)''


 * DebugSpawn("pigman")
 * DebugSpawn("koalefant_summer")
 * DebugSpawn("koalefant_winter")
 * DebugSpawn("bunnyman")

Passive
 * DebugSpawn("butterfly")
 * DebugSpawn("crow")
 * DebugSpawn("rabbit")
 * DebugSpawn("perd")
 * DebugSpawn("mandrake")

Other

 * DebugSpawn("abigail")
 * DebugSpawn("pigking")
 * DebugSpawn("maxwell")
 * DebugSpawn("smallmeat")
 * DebugSpawn("meat")
 * DebugSpawn("livinglog")
 * DebugSpawn("flint")
 * DebugSpawn("spear")

Other Commands
Reveal complete map

To reveal the complete map follow these steps:

Step 1: Open console

Step 2: Enter following code: minimap = TheSim:FindFirstEntityWithTag("minimap")

Step 3: Enter the next code: minimap.MiniMap:ShowArea(0,0,0, 10000)

Step 4: Press the Enter/Return key to execute code

God mode

To enable godmode folow these steps:

Step 1: Open console

Step 2: Enter the following code: GetPlayer.components.health:SetInvincible(true)

Step 3: Press Enter to execute code

Skipping days
To skip days follow these steps:

Step 1: Open console

Step 2: Enter the following code: GetClock:MakeNextDay

Step 3: Press Enter to execute code

How to skip more days:

Step 1: Open console

Step 2: Enter the following code: for x = 1, 40 do GetClock:MakeNextDay end

Step 3: Press Enter to execute code

Sidenote: You can replace 40 with a number you like, If you want to skip 60 days then enter 60.

Set Max Health

To change your Max Health follow these steps:

Step 1: Open console

Step 2: Enter the following code: GetPlayer.components.health:SetMaxHealth(300)

Step 3: Press Enter to execute code

You now have 300 health (at first it seems like it did nothing, but get hit, and it will show you your new max health).

Set Max Sanity

To change your max sanity follow these steps:

Step 1: Open console

Step 2: Enter the following code: GetPlayer.components.sanity:SetMax(500)

Step 3: Press Enter to execute code

You now increased your Max Sanity to 500!

Pause Hunger

To prevent yourself from losing hunger follow these steps:

Step 1: Open Console

Step 2: Enter the following code: GetPlayer.components.hunger:Pause(true)

Step 3: Press Enter to execute code

You will never starve now!

Test Adventure Levels

Players can use Console to test adventure levels. Opening the console menu, players have to type, it will transfer players from Sandbox Mode to Adventure Mode. Also, the codes

only work in Sandbox Mode. Therefore, players have to make themselves dead and get back to the Sandbox Mode, then type the codes

again.

"Creative Mode"

Step 1: Open Console



Step 2: Enter the following code: GetPlayer.components.builder:GiveAllRecipes

Step 3: Press Enter to execute code

Step 4: Select something in your inventory, pick up an item, or otherwise update your inventory.

Once enabled, you will unlock all recipes and be able to craft anything, regardless of if you have sufficient recources. Note that if you have recources, they will be consumed. This effect will wear off once you reload the world.