Difference between revisions of "Modding:Console commands"

From Stardew Valley Wiki
Jump to navigation Jump to search
(sort + small additions)
(→‎Commands: the rain thing is more accurate like this if you know how weather works in this game)
Line 27: Line 27:
 
pole - Gives a Bamboo Pole to the player.
 
pole - Gives a Bamboo Pole to the player.
 
weapon <weapon ID> - Gives the weapon corresponding to the <ID> to the player. (Example: weapon 12 spawns a Wooden Blade.)
 
weapon <weapon ID> - Gives the weapon corresponding to the <ID> to the player. (Example: weapon 12 spawns a Wooden Blade.)
darkTalisman - Adds the Dark Talisman to the player's wallet.
+
darkTalisman - Adds the Dark Talisman to the player's wallet and makes Witch's Hut accessible. Removes the Magic Ink, if previously held.
 
pan - adds the [[panning]] pan to player inventory
 
pan - adds the [[panning]] pan to player inventory
 
in, itemnamed <S:ITEM> <I:AMT> - add 1 (or AMT) items (not tools) to player inventory. <ITEM> format: punctuation included, no spaces, e.g. "miner'streat"
 
in, itemnamed <S:ITEM> <I:AMT> - add 1 (or AMT) items (not tools) to player inventory. <ITEM> format: punctuation included, no spaces, e.g. "miner'streat"
Line 39: Line 39:
 
refuel - Sets [[Lantern]] fuel to maximum (unimplemented feature)
 
refuel - Sets [[Lantern]] fuel to maximum (unimplemented feature)
 
lantern - Gives a Lantern to the player. However, when trying to use it, the game freezes.
 
lantern - Gives a Lantern to the player. However, when trying to use it, the game freezes.
fbp, fill, fillbp, fillbackpack - fills the player inventory with random items until full
+
fbp, fill, fillbp, fillbackpack - fills the player inventory with random items until full.
 +
fb, fillbin - Puts five items (24, 82, 136, 16, 388) into the shipping bin.
 
</pre>
 
</pre>
  
Line 53: Line 54:
 
stoprafting - `player.isRafting = false;` (presumably an unimplemented feature)
 
stoprafting - `player.isRafting = false;` (presumably an unimplemented feature)
 
sf, setFrame <I> - Sets and stops the player actor's current animation at the given frame.
 
sf, setFrame <I> - Sets and stops the player actor's current animation at the given frame.
 +
divorce - Makes the player divorce from their current spouse that night.
 +
minigame makeEx <S:NPC> - sets <NPC>'s relationship to Farmer as "divorced".
 
</pre>
 
</pre>
  
Line 64: Line 67:
 
ccloadcutscene -  
 
ccloadcutscene -  
 
ee - Ends and restarts current event (heart events only?). Outside of events, warps player actor to (0,0) on current map.
 
ee - Ends and restarts current event (heart events only?). Outside of events, warps player actor to (0,0) on current map.
 +
minigame blastoff - presumably starts a specific heart event of [[Maru]].
 +
minigame cowboy - presumably starts a specific heart event of [[Abigail]].
 +
end - Starts the Stardew Hero Celebration event.
 
</pre>
 
</pre>
  
Line 88: Line 94:
 
<pre>
 
<pre>
 
heal - Sets player health to maximum.
 
heal - Sets player health to maximum.
speed <I> - sets player actor speed temporarily to given integer.
+
speed <I> - Increases player actor speed by the given amount. (1 is equal to the speed increase from coffee.)
 
cooking - Teaches the player all cooking recipes.
 
cooking - Teaches the player all cooking recipes.
 
energize - Sets player energy to maximum.
 
energize - Sets player energy to maximum.
Line 95: Line 101:
 
specials - Sets all special access conditions to true (Sewers, Skull Cave, Club, Witch's Hut, Dwarf), and gives the player the [[Special Charm]].
 
specials - Sets all special access conditions to true (Sewers, Skull Cave, Club, Witch's Hut, Dwarf), and gives the player the [[Special Charm]].
 
festivalScore <I:score>- adds <score> to Farmer's grange display score at Stardew Valley Fair
 
festivalScore <I:score>- adds <score> to Farmer's grange display score at Stardew Valley Fair
 +
toggleCatPerson - Toggles the selected pet species.
 
</pre>
 
</pre>
  
Line 108: Line 115:
 
spreadDirt - On the farm, till all tillable dirt that is currently untilled and unoccupied by actors.
 
spreadDirt - On the farm, till all tillable dirt that is currently untilled and unoccupied by actors.
 
removeDirt - On the farm, until all tillable dirt. Will destroy all crops!
 
removeDirt - On the farm, until all tillable dirt. Will destroy all crops!
 +
minigame befriendAnimals - Sets your friendship with all of your (present) animals to 1000. Must be used inside a coop or a barn.
 +
fixAnimals - Presumably, moves all livestock to their home buildings.
 
</pre>
 
</pre>
  
;Map and terrain features, time and weather
+
;Map, locations, terrain features, time and weather
 
<pre>
 
<pre>
 +
minelevel <LVL> - Warps Farmer to given [[Mines]] level.
 +
warp <S:MAP> <I:X> <I:Y> - warps Farmer to <MAP> at (<X>, <Y>).
 
removeLights - Disables light effects on the current map.
 
removeLights - Disables light effects on the current map.
 
clearLightGlows - Removes light glow textures on current map.
 
clearLightGlows - Removes light glow textures on current map.
Line 117: Line 128:
 
al, ambientLight -  
 
al, ambientLight -  
 
time <TIME> - set game time of day, <TIME> format is military time (24 hours, no colon).
 
time <TIME> - set game time of day, <TIME> format is military time (24 hours, no colon).
rain - Changes the weather to rain.
+
rain - Toggles whether current [[weather]] is rain.
 
 
 
</pre>
 
</pre>
  
Line 171: Line 181:
 
wc, warpCharacter -  
 
wc, warpCharacter -  
 
fruitTrees -  
 
fruitTrees -  
toggleCatPerson -
 
fb, fillbin -
 
 
animalInfo -  
 
animalInfo -  
end -
 
 
ff, furniture -  
 
ff, furniture -  
pixelZoom <LVL> - sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size).
+
pixelZoom <LVL> - sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size). Movement does not scale. Changes in zoom level may put the player actor outside the boundaries of the map.
 
achieve -  
 
achieve -  
 
sdkinfo, steaminfo -  
 
sdkinfo, steaminfo -  
Line 183: Line 190:
 
levelup -  
 
levelup -  
 
kms, killMonsterStat -  
 
kms, killMonsterStat -  
fixAnimals -
 
 
backpack -  
 
backpack -  
 
child, kid -  
 
child, kid -  
 
allbundles -  
 
allbundles -  
divorce - Makes the player divorce from their current spouse.
 
 
movebuilding -  
 
movebuilding -  
 
mft, mailForTomorrow -  
 
mft, mailForTomorrow -  
minelevel <LVL> - Warps Farmer to given [[Mines]] level.
+
ccload -  
warp -
 
cclod -  
 
 
minigame -  
 
minigame -  
 
addOtherFarmer -  
 
addOtherFarmer -  

Revision as of 21:05, 3 October 2017

Index

Stardew Valley's developers added several hidden debug commands to test the game. This page documents them.

Accessing debug commands

These are for advanced users only. These commands may crash or break your save if used incorrectly.

You can run debug commands in the SMAPI console (the terminal window that opens alongside the game) through the debug command, assuming you have the bundled TrainerMod installed:

debug where Robin
> Robin is at Farm, 21,4

Commands

Axe.png
Article Stub

This article is a stub and is missing information. You can help Stardew Valley Wiki by expanding it!

Many commands that ask for an NPC (such as faceDirection) can take 'farmer' as well.

Items, tools, loot, debris, inventory
removeObjects - Clears all objects from the current location.
mainMenu, mainmenu, removeDebris - Removes all debris (such as dropped items).
pick, pickax, pickaxe - Adds a new basic pickaxe to your inventory.
museumloot - Marks artifacts as found and adds minerals to inventory. Stops when the inventory is full.
shears - Gives the player shears
TV - Adds a TV to your inventory.
skullkey - Adds the Skull Key to the player's wallet.
pole - Gives a Bamboo Pole to the player.
weapon <weapon ID> - Gives the weapon corresponding to the <ID> to the player. (Example: weapon 12 spawns a Wooden Blade.)
darkTalisman - Adds the Dark Talisman to the player's wallet and makes Witch's Hut accessible. Removes the Magic Ink, if previously held.
pan - adds the [[panning]] pan to player inventory
in, itemnamed <S:ITEM> <I:AMT> - add 1 (or AMT) items (not tools) to player inventory. <ITEM> format: punctuation included, no spaces, e.g. "miner'streat"
slingshot - Gives a Slingshot to the player.
wand - Adds [[Return Scepter]] to player inventory.
can, wateringcan - adds the basic watering can to player inventory.
gold - Adds a large sum of money to the player.
hoe - Adds the basic hoe to player inventory.
ax - Adds the basic axe to player inventory.
mp - Add the Milk Pail to player inventory.
refuel - Sets [[Lantern]] fuel to maximum (unimplemented feature)
lantern - Gives a Lantern to the player. However, when trying to use it, the game freezes.
fbp, fill, fillbp, fillbackpack - fills the player inventory with random items until full.
fb, fillbin - Puts five items (24, 82, 136, 16, 388) into the shipping bin.
NPCs, NPC actors, relationships
friendAll - Sets all NPCs to 10 hearts (or 8 hearts for bachelor/ettes that you aren't dating).
clone <S:NPC> - Clones <NPC> and adds them to the current location.
sb <S:NPC> - Puts "Hello! This is a test" in a bubble above <NPC>'s head.
pregnant - Sets the amount of days until child birth to 1. Also, removes all previous children.
fd, face, faceDirection <S:NPC> <I:dir> - Sets <NPC> to face in <direction>
jump <S:NPC> - makes the given NPC/player actor jump once.
c, cm, canmove - Force-enables movement for the player actor. Force-closes inventory menu, presumably other menus and dialogue as well.
stoprafting - `player.isRafting = false;` (presumably an unimplemented feature)
sf, setFrame <I> - Sets and stops the player actor's current animation at the given frame.
divorce - Makes the player divorce from their current spouse that night.
minigame makeEx <S:NPC> - sets <NPC>'s relationship to Farmer as "divorced".
Events
leaveEvent, endEvent - Ends the current event, but also clears all previous events seen, dialogue questions answered, and mail received. Clarify: For that day or entirely?
busDriveBack - BusStop.busDriveBack()
wedding - 
eventOver - 
train - Makes a train pass through Stardew Valley.
ccloadcutscene - 
ee - Ends and restarts current event (heart events only?). Outside of events, warps player actor to (0,0) on current map.
minigame blastoff - presumably starts a specific heart event of [[Maru]].
minigame cowboy - presumably starts a specific heart event of [[Abigail]].
end - Starts the Stardew Hero Celebration event.
Quests, world objectives, achievements
quest <I:ID> - Adds quest the ID <ID>.
bundle <I:ID> - Marks bundle <ID> as completed.
completeCC - Sets the Community Centre as complete.
completeQuest <I:ID> - Marks quest <ID> as complete.
caughtFish, fishCaught <I:AMT> - Sets the number of fish caught to <AMT>.
Information
where, whereis <S:NPC> - Prints the location and coordinates of <NPC> in the console.
dp, dap, daysPlayed - Displays the number of game-days played on the save.
pm, panmode, panMode, - On/off toggle for map-panning view; pan map with WASD when toggled on.
version - Prints the SDV version number in console.
localInfo - Prints a bunch of debug information about the current location in the console.
characterInfo - Displays number of characters on the current map.
Player character stats, skills, recipes, and player actor properties
heal - Sets player health to maximum.
speed <I> - Increases player actor speed by the given amount. (1 is equal to the speed increase from coffee.)
cooking - Teaches the player all cooking recipes.
energize - Sets player energy to maximum.
die - Sets the player's health to minimum, making them pass out.
money <I> - Set player money to given integer.
specials - Sets all special access conditions to true (Sewers, Skull Cave, Club, Witch's Hut, Dwarf), and gives the player the [[Special Charm]].
festivalScore <I:score>- adds <score> to Farmer's grange display score at Stardew Valley Fair
toggleCatPerson - Toggles the selected pet species.
Farm, crops, fruit trees, livestock, pets, farm buildings
minigame setUpFarm - tills certain patches of land; adds 20K money; adds a silo, a coop, and a barn; adds shears, milk pail, and full stacks of items 472, 473, 322, 388, and 390; upgrades all four tools to iridium level.
upgradebarn, barn - upgrades player barn(s) one level
growCrops <I:AMT> - Advances all crops in the current location <AMT> days.
house, houseUpgrade, hu <I:LVL> - Upgrades your house to the given level.
fenceDecay - presumably sets the rate of fence decay
bc, buildcoop - 
coop, upgradecoop - upgrades player coop(s) one level.
spreadDirt - On the farm, till all tillable dirt that is currently untilled and unoccupied by actors.
removeDirt - On the farm, until all tillable dirt. Will destroy all crops!
minigame befriendAnimals - Sets your friendship with all of your (present) animals to 1000. Must be used inside a coop or a barn.
fixAnimals - Presumably, moves all livestock to their home buildings.
Map, locations, terrain features, time and weather
minelevel <LVL> - Warps Farmer to given [[Mines]] level.
warp <S:MAP> <I:X> <I:Y> - warps Farmer to <MAP> at (<X>, <Y>).
removeLights - Disables light effects on the current map.
clearLightGlows - Removes light glow textures on current map.
dayUpdate [I:AMT] - Progresses the game either 1 or [AMT] days.
al, ambientLight - 
time <TIME> - set game time of day, <TIME> format is military time (24 hours, no colon).
rain - Toggles whether current [[weather]] is rain.
cmenu, customize, customizeMenu - Opens the character menu (new game, not wizard).
bloomDay - The game's bloom. Doesn't work.
cat <I:X> <I:Y> - Adds a cat at (<X>, <Y>) in the current location.
question - Marks a particular dialogue question as answered.
growgrass <number> - Adds <number> grass to your current location. May freeze the game if used outside of the farm.
petToFarm - Moves the player's pet to the farm at (54, 8) if it isn't raining.
junimoStar - (CC.characters[0] as junimo).returnToFetchStar
growAnimals - Makes all animals in the current location (must be an animal house) grow up.
bluebook - Adds a blueprint to your inventory.
removeTF, removeTerrainFeatures - Removes all terrain features from the current location.
removeFurniture - Removes all furniture from the current location.
rfh, readyForHarvest <I:X> <I:Y> - Sets the object at (<X>, <Y>) to be ready in one minute. Also sets stones to 1 health.
resource <I:ID> <I:AMT> - Marks some debris as collected, useful for quests. 0=copper, 2=iron, 4=coal, 6=gold, 8=money (somewhat random amount), 10=iridium, 12=wood, 28=lantern fuel
craftingrecipe <S:str> - Adds the recipe for <str> to your known items.
setstat <S:stat> <I:num>- Sets the stat <stat> to <num>. (<stat> is property in StardewValley.Stats)
conventionMode - Toggles Game1.conventionMode
jn, junimoNote <I:ID> - Adds junimo note <ID>.
resetJunimoNotes - presumably resets all JunimoNotes to not-seen status.
hurry - 
makeInedible - Makes the item the player is holding inedible.
toss - Vial drop animation plays at the player actor's location-
completeJoja - presumably set completeJoja value to true (or input value)
zl, zoomlevel - 
eventseen, seenevent <I:ID> - adds given event's ID to the list of Seen Events. Useful for enabling access to event-dependent areas or events.
sl - Switches items in player inventory one row down, looping to top. Useful for browsing inventories larger than 36 spaces.
sr - Switches items in player inventory one row up, looping to bottom. Useful for browsing inventories larger than 36 spaces.
shirt - 
b, bi, big, bigitem - 
facePlayer - presumably makes given NPC actor face player actor
j, aj, addJunimo - 
deleteArch - 
ns, nosave, noSave - 
water - Irrigate all tilled land on the current map.
growAnimalsFarm - 
wp, wallpaper - 
seenmail - 
tool - 
db - 
fo, frameOffset - 
resetAchievements - Reset the achievements.
m, mv, musicvolume - 
emote - 
remoteLargeTF - 
spawnweeds <number> - Spawns <number> weeds in your current location. May freeze or crash the game if used outside of the farm.
lu, lookup - 
speech - 
ps, playSound - 
wc, warpCharacter - 
fruitTrees - 
animalInfo - 
ff, furniture - 
pixelZoom <LVL> - sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size). Movement does not scale. Changes in zoom level may put the player actor outside the boundaries of the map.
achieve - 
sdkinfo, steaminfo - 
morepollen - 
specialItem - 
levelup - 
kms, killMonsterStat - 
backpack - 
child, kid - 
allbundles - 
movebuilding - 
mft, mailForTomorrow - 
ccload - 
minigame - 
addOtherFarmer - 
addAllCrafting - possibly adds the achievement for having crafted every item
plaque - 
horse <I:X> <I:Y> - Spawns a new horse on the current map at (<X>, <Y>).
sprinkle - 
i, item - 
owl - 
removeQuest - 
w, wall - 
KillAllHorses - 
skinColor - 
debrisWeather - presumably changes the current weather to windy.
clearMail - 
cookingrecipe - 
clearCharacters - 
fishing - 
dialogue - possibly initiate dialogue by ID
test - changes game display to a swatch list of floorings, which can be clicked once to return to normal game display
fish - 
year - 
crafting - Teaches the player all crafting recipes.
f, floor - 
killAll - possibly abort all operations on machines. Does not affect monsters on farm or in mines.
beachBridge - presumably fixes the bridge separating the beach parts
achievement - 
slimecraft - 
LSD - 
build - 
farmMap - 
blueprint - 
upgradeBarn - 
season - presumably timeskips to the 1st day of the given season.
friend, friendship,  - presumably sets the friendship point value with the given character to the given value.
save - Saves the game. Doesn't work.
gamePad - 
coopDweller - 
hairStyle - 
spreadSeeds - 
removeBuildings - 
addKent - Adds Kent to the game.
getstat - 
doesItemExist - 
clearSpecials - 
pants - 
gamemode - 
barnDweller - 
marry <S:NPC> - Marries the player to <NPC>.
bloom - 
viewport - 
day - 
upgradeCoop - 
dog -  Presumably adds a dog at (<X>, <Y>) on the current map.
busDriveOff - 
child2 - 
playMusic - 
resetMines - 
hat - 
r - 
hairColor - 
waterColor - 
ring - 
clearFurniture - 
boots - 
event -