Don’t Starve Together: Console Guide

Console - an interface element with which you can enter console commands (cheats). To open the console, you need to press (language) «~»,»Or». Using the up and down arrows, you can select previously entered commands of the current game.

 

Introduction.

DST console is enabled by default.

DST has several options for your status in the game:

• You are the host.
▪In this case, you are an administrator and can fully use the console.
• You are a guest.
▪You have no rights and cannot use the console. There are a limited number of teams, which run on the client side. But almost all key information is processed on the server., so you won't be able to cheat.
• You are the admin of another server. That is, this is either your dedicated server (using your token), or someone else's server / host, on which you were given administrator rights.
▪In this case, you can also use the console fully. But the console works in two modes - “Local” and “Remote”. In the first case, the command will be executed locally, as if you are a guest. In the second case, the command will be sent to the server and executed there. The mode is switched with the Ctrl key. “Remote” the mode is indicated to the left of the console by a purple label. While doing “remote” teams, information is displayed in the server log, and not in the client console log, including syntax errors or unsuccessful execution.

Console commands.

There are several types of codes. For one type, only 1 team and a lot of blanks. For another type, you need to use different commands for different actions.

DebugSpawn("Blank") - instead of the word blank, you need to enter the call code (see the table of blanks, column "Blank")
▪c_xxx() - generalized commands
▪GetXXX() - specific commands
• For normal play
• Для Together

Simple codes.

The analogue of the "DebugSpawn" command is c_spawn.

Summons any object to play (take the code from the "Call code" column, see. below):
c_spawn(“call code”,quantity)

Summons any item to inventory (take the code from the "Call code" column, see. below):
c_give(“call code”,quantity)

God 'mode (you cannot be killed. Disappears after restarting the game, sleep, cave entrance, wormhole, teleportation):
c_godmode()

Increase movement speed (Default 6.from 15 to 40 - passing through walls and water):
c_speed(Speed)

Move to object:
c_gonext(“blank”)
If you do not specify a blank, you will fall into the void

Object distance (print the distance value in the console to objects, highlighted by mouse):
print(math.sqrt(GetPlayer():GetDistanceSqToInst(TheInput:GetWorldEntityUnderMouse())))

Number of objects / animals:
c_countprefabs(“blank”)

You can also improve the status of indicators:

Satiety:
c_sethunger(number to 1)
GetPlayer().components.hunger:SetMax(number)
GetPlayer().components.hunger:Pause(TRUE or FALSE)

Health:
c_sethealth(number to 1)
GetPlayer().components.health:SetMaxHealth(number)

Reason:
c_setsanity(number to 1)
GetPlayer().components.sanity:SetMax(number)

Complex codes.

Complex codes
This is where the teams make more granular changes..

Unlock all recipes and free crafting:
GetPlayer().components.builder:GiveAllRecipes()
Show or hide HUD:
GetPlayer().SKIN:Hide()
GetPlayer().SKIN:Show()
World interaction commands:

Deleting an Object:
Removes the object, which is highlighted by the mouse. Esil highlight yourself - the game will close
TheInput:GetWorldEntityUnderMouse():Remove()
c_select() c_sel():Remove()
Open the whole map:
GetWorld().​minimap.MiniMap:ShowArea(0,0,0,10000)​
Skip 1 day:
GetClock():MakeNextDay()
Skip a few days:
for x = 1, 10 do GetClock():MakeNextDay() end
Number 10 - the number of days to skip. Can change
Setting the ratio of the day, evenings and nights (in total it should turn out 16):
GetClock():SetSegs(Time of day, evenings, nights)
Skip 1 phase of the day (night, afternoon or evening):
GetClock():NextPhase()
Interaction with the seasons.

Summer:
GetSeasonManager():StartSummer()
Winter:
GetSeasonManager():StartWinter()
Spring (Please):
GetSeasonManager():StartSpring()
Fall (Please):
GetSeasonManager():StartAutumn()
Moderate season (SW):
GetSeasonManager():StartMild()
Hurricane season (SW):
GetSeasonManager():StartWet()
Green season (SW):
GetSeasonManager():StartGreen()
Dry season (SW):
GetSeasonManager():StartDry()
Interaction with weather conditions:

Running the rain:
GetSeasonManager():StartPrecip()
Stop the rain:
GetSeasonManager():StopPrecip()
Lightning hit a player:
GetSeasonManager():DoLightningStrike(Vector3(GetPlayer().Transform:GetWorldPosition()))
Eruption (SW):
GetVolcanoManager():StartEruption(smokeduration,ashduration,firerainduration,firerockspersecond)
smokeduration - duration of smoke;
ashduration - ash flying duration;
firerainduration - duration of the meteor shower;
firerockspersecond - number of meteorites per second.
You can also open different characters. To change the character, you need to enter the command
GetPlayer().prefab = “character”
save and restart the game.

Unlock all characters:
GetPlayer().profile:UnlockEverything()
To remove open characters, you need to delete the profile file in the game folder on the C drive.

Additional DST Commands.

Below are the commands for the Together add-on.

Super god mode (immortality):
c_supergodmode()
Speed:
c_speedmult(factor)
Motion prediction ban (The game starts to jerk, but the player is there, where shown on screen):
ThePlayer:EnableMovementPrediction(false)
Display message :
c_announce(Text)
Display messages periodically:
c_announce(Text, Interval)
Stop periodic display of messages:
c_announce()
Save the game:
c_save()
Roll back save (If the argument is empty, it will fall back to 1 preservation):
c_rollback(Number of saves)
To finish work (so that the game is not saved, set false):
c_shutdown(true)
Reboot the server so that the game is not saved, set false)

Regenerate the world :
c_reset(true)
Regenerate the world (the old world is removed):
c_regenerateworld()
List of all players:
c_listallplayers()
List of active players:
c_listplayers()
Player movement (moves the character to the cursor location):
c_move(AllPlayers[number])
Kill player:
AllPlayers[number]:PushEvent(‘death’)
Resurrect player :
AllPlayers[number]:PushEvent(‘respawnfromghost’)
Move to player :
c_goto(AllPlayers[number])
:
Remove character and go to selection screen:
c_despawn(AllPlayers[number])
Opening the card (only on the server):
GetWorld().​minimap.MiniMap:ShowArea(0,0,0,10000)​
Exclude a user from the list of targets for attack :
c_makeinvisible()
Skip a unit of time (x - number of units):
LongUpdate(X)

Related Posts:

Be the first to comment

Leave a Reply

Your email address will not be published.


*