banner



How To Send Don T Starve Together To A Friend

Exclusive to: Don't Starve Together icon.pngDon't Starve Together.


The Command Console is enabled by default. If for whatever reason information technology is not, you first demand to do some tweaking in your settings.ini of your salve. This tin exist found in the "DoNotStarveTogether" folder, located in the following paths :

          Windows, Mac:          <Documents>\Klei\DoNotStarveTogether\client.ini          Linux:          ~/.klei/DoNotStarve/client.ini        

Locate the settings.ini and open information technology with Notepad or other text editors. Locate the [MISC] department, and make sure yous are having console_enabled = true nether it. If it appears to be false, change and save it.

The default cardinal to open the panel in-game on English keyboards is "~". This tin be changed at any time in the controls card.

Notes:

  • You take to re-enter nigh every command later on loading a world.
  • Lua supports variable numbers of arguments to functions, and then if, for case, you merely want to spawn one of a prefab, yous can get out out the "amount": "c_spawn('beefalo')".
  • If you lot are non 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 way. A few commands (such as revealing the map) are still washed locally.

Many Don't Starve Commands are still bachelor in DST, so you tin also read it.

Elementary commands

  • Spawn prefab
c_spawn("prefab",amount)        

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

  • Requite Item
c_give("prefab",amount)        

Spawns amount of selected "prefab" in your inventory. Just works with Backpacks and Items that can be stored in the inventory.

  • Get Adventuring
c_goadventuring()        

Gives a set of starting items to the player.

  • Scenario
c_doscenario(scenario)        

Employ a scenario script to the selection and run it.

  • Gear up Your Health
c_sethea​lth(per centum)        

Sets your health to a selected percentage. Note: Apply partial numbers 0.90 = ninety%.

  • Fix Your Sanity
c_setsanit​y(percent)        

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

  • Prepare Your Hunger
c_sethunger(pe​rcent)        

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

  • Gear up Your Wet
c_setmoisture(pe​rcent)        

Sets your wetness to a selected percentage. Notation: Apply fractional numbers 0.90 = 90%.

  • Temperature
c_settemperature(degrees)        

Sets your temperature to a selected per centum. Note: Employ fractional numbers 0.90 = 90%.

  • God Style
c_godmode()        

It won't drain Sanity, Hunger or Health when attacked anymore. You cannot change your stats with commands while in godmode. If yous are expressionless, revives you(Reviving via c_godmode() doesn't put you in godmode one time revived). To deactivate God Mode utilize the control once again.

  • Super God Mode
c_supergodmode()        

Aforementioned equally God Mode merely likewise sets all your stats to full, even when turning information technology off. Similar to c_godmode(), information technology revives yous as well(Reviving via c_supergodmode() doesn't put you in godmode once revived).To conciliate God Mode use the command over again.

  • Maintain Your Health
c_maintainhealth(ThePlayer)        

Similar to supergodmode, but constantly regenerates your health. To cancel, enter c_cancelmaintaintasks(ThePlayer).

  • Maintain Your Sanity
c_maintainsanity(ThePlayer)        

Like to supergodmode, but constantly regenerates your sanity. To cancel, enter c_cancelmaintaintasks(ThePlayer).

  • Maintain Your Hunger
c_maintainhunger(ThePlayer)        

Similar to supergodmode, but constantly regenerates your hunger. To cancel, enter c_cancelmaintaintasks(ThePlayer).

  • Maintain Your Temperature
c_maintaintemperature(ThePlayer)        

Like to supergodmode, just constantly regenerates your temperature. To cancel, enter c_cancelmaintaintasks(ThePlayer).

  • Maintain Your Moisture
c_maintainmoisture(ThePlayer)        

Similar to supergodmode, only constantly regenerates your moisture. To cancel, enter c_cancelmaintaintasks(ThePlayer).

  • Maintain All
c_maintainall(ThePlayer)        

Similar to supergodmode, but constantly regenerates all stats. To abolish, enter c_cancelmaintaintasks(ThePlayer).

  • Mob Invisibility
c_makeinvisible()        

Prevents mobs from targeting the player in gainsay. Does non work in all circumstances.

  • Fix Your Running Speed
c_speedmult(multiplier)        

Standard bonus runspeed is 1. 2 makes y'all twice every bit fast and with 12 or more you can easily walk through walls and "over" water.

In that location'due south many other commands, but most are difficult to utilise and non very useful.

Thespian commands

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

  • Action Prediction
ThePlayer:EnableMovementPrediction(enable)        

Enabled past default, setting it to "fake" will exchange rubberbanding for choppiness, but is oft helpful for combat. This only does anything if executed past a client, hosts do non have prediction.

  • Creative Style
c_freecrafting()        
GetPlayer().components.builder:GiveAllRecipes()        

You lot tin craft everything. Enter control again to disable creative manner.

  • Maximum Health
ThePlayer.components.wellness:SetMaxHealth(value)        

Change the Maximum Health of your grapheme

  • Maximum Sanity
ThePlayer.components.sanity:SetMax(value)        

Change the Maximum Sanity of your character

  • Maximum Hunger
ThePlayer.components.hunger:SetMax(value)        

Change the Maximum Hunger of your character

  • Interruption Hunger
ThePlayer.components.hunger:Pause(true)        

Your character won't starve anymore.

  • Change the Damage Multiplier
ThePlayer.components.combat.damagemultiplier=(value)        

Changes the Damage Multiplier of your character.

  • Werebeaver Transformations
c_setbeaverness(pct)        

Turn Woodie into the Werebeaver. Set to 1 to transform to a Werebeaver. Ready to 0 if you desire to transform back to Woodie.

Other Histrion Commands

Note: Many of the post-obit commands that are normally applied to your player, godmode or health irresolute commands, can be applied to other players past using c_select(AllPlayers[number]) start. So y'all will have the demand for a playerlist to become the player numbers:

  • Listing all players with username and thespian number.
c_listallplayers()        

This seems to not work so well anymore. If you don't get a full list try this control, it will print the actor list to the chat.

for i, v in ipairs(AllPlayers) practise TheNet:SystemMessage(tostring(i) .. ": " .. v.proper name, false) end        
  • 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 exist wrong. You lot can be more than precise by using c_listallplayers() first to see the username and grapheme for each thespian number.. Most of ThePlayer commands tin be used with AllPlayers[number] instead of ThePlayer.

  • Apply a command to all players
for k,five in pairs(AllPlayers) practice command end        

Supervene upon control with some other command, using "5" instead of AllPlayers[number]. For example, "for one thousand,5 in pairs(AllPlayers) do c_move(v) end" will move all players to the mouse position.

  • Teleport another player to you
c_move(AllPlayers[number])        

Moves the thespian to the cursor position.

  • Kill a thespian
AllPlayers[number]:PushEvent('death')        

Kills the player.

  • Resurrect a player
AllPlayers[number]:PushEvent('respawnfromghost')        

Resurrects the histrion.

  • Give artistic mode to a actor
AllPlayers[number].components.builder:GiveAllRecipes()        

Give the creative mode to the player.

  • Teleport to a player
c_goto(AllPlayers[number])        

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

  • Drop a player's inventory items
AllPlayers[number].components.inventory:DropEverything()        

Drop everything from player's inventory corresponding to the player number from c_listallplayers()

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

This volition delete their items, so it is recommended that you impale them first to drop their items, or let them DropEverything() as shown above.

Every bit of June 25th, 2016, a new set of commands are introduced to call players. You tin telephone call a histrion by their player proper noun instead of actor number UserToPlayer('PlayerName'). For example, to kill a player chosen 'PlayerA' with player number five, instead of doing:

AllPlayers[5]:PushEvent('death')        

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

y'all tin merely exercise this:

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

World commands

  • Teleport to Prefab
c_gonext("prefab")        

After pressing enter, it teleports you to the first numerical instance of the named prefab. 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 send the player from entity to entity in the order they were generated in the world.

  • Delete Item Under Mouse
ConsoleWorldEntityUnderMouse():Remove() c_select():Remove()        

After pressing enter, it deletes the particular under your mouse. Employ the 2d command on dedicated servers, the commencement command will not work.

  • Delete All
for k,v in pairs(Ents) exercise if v.prefab == "prefab" then five:Remove() end terminate        

After pressing enter, it deletes every instance of whatsoever detail prefab is entered. Useful for long-running servers with lots of clutter.

  • Reveal Map - Self
minimap = TheSim:FindFirstEntityWithTag("mini­map") TheWorld.minimap.MiniMap:ShowArea (0,0,0,10000)        
for x=-1600,1600,35 exercise 	for y=-1600,1600,35 do 		ThePlayer.player_classified.MapExplorer:RevealArea(x,0,y) 	end stop        

This is a local-just command and will non work if you lot are a customer.

  • Reveal Map - All Players
for k,five in pairs(AllPlayers) do for 10=-1600,1600,35 do for y=-1600,1600,35 do v.player_classified.MapExplorer:RevealArea(ten,0,y) terminate end end        

This is a remote-only command and volition non work if you are a client.

  • Skip fourth dimension units and update
LongUpdate(X)        

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

Notation: There are 30 fourth dimension units per segment. To skip a whole day ane tin can either apply LongUpdate(480) or utilise multiplicative values such as LongUpdate(Ten*sixteen*30) or LongUpdate(X*TUNING.TOTAL_DAY_TIME), with X=days to skip.

  • Speed up simulation
c_speedup()        

Speed up the simulation of world. some events are determined past time past in game, and hence can be triggered to happen earlier through this speed up. Skipping would not bring forrard those events.

TheSim:SetTimeScale(X)        

Set the time scale of the simulation to a specific value Ten. The normal time scale corresponds to the value 1. The value 0 pauses the game. Note that panel can non be used while game is paused preventing to remove pause.

  • Skip time
TheWorld.net.components.clock:OnUpdate(xvi*xxx*10)        

Skips ten days. Modify x to skip more days or parts of days (due east.one thousand. 16*30*4.5 to skip 4.5 days) Warning: Likewise big values may freeze the game. (Depending on computer speed) - Note that this is hither so yous can manually alter the rate of time skip. Use c_skip(x) to skip x corporeality

  • Skip Day
c_skip(num)        
  • Skip to the Next Day Cycle
​TheWorld:PushEvent("ms_nextcycle")        
  • Skip phase
TheWorld:PushEvent("ms_nextphase")        

Skips the current Day Cycle phase.

  • Ready phase
​TheWorld:PushEvent("ms_setphase",PHASE Name)        

Changes to specific Day Bike stage. Phase names tin be "day", "dusk" or "night".

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

Sets amount of segments. Errors if ten + y + z adds upwardly to over 16. Note that this will become reset the adjacent twenty-four hour period.
Example:

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

Very long twenty-four hours, very brusque sunset and nighttime (one segment for sunset and ane for dark)

  • Skip to the Next Nightmare Cycle
​TheWorld:PushEvent("ms_nextnightmarecycle")        
  • Skip nightmare phase
TheWorld:PushEvent("ms_nextnightmarephase")        

Skips the current Nightmare Bike phase.

  • Prepare nightmare phase
​TheWorld:PushEvent("ms_setnightmarephase",Stage Proper noun)        

Changes to specific Nightmare Cycle stage. Phase names tin can exist "calm", "warn", "wild" or "dawn".

  • Ready nightmare segments
TheWorld:PushEvent("ms_setnightmaresegs", {calm=A,warn=B,wild=C,dawn=D})        

Sets corporeality of nightmare segments. A, B, C and D can be whatever number. This will not get reset at the next bicycle.
Example:

TheWorld:PushEvent("ms_setnightmaresegs", {calm=20,warn=1,wild=ane,dawn=1})        

Very long calm phase, very short warn, wild and dawn phase (The gane default setting is {at-home=12,warn=3,wild=5,dawn=2})

  • Lock nightmare stage
​TheWorld:PushEvent("ms_locknightmarephase",Stage Name)        

Lock at specific Nightmare Cycle phase. Phase names can be "at-home", "warn", "wild" or "dawn".

  • Stop locking nightmare phase
​TheWorld:PushEvent("ms_locknightmarephase")        
  • Prepare season segments
​TheWorld:PushEvent("ms_setseasonclocksegs", {summer={mean solar day=sx,dusk=sy,night=sz}, wintertime={24-hour interval=wx,sunset=wy,night=wz}})        

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

TheWorld:PushEvent("ms_setseasonclocksegs", {summertime={day=14,dusk=1,dark=1}, winter={24-hour interval=13,dusk=i,night=2}})        

Very long day, very short dusk and night (i segment for dusk and one for night), with a slightly longer night in wintertime.

  • Fix season lengths
TheWorld:PushEvent("ms_setseasonlength", {season="summertime", length=15})        

Sets the lengths of the seasons.

  • Starting time Summer
TheWorld:PushEvent("ms_setseason", "summer")        

Start summer

  • Showtime Winter
TheWorld:PushEvent("ms_setseason", "winter")        

Start wintertime

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

  • Starting time Rain
TheWorld:PushEvent("ms_forceprecipitation")        

Offset rain.

  • Finish Rain
TheWorld:PushEvent("ms_forceprecipitation", false)        

Stop pelting. This also includes Frog Rain.

  • Practise Lightning Strike
TheWorld:PushEvent("ms_sendlightningstrike", ConsoleWorldPosition())        

Lightning strike on mouse cursor. Volition hitting lightning rod instead if there is 1 near

  • Falling star Strike
c_spawn("shadowmeteor", 1)        

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

(Warning it may crash the game)

  • Actuate all Events
for grand, v in pairs(SPECIAL_EVENTS) do if 5 ~= SPECIAL_EVENTS.NONE then local tech = TECH[k] if tech ~= nil then tech.SCIENCE = 0 finish end terminate office IsSpecialEventActive(upshot) return true end        

Activates all Events on the aforementioned time. Doesnt work if in earth gen the events section is set to Automobile.

  • Measure Distance
print(math.sqrt(ThePlayer:GetDistanceSqToInst(ConsoleWorldEntityUnderMouse())))        

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

Network/Server Commands

  • Kick/Ban a player
TheNet:Boot(userid) TheNet:Ban(userid)        

Note that this can exist accomplished more easily through the scoreboard. The userid tin can be obtained from the AllPlayers table. Once you've found the number of the player you want to kick (as shown higher up in the Other Role player Commands section), you lot can use AllPlayers[#].userid.

Case:

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 player
TheNet:BanForTime(userid,time_in_seconds)        

Player tin be banned for a short period of fourth dimension. userid stands for the KU id of the player to be banned. One time it is obtained it tin exist put in this format:

TheNet:BanForTime("KU_aabbccdd", 120).

This will ban the histrion with specified KU id for 120 seconds. 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. Past default, the port is 10999. If at that place is no password, you can leave that part out: c_connect("x.0.0.viii", 10999)

  • Reload the world
c_reset()        

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

  • Regenerate the globe
c_regenerateworld()        

Regenerates specified items in a world.

  • Regenerate a earth shard
c_regenerateshard()        

Regenerates specified items in a shard.

  • Save the server
c_save()        

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

  • Shut downwardly the server
c_shutdown( true / false)        

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

  • Whorl back the server
c_rollback(count)        

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

  • Enable/Disable new histrion joining
TheNet:SetAllowIncomingConnections( true / false )        

Setting it to true is the default behavior (people can bring together). Setting information technology to false prevents anyone from joining.

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

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

  • Driblet a actor's inventory items
AllPlayers[number].components.inventory:DropEverything()        
  • Move another player
c_move(AllPlayers[number])        
  • Despawn a player's grapheme (returns to selection screen for repicking)
c_despawn(AllPlayers[number])        
  • End a vote
c_stopvote()        

Miscellaneous Commands

  • Change something'southward length, width, and height
                        c_select            ().            Transform            :            SetScale            (            x            ,            y            ,            z            )          

(For Mobs and Players. Mouse must be on Entity. 10 is Width, Y is acme.)

These commands will but bear on your vision. Other players will not run into the changes.

This can be done on mobs, items, naturally generated things, pretty much anything.

If you desire to simply brand something bigger, you must make ten and y the aforementioned number or they will look stretched.

  • Articulate the morgue
ErasePersistentString("morgue")        

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

  • Count the number of something in the entire world, and return the value to your graphic symbol
ThePlayer.components.talker:Say(tostring(c_countprefabs("prefab")))        

Ship the command using remote. This returns the total number of something in the unabridged earth, and returns the value as though your character is talking.

  • Count the number of something in the world
c_countprefabs("prefab")        

When sending the command using local, it returns the number of prefabs in your active area only. When sending the command using remote, it returns the number of prefabs in the world; the result is printed on the server console for defended server.

  • Spawn Wormhole
  1. Sadly no 1 line command, follow steps instead.
  2. Spawn wormhole i 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
office spawn_beef(tendency) local beefiness = c_spawn("beefalo"); beef.components.hunger:DoDelta(400); beef.components.domesticatable:DeltaTendency(trend, 1); beefiness:SetTendency(); beef.components.domesticatable.domestication = i; beef.components.domesticatable:BecomeDomesticated(); finish        

To spawn a Domesticated Beefalo after inputting the above command enter: spawn_beef("DEFAULT")

To spawn a Beefalo with other tendencies, replace "DEFAULT" with any of the following: "Passenger", "ORNERY", "Butterball"

  • Teleport Items to the actor

This command volition teleport the nearest flower to actor number i

c_find("bloom").Transform:SetPosition(AllPlayers[1]:GetPosition():Get())        
  • Modify role player size
ThePlayer.Transform:SetScale(number,number,number)        
  • Change size of prefab under mouse
c_select().Transform:SetScale(number,number,number)        
  • Change player color/transparency
ThePlayer.AnimState:SetMultColour(number,number,number,number)        
  • Alter color/transparency of prefab nether mouse
c_select().AnimState:SetMultColour(number,number,number,number)        
  • Makes prefab nether mouse pick-up-able

This command does usually crash the game if mods are enabled

c_select():AddComponent("inventoryitem")        

Picking up a actor does cause the game to crash for the player being picked up

  • Change a graphic symbol'due south body, face, hand and other
for g,5 in pairs(Ents) practice if five.AnimState and 5.AnimState:GetBuild() == "character'sname" then 5.AnimState:OverrideSymbol("bodypart", "enothercharacter'sname","bodypart") end end        

Where "grapheme'sname", write the name of the character whose trunk part you lot want to modify. For example: "webber", "wilson", "wx78" (if you need Maxwell, and then apply "waxwell", and for Wigfrid "wathgrithr")

Where "bodypart", write the part of the trunk part that you desire to change. You demand to enter two identical body parts into ane control. The body part that you can change: "arm_lower", "arm_upper", "arm_upper_skin", "cheeks", "face", "foot", "hair", "hair_hat", "hairpigtails", "hairfront", "hand", "headbase", "headbase_hat", "leg", "skirt", "tail", "torso".

Where "enothercharacter'sname", write the name of the character whose body part y'all want to copy. For instance: "webber", "wilson", "wx78" (if you demand Maxwell, and so utilise "waxwell", and for Wigfrid "wathgrithr")

Source: https://dontstarve.fandom.com/wiki/Console/Don%27t_Starve_Together_Commands

0 Response to "How To Send Don T Starve Together To A Friend"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel