Sie sind auf Seite 1von 16
Wikia: Dont Starve Fan App FREE - In Google Play I n s t a

Wikia: Dont Starve Fan App

FREE - In Google Play

Install

Console/Don't Starve Together Commands

Table of Contents

Console/Don't Starve Together Commands Table of Contents The Command Console is enabled by default. If for

The Command Console is enabled by default. If for whatever reason it is not, you first need to do some tweaking in your settings.ini of your save. This can be found in the "DoNotStarveTogether" folder, located in the following paths :

Windows, Mac: <Documents>\Klei\DoNotStarveTogether\client.ini Linux:

Locate the settings.ini and open it with Notepad or other text editors. Locate the

make sure you are having

save it.

[MISC]

section, and

ENABLECONSOLE = true

under it. If it appears to be

, change andand ENABLECONSOLE = true under it. If it appears to be Then to open the console

Then to open the console while in game by pressing "~" by default on English keyboards. This can be changed at any time in the controls menu.

Notes:

You have to re-enter almost every command after loading a world.This can be changed at any time in the controls menu. Notes: Lua supports variable numbers

Lua supports variable numbers of arguments to functions, so if, for example, you only want to spawn one of a prefab, you can leave out the "amount": "c_spawn('beefalo')".have to re-enter almost every command after loading a world. If you are not the host

If you are not the host (or it's a dedicated server that you're an admin for), most commands need to be run remotely. Pressing ctrl with the console open switches to remote command mode. A few commands (such as revealing the map) are still done locally.the "amount": "c_spawn('beefalo')". Many Don't Starve Commands (/wiki/Console/Commands)

Many Don't Starve Commands (/wiki/Console/Commands) are still available in DST, so you can also read it.

Simple commands

Don't Starve Commands (/wiki/Console/Commands) are still available in DST, so you can also read it. Simple
Spawn prefab c_spawn(" prefab (/wiki/Console/Prefab_List) ",amount)

Spawn prefab

Improved DebugSpawn("prefab"), spawns amount of selected "prefab" under the mouse cursor.

Give Itemamount of selected "prefab" under the mouse cursor. c_give( "prefab" (/wiki/Console/Prefab_List)

Spawns amount of selected "prefab" in your inventory. Only works with Backpacks (/wiki/Backpack) and Items (/wiki/Items) that can be stored in the inventory.

Items (/wiki/Items) that can be stored in the inventory. Scenario (Not tested) c_doscenario(scenario) Apply a

Scenario (Not tested)

c_doscenario(scenario)

Apply a scenario script to the selection and run it.

Apply a scenario script to the selection and run it. Health c_sethealth(percent) Sets your health to

Health

c_sethealth(percent)

Sets your health to selected percentage. Note: Use fractional numbers 0.90 = 90%.

percentage. Note: Use fractional numbers 0.90 = 90%. Sanity c_setsanity(percent) Sets your sanity to selected

Sanity

c_setsanity(percent)

Sets your sanity to selected percentage. Note: Use fractional numbers 0.90 = 90%.

percentage. Note: Use fractional numbers 0.90 = 90%. Hunger c_sethunger(percent) Sets your hunger to selected

Hunger

c_sethunger(percent)

Sets your hunger to selected percentage. Note: Use fractional numbers 0.90 = 90%.

percentage. Note: Use fractional numbers 0.90 = 90%. Moisture c_setmoisture(percent) Sets your wetness to

Moisture

c_setmoisture(percent)

Sets your wetness to selected percentage. Note: Use fractional numbers 0.90 = 90%.

percentage. Note: Use fractional numbers 0.90 = 90%. Temperature c_settemperature(degrees) Sets your

Temperature

God Mode c_godmode()

God Mode

c_godmode()

It won't drain Sanity (/wiki/Sanity), Hunger (/wiki/Hunger) or Health (/wiki/Health) when attacked anymore. You cannot change your stats with commands while in godmode. If you are dead, revives you(Reviving via c_godmode() doesn't put you in godmode once revived). To deactivate God Mode use the command again.

Super God Moderevived). To deactivate God Mode use the command again. c_supergodmode() Same as God Mode but also

c_supergodmode()

Same as God Mode but also sets all your stats to full, even when turning it off. Similar to c_godmode(), it revives you as well(Reviving via c_supergodmode() doesn't put you in godmode once revived).To deactivate God Mode use the command again.

once revived). To deactivate God Mode use the command again. Set bonus running speed c_speedmult(multiplier) Standard

Set bonus running speed

c_speedmult(multiplier)

Standard bonus runspeed is 1. 2 makes you twice as fast and with 20 or more you can easily walk through walls and "over" water.

There's many other commands, but they're hard to use and not very useful.

Player commands

they're hard to use and not very useful. Player commands Note: Most of them will not

Note: Most of them will not work if you are a client and not an admin sending a remote control ( switching to remote mode with Ctrl ) .

a remote control ( switching to remote mode with Ctrl ) . Action Prediction ThePlayer:EnableMovementPrediction(enable)

Action Prediction

ThePlayer:EnableMovementPrediction(enable)

Enabled by default, setting it to "false" will exchange rubberbanding for choppiness, but is often helpful for combat. This only does anything if executed by a client, hosts do not have prediction.

if executed by a client, hosts do not have prediction. Creative mode ThePlayer.components.builder:GiveAllRecipes()

Creative mode

Maximum health ThePlayer.components.health:SetMaxHealth( value )

Maximum health

ThePlayer.components.health:SetMaxHealth(value)

Change the Maximum Health of your character (/wiki/Characters)

Maximum sanitythe Maximum Health of your character (/wiki/Characters) ThePlayer.components.sanity:SetMax( value ) Change the

ThePlayer.components.sanity:SetMax(value)

(/wiki/Sanity) of your character (/wiki/Characters) Maximum hunger ThePlayer.components.hunger:SetMax( value )

Maximum hunger

ThePlayer.components.hunger:SetMax(value)

(/wiki/Hunger) of your character (/wiki/Characters) Pause hunger ThePlayer.components.hunger:Pause(true) Your

Pause hunger

ThePlayer.components.hunger:Pause(true)

Your character (/wiki/Characters) won't starve anymore.

character (/wiki/Characters) won't starve anymore. Damage Multiplier

Damage Multiplier

ThePlayer.components.combat.damagemultiplier = value

Changes the Damage Multiplier of your character (/wiki/Characters).

Damage Multiplier of your character (/wiki/Characters) . Werebeaver ThePlayer.components.beaverness:SetPercent(.01)

Werebeaver

ThePlayer.components.beaverness:SetPercent(.01)

Turn Woodie (/wiki/Woodie) into the Werebeaver (/wiki/Woodie#Curse). Change the .01 to 1 if you want to get out of Werebeaver form.

Other Player Commands

want to get out of Werebeaver form. Other Player Commands Note: Many of the following commands

Note: Many of the following commands that are normally applied to your player, such as c_godmode() or c_sethealth(1), can be applied to other players by using c_select(AllPlayers[number]) first. So you will have the need for a playerlist to get the player numbers:

So you will have the need for a playerlist to get the player numbers: List all

List all players with username and player number.

c_listallplayers()

c_listallplayers() Get a certain player AllPlayers[number] AllPlayers[1] will get ThePlayer if you are the host. Other

Get a certain player

AllPlayers[number]

AllPlayers[1] will get ThePlayer if you are the host. Other players should have numbers as shown on the scoreboard (In certain situations, the number may be wrong. You can be more precise by using

c_listallplayers() first to see the username and character for each player number commands can be used with AllPlayers[number] instead of ThePlayer.

Most of ThePlayer

Apply a command to all playersAllPlayers[number] instead of ThePlayer. Most of ThePlayer for k,v in pairs(AllPlayers) do command end Replace command

for k,v in pairs(AllPlayers) do command end

Replace command with another command, using "v" instead of AllPlayers[number]. For example, "for k,v in pairs(AllPlayers) do c_move(v) end" will move all players to the mouse position.

end" will move all players to the mouse position. Move another player c_move(AllPlayers[number]) Moves the

Move another player

c_move(AllPlayers[number])

Moves the player to the cursor position.

Moves the player to the cursor position. Kill a player AllPlayers[number]:PushEvent('death')

Kill a player

AllPlayers[number]:PushEvent('death')

Kills the player.

Kills the player. Resurrect a player

Resurrect a player

AllPlayers[number]:PushEvent('respawnfromghost')

Resurrects the player.

Resurrects the player. Teleport to a player c_goto(AllPlayers[number]) Teleports

Teleport to a player

c_goto(AllPlayers[number])

Teleports you to to the player corresponding to the player number from c_listallplayers().

corresponding to the player number from c_listallplayers(). Drop a player's inventory items

Drop a player's inventory items

Despawn a player's character (returns to selection screen for repicking) c_despawn(AllPlayers[number])

Despawn a player's character (returns to selection screen for repicking)

c_despawn(AllPlayers[number])

This will delete their items, so it is recommended that you kill them first to drop their items, or let then DropEverthing() as shown above.

As of June 25, 2016, a new set of commands are introduced to call players. You can call a player by their player name instead of player number UserToPlayer('PlayerName'). For example, to kill a player called 'PlayerA' with player number 5, instead of doing:

AllPlayers[5]:PushEvent('death')

This requires you to first run c_listallplayers() and figure out player number.

you can simply do this:

UserToPlayer('PlayerA'):PushEvent('death')

World commands

commands Teleport to Prefab (/wiki/Console/Prefab_List) c_gonext(" prefab ") After pressing enter, it

c_gonext("prefab")

After pressing enter, it teleports you to the first numerical instance of the named prefab (/wiki/Console/Prefab_List). If multiple iterations of the prefab exist, a list of the entity numbers will be displayed in the console log, and each subsequent execution of the same command will transport the player from entity to entity in the order they were generated in the world.

to entity in the order they were generated in the world. Delete Item Under Mouse

Delete Item Under Mouse

ConsoleWorldEntityUnderMouse():Remove() c_select():Remove()

After pressing enter, it deletes the item under your mouse. Use the second command on dedicated servers, the first command will not work.

on dedicated servers, the first command will not work. Reveal Map minimap =

Reveal Map

TheWorld:PushEvent("ms_nextcycle")

TheWorld:PushEvent("ms_nextcycle") Skip time TheWorld.net.components.clock:OnUpdate(16*30*x) Skips x days. Change

Skip time

TheWorld.net.components.clock:OnUpdate(16*30*x)

Skips x days. Change x to skip more days or parts of days (e.g. 16*30*4.5 to skip 4.5 days) WARNING: Too big values may freeze the game. (Depending on computer speed)

Skip time units and updatevalues may freeze the game. ( Depending on computer speed ) LongUpdate(X) Skips X time units

LongUpdate(X)

Skips X time units and performs the "LongUpdate" function on world objects

Note: There are 30 time units per segment. To skip a whole day one can either use LongUpdate(480) or use multiplicative values such as LongUpdate(X*16*30) or LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip.

or LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip. Skip phase TheWorld:PushEvent("ms_nextphase") Skips

Skip phase

TheWorld:PushEvent("ms_nextphase")

Skips the current phase.

Skips the current phase. Set segments TheWorld:PushEvent("ms_setclocksegs",

Set segments

TheWorld:PushEvent("ms_setclocksegs", {day=x,dusk=y,night=z})

Sets amount of segments. Errors if x + y + z adds up to over 16. Note that this will get reset the next day. Example:

TheWorld:PushEvent("ms_setclocksegs", {day=14,dusk=1,night=1})

Very long day, very short dusk and night (one segment for dusk and one for night)

dusk and night (one segment for dusk and one for night) Set season segments

Set season segments

TheWorld:PushEvent("ms_setseasonclocksegs", {summer={day=sx,dusk=sy,night=sz}

Sets amount of segments. Errors if x + y + z adds up to over 16. Unlike setclocksegs, this is permanent. Example:

Set season lengths TheWorld:PushEvent("ms_setseasonlength", {season="summer", length=15})

Set season lengths

TheWorld:PushEvent("ms_setseasonlength", {season="summer", length=15})

Sets the lengths of the seasons.

Start Summerlength=15}) Sets the lengths of the seasons. TheWorld:PushEvent("ms_setseason", "summer")

TheWorld:PushEvent("ms_setseason", "summer")

Start summer Start Winter
Start summer
Start Winter

TheWorld:PushEvent("ms_setseason", "winter")

Start winter

When the RoG DLC is added, the additional commands will likely be TheWorld:PushEvent("ms_setseason", "spring") and TheWorld:PushEvent("ms_setseason", "autumn")

Start Rain TheWorld:PushEvent("ms_forceprecipitation") Start rain. Stop Rain
Start Rain
TheWorld:PushEvent("ms_forceprecipitation")
Start rain.
Stop Rain

TheWorld:PushEvent("ms_forceprecipitation", false)

Stop rain. This also includes Frog Rain (/wiki/Frog_Rain).

rain. This also includes Frog Rain (/wiki/Frog_Rain) . Do Lightning Strike

Do Lightning Strike

TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition())

Lightning strike on mouse cursor. Will hit lightning rod instead if there is one near

cursor. Will hit lightning rod instead if there is one near Meteor Strike c_spawn("shadowmeteor", 1) Meteor

Meteor Strike

c_spawn("shadowmeteor", 1)

Meteor strike on mouse cursor. Spawns different kind of rocks randomly.

on mouse cursor. Spawns different kind of rocks randomly. Measure Distance

Measure Distance

Prints the distance between player and object under mouse to the console log (displayed with Ctrl + L by default).

Network/Server Commands

with Ctrl + L by default). Network/Server Commands Kick/Ban a player TheNet:Kick(userid) TheNet:Ban(userid)

Kick/Ban a player

+ L by default). Network/Server Commands Kick/Ban a player TheNet:Kick(userid) TheNet:Ban(userid) Note that this can be

TheNet:Kick(userid) TheNet:Ban(userid)

Note that this can be accomplished more easily through the scoreboard. The userid can be obtained from the AllPlayers table. Once you've found the number of the player you want to kick (as shown above in the Other Player Commands section (/wiki/Console/Don%27t_Starve_Together_Commands#Other_Player_Commands)), you can use AllPlayers[#].userid.

Example:

c_listallplayers() [1] (KU_aabbccdd) Player1 <wolfgang>

[2] (KU_AABBCCDD) Player2 <wolfgang>

if Player2 is going to be banned from the server, console command can be written as

TheNet:Ban(AllPlayers[2].userid)

or

TheNet:Ban("KU_AABBCCDD")

Temporarily Ban a playeror TheNet:Ban("KU_AABBCCDD") TheNet:BanForTime( userid , time_in_seconds ) Player can be

TheNet:BanForTime(userid,time_in_seconds)

Player can be banned for a short period of time. userid stands for the KU id of the player to be banned. Once it is obtained it can be put in this format:

TheNet:BanForTime("KU_aabbccdd", 120).

This will ban the player with specified KU id for 120 seconds. This command should be entered to both servers if server has multi-level option (caves and overworld).

This command should be entered to both servers if server has multi-level option (caves and overworld).

Connect to a server

c_connect("IP address", port, "password")

If connecting conventionally doesn't work, it is possible to connect directly to an IP address. By default, the port is 10999. If there is no password, you can leave that part out: c_connect("10.0.0.8", 10999)

leave that part out: c_connect("10.0.0.8", 10999) Reload the world c_reset() Reloads the world without saving.

Reload the world

c_reset()

Reloads the world without saving. This command may crash your game if you are a client (unless you send it as a remote command).

Regenerate the worldyou are a client (unless you send it as a remote command). c_regenerateworld() Regenerates specified items

c_regenerateworld()

Regenerates specified items in a world.

c_regenerateworld() Regenerates specified items in a world. Regenerate a world shard c_regenerateshard() Regenerates

Regenerate a world shard

c_regenerateshard()

Regenerates specified items in a shard.

c_regenerateshard() Regenerates specified items in a shard. Save the server c_save() Forces the server to save

Save the server

c_save()

Forces the server to save immediately (servers normally autosave whenever night finishes).

(servers normally autosave whenever night finishes). Shut down the server c_shutdown( true / false) true will

Shut down the server

c_shutdown( true / false)

true will save the game, false will exit without saving. c_shutdown() is the same as c_shutdown(true).

saving. c_shutdown() is the same as c_shutdown(true). Roll back the server c_rollback(count) Rolls back a server

Roll back the server

c_rollback(count)

Rolls back a server by the given number of saves. c_rollback() will roll it back by one, while c_rollback(3) will roll it back three.

it back by one, while c_rollback(3) will roll it back three. Enable/Disable new player joining

Enable/Disable new player joining

Make a server announcement (for dedicated server console) c_announce("announcement")

Make a server announcement (for dedicated server console)

c_announce("announcement")

This allows you to announce server shutdowns/restarts so players do not just get disconnected without warning.

Miscellaneous Commands

Clear the morgueget disconnected without warning. Miscellaneous Commands ErasePersistentString("morgue") Clears the morgue.

without warning. Miscellaneous Commands Clear the morgue ErasePersistentString("morgue") Clears the morgue.

ErasePersistentString("morgue")

Clears the morgue. Requires closing and reopening the game for changes to be seen.

Count the number of something in the worldclosing and reopening the game for changes to be seen. c_countprefabs("prefab") On dedicated servers the

c_countprefabs("prefab")

On dedicated servers the result is printed on the server console

servers the result is printed on the server console Spawn Wormhole 1. Sadly no one line

Spawn Wormhole

1. Sadly no one line command, follow steps instead.

2. Spawn wormhole 1 using this command: worm1 = c_spawn("wormhole")

3. Spawn wormhole 2 using this command: worm2 = c_spawn("wormhole")

4. Create connections forth: worm1.components.teleporter.targetTeleporter = worm2

5. And back: worm2.components.teleporter.targetTeleporter = worm1

6. DONE!

Spawn a Domesticated Beefalo= worm1 6. DONE! atable.domestication = 1;

atable.domestication = 1; beef.components.domesticatable:BecomeDomesticated()

To change tendency replace DEFAULT with one of the following. "RIDER", "ORNERY", "PUDGY"

of the following. " RIDER", "ORNERY", "PUDGY" (http://fandom.wikia.com) (HTTP://FANDOM.WIKIA.COM)
of the following. " RIDER", "ORNERY", "PUDGY" (http://fandom.wikia.com) (HTTP://FANDOM.WIKIA.COM)
of the following. " RIDER", "ORNERY", "PUDGY" (http://fandom.wikia.com) (HTTP://FANDOM.WIKIA.COM)
Top Contributors to this article (/wiki/User:Rezecib) (/wiki/User:Stl1234) (/wiki/User:Deiaa20 02) (/wiki/User:Patdog)

Top Contributors to this article

Top Contributors to this article (/wiki/User:Rezecib) (/wiki/User:Stl1234) (/wiki/User:Deiaa20 02) (/wiki/User:Patdog)

02)

)

200 COMMENTS

02) (/wiki/User:Patdog) (/wiki/User:Tifel100 ) 200 COMMENTS PREVIOUS PAGE A Fandom User

PREVIOUS PAGE

(/wiki/User:Tifel100 ) 200 COMMENTS PREVIOUS PAGE A Fandom User (/wiki/Special:Contributions/92.28.172.74)

04/27/2015

anyone else having trouble with actually accessing the console during the game? I don't get a settings.ini

only settings when i'm in the klei document, I did get don't starve together as a gift from my friend on steam

so I don't have the original game

VIEW 1 REPLY

on steam so I don't have the original game VIEW 1 REPLY A Fandom User
(/wiki/Special:Contributions/85.150.143.31) 04/22/2015 Is there a way to skip the day bu t not change the date
(/wiki/Special:Contributions/85.150.143.31) 04/22/2015 Is there a way to skip the day bu t not change the date
(/wiki/Special:Contributions/85.150.143.31) 04/22/2015 Is there a way to skip the day bu t not change the date

Is there a way to skip the day but not change the date to day 1? Cause when i try to execute

TheWorld:PushEvent("ms_nextcycle")

It changes the date to day 1. Help?

VIEW 1 REPLY

It changes the date to day 1. Help? VIEW 1 REPLY A Fandom User (/wiki/Special:Contributions/198.49.125.36) 03/31/2015

03/31/2015

What Command would it be to reset a user to pick a new character?

VIEW 3 REPLIES

be to reset a user to pick a new character? VIEW 3 REPLIES A Fandom User

03/07/2015

How do I start snow, and be able to teleport another player to a specific position

VIEW 1 REPLY

teleport another player to a specific position VIEW 1 REPLY A Fandom User (/wiki/Special:Contributions/31.52.195.194)

03/01/2015

Do the commands for giving you characters actually do anything in DST?

VIEW 1 REPLY

Categories

actually do anything in DST? VIEW 1 REPLY Categories (http://fandom.wikia.com) Games (http://fan
actually do anything in DST? VIEW 1 REPLY Categories (http://fandom.wikia.com) Games (http://fan
in DST? VIEW 1 REPLY Categories (http://fandom.wikia.com) Games (http://fan dom.wikia.com/games) Follow Us
DST? VIEW 1 REPLY Categories (http://fandom.wikia.com) Games (http://fan dom.wikia.com/games) Follow Us

DST? VIEW 1 REPLY Categories (http://fandom.wikia.com) Games (http://fan dom.wikia.com/games) Follow Us

Games (http://fan dom.wikia.com/games) Follow Us (http://fandom.wikia.com)
Games (http://fan dom.wikia.com/games) Follow Us (http://fandom.wikia.com) (HTTP://FANDOM.WIKIA.COM) Movies