ap95 Posted March 8, 2022 Share Posted March 8, 2022 I'd like to improve the list of console commands on the Wiki. Here's what I've got so far, and what I'd like to add, if they exist. Also open for other ones to be added. (Or, you could just add them yourself, Y'know ) Set Wolfgang's Mightiness c_setmightiness(###) Set Wigfrid's Inspiration c_setinspiration(###) A Faster acting command to set Wanda's Age c_sethealth() only updates at the top of every "year" Trigger a random Woodie Transformation Pretty sure I saw this on the Rhymes with Play Stream ThePlayer.components.wereeater:ForceTransformToWere() Manage with c_setwereness(###) Clear Warly's "Stomach Memory" Reset the Ruins TheWorld:PushEvent("resetruins") Override a Boss Cooldown Link to comment Share on other sites More sharing options...
Stonetribe Posted March 8, 2022 Share Posted March 8, 2022 I've always wondered if there was a console command to fill out all or parts of the plant registry. I've already completed it myself, but I have a younger cousin who likes farming in games but I'd imagine that she might have trouble with the whole researching mechanic and would have a lot more fun if she could bypass it. Link to comment Share on other sites More sharing options...
Cheggf Posted March 8, 2022 Share Posted March 8, 2022 1 hour ago, ap95 said: Reset the Ruins There are two commands to do this. One of them is something along the lines of TheWorld:pushevent('resetruins') or TheWorld:getevent('c_resetruins') so you could try every combination of arrangements of those words and synonyms until you find the one that works or wait for someone like QuartzBeam or Hornete to come tell you what it actually is. Link to comment Share on other sites More sharing options...
mr. brj Posted March 8, 2022 Share Posted March 8, 2022 I have always wanted to know if there is a command that prints out the prefab name of an entity under the mouse cursor. Link to comment Share on other sites More sharing options...
Daniel86268 Posted March 8, 2022 Share Posted March 8, 2022 2 hours ago, mr. brj said: I have always wanted to know if there is a command that prints out the prefab name of an entity under the mouse cursor. ThePlayer.components.talker:Say(c_select().prefab) This will make your character say the prefab name. This is a client side command, so you have to have the "Local:" in front of your command line, and this should work on any server as well. Link to comment Share on other sites More sharing options...
Hornete Posted March 8, 2022 Share Posted March 8, 2022 In a sense theres an infinite amount of console commands, since really anything that can be done in code can be done in the console. If you had the dedication and time, you could turn a rabbit in the game world into the Fuelweaver with enough console commands. If you understand the games API's theres an infinitely amount of commands you could make up yourself. Pushing aside the technicalities though, I assume you want the "c_" console commands, of which there are a bunch of functions Klei has defined in the consolecommands.lua file and you can find em all in there. There's also the "d_" functions in debugcommands.lua. That file isnt loaded usually so you'll want to execute "require("debugcommands")" to get access to all the functions inside. 2 hours ago, mr. brj said: I have always wanted to know if there is a command that prints out the prefab name of an entity under the mouse cursor. print(c_select().prefab) The c_select() function returns the entity under the mouse, and prints out the prefab variable attached to it in the console log. Link to comment Share on other sites More sharing options...
ap95 Posted March 8, 2022 Author Share Posted March 8, 2022 8 hours ago, Cheggf said: TheWorld:pushevent('resetruins') So close! It's either d_resetruins or TheWorld:PushEvent("resetruins"). Found it in debugcommands.lua, but the second dosen't require the debug stuff to be active Link to comment Share on other sites More sharing options...
Well-met Posted March 8, 2022 Share Posted March 8, 2022 I'm a fan of "LongUpdate" Link to comment Share on other sites More sharing options...
Pinkamena11FazP Posted March 8, 2022 Share Posted March 8, 2022 c_select():AddComponent("edible") makes things edible minus fruitcake, ThePlayer.prefab=("wathgrithr") makes you look like wigfrid after you use a wardrobe Link to comment Share on other sites More sharing options...
SomebodyRandom Posted March 8, 2022 Share Posted March 8, 2022 23 minutes ago, Pinkamena11FazP said: ThePlayer.prefab=("wathgrithr") makes you look like wigfrid after you use a wardrobe This one was patched. I miss it though Link to comment Share on other sites More sharing options...
Falkenpelz Posted March 8, 2022 Share Posted March 8, 2022 The command for summoning a meteor at cursor position is c_spawn('shadowmeteor'). Great way to troll other players by painting a smiley face on the floor with meteor craters. Link to comment Share on other sites More sharing options...
maradyne Posted March 8, 2022 Share Posted March 8, 2022 13 hours ago, ap95 said: Trigger a random Woodie Transformation Pretty sure I saw this on the Rhymes with Play Stream ConsoleWorldEntityUnderMouse().components.wereeater:ForceTransformToWere() Will transform the Woodie you're hovering over. Most reliable method I'm aware of. 4 hours ago, Hornete said: There's also the "d_" functions in debugcommands.lua. That file isnt loaded usually so you'll want to execute "require("debugcommands")" to get access to all the functions inside. Quick note for anyone wanting to use this: certain debug commands on servers with caves will have mixed results, from doing absolutely nothing to crashing the server/client. Same applies to debug keys. It's a wonderful set of tools for testing things on caveless worlds, though. Especially for modding. I actually have a tiny mod I use for that; the lua files with ~'s in front of them are copies of the vanilla files that are being enabled, for quick reference of the keys/commands that you can use. ~DEBUGMODE.zip Link to comment Share on other sites More sharing options...
ap95 Posted March 8, 2022 Author Share Posted March 8, 2022 33 minutes ago, maradyne said: ConsoleWorldEntityUnderMouse().components.wereeater:ForceTransformToWere() Will transform the Woodie you're hovering over. Most reliable method I'm aware of. Did some Experimenting, and ThePlayer.components.wereeater:ForceTransformToWere() also works. And then c_setwereness(###) to manage it. Link to comment Share on other sites More sharing options...
Hornete Posted March 8, 2022 Share Posted March 8, 2022 1 hour ago, maradyne said: ConsoleWorldEntityUnderMouse() I would suggest c_select() instead of ConsoleWorldEntityUnderMouse for selecting entities under the mouse, easier to write and memorize. Only evil people like @penguin0616 use ConsoleWorldEntityUnderMouse() Link to comment Share on other sites More sharing options...
penguin0616 Posted March 8, 2022 Share Posted March 8, 2022 3 minutes ago, Hornete said: Only evil people like @penguin0616 use ConsoleWorldEntityUnderMouse() Link to comment Share on other sites More sharing options...
DarkPulse91 Posted March 8, 2022 Share Posted March 8, 2022 does anyone know the command to spawn a ready-made boat? I remember seeing it in a Rhymes with play stream, but i wasnt able to catch what command it was Link to comment Share on other sites More sharing options...
SomebodyRandom Posted March 9, 2022 Share Posted March 9, 2022 25 minutes ago, DarkPulse91 said: does anyone know the command to spawn a ready-made boat? I remember seeing it in a Rhymes with play stream, but i wasnt able to catch what command it was c_makeboat() Link to comment Share on other sites More sharing options...
CarlZalph Posted March 9, 2022 Share Posted March 9, 2022 6 hours ago, Hornete said: I would suggest c_select() instead of ConsoleWorldEntityUnderMouse for selecting entities under the mouse, easier to write and memorize. Only evil people like @penguin0616 use ConsoleWorldEntityUnderMouse() ThePlayer.components.builder:GiveAllRecipes() Link to comment Share on other sites More sharing options...
Friendly Grass Posted March 9, 2022 Share Posted March 9, 2022 Spoiler ReplacePrefab(c_find "rabbit", "stalker_atrium") Link to comment Share on other sites More sharing options...
lakhnish Posted March 11, 2022 Share Posted March 11, 2022 c_countprefabs() Most people know this but what they may not know is that if this command is run locally, it'll count how many items there are in your loaded area. c_speedup(x) is another favorite of mine since it speeds up the game while Long Updating just seems to skip time. It's good for testing stuff that requires you to stay in a place for a long period of time (such as regrowth). And c_announce(TheWorld.meta.seed) gives you the seed of a world. This works locally too if you find a pub world whose seed you like. Link to comment Share on other sites More sharing options...
Cheggf Posted March 12, 2022 Share Posted March 12, 2022 6 hours ago, lakhnish said: And c_announce(TheWorld.meta.seed) gives you the seed of a world. This works locally too if you find a pub world whose seed you like. Wish I'd known this earlier, super helpful. Thanks. Link to comment Share on other sites More sharing options...
hhh2 Posted March 12, 2022 Share Posted March 12, 2022 On 3/9/2022 at 2:51 AM, CarlZalph said: ThePlayer.components.builder:GiveAllRecipes() GetPlayer().components.builder:GiveAllRecipes() Link to comment Share on other sites More sharing options...
mr. brj Posted May 17, 2022 Share Posted May 17, 2022 Is there a command to make the Loot Stash spawn on one of its spawners (something like TheWorld:PushEvent)? I accidentally created a really nice world way back during Winter's Feast, decided to backup the save folders, and now when I remove the "festive" Loot Stash with commands, the regular one that is supposed to spawn during Winter doesn't spawn at all. Link to comment Share on other sites More sharing options...
Q42 Posted May 17, 2022 Share Posted May 17, 2022 c_addelectricity() to add circuit charge to WX-78 Link to comment Share on other sites More sharing options...
zaptrap Posted May 18, 2022 Share Posted May 18, 2022 Clear Warly's "Stomach Memory" for i, v in pairs(ThePlayer.components.foodmemory.foods) do v.task:Cancel() ThePlayer.components.foodmemory.foods = nil end Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.