Difference between revisions of "Modding:Console commands"

From Stardew Valley Wiki
Jump to navigation Jump to search
Line 16: Line 16:
  
 
Many commands that ask for an NPC (such as faceDirection) can take 'farmer' as well.
 
Many commands that ask for an NPC (such as faceDirection) can take 'farmer' as well.
 
+
;Items, tools, loot, debris, inventory
 
<pre>
 
<pre>
 
removeObjects - Clears all objects from the current location.
 
removeObjects - Clears all objects from the current location.
cmenu, customize, customizeMenu - Opens the character menu (new game, not wizard).
 
 
mainMenu, mainmenu, removeDebris - Removes all debris (such as dropped items).
 
mainMenu, mainmenu, removeDebris - Removes all debris (such as dropped items).
 
pick, pickax, pickaxe - Adds a new basic pickaxe to your inventory.
 
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.
 +
 +
</pre>
 +
 +
;NPCs, NPC actors, relationships
 +
<pre>
 +
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>
 +
 +
</pre>
 +
 +
;Events
 +
<pre>
 +
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 -
 +
 +
 +
</pre>
 +
 +
;Quests, world objectives, achievements
 +
<pre>
 +
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>.
 +
</pre>
 +
 +
 +
<pre>
 +
cmenu, customize, customizeMenu - Opens the character menu (new game, not wizard).
 
where, whereis <S:NPC> - Prints the location and coordinates of <NPC>.
 
where, whereis <S:NPC> - Prints the location and coordinates of <NPC>.
 
bloomDay - The game's bloom. Doesn't work.
 
bloomDay - The game's bloom. Doesn't work.
 
cat <I:X> <I:Y> - Adds a cat at (<X>, <Y>) in the current location.
 
cat <I:X> <I:Y> - Adds a cat at (<X>, <Y>) in the current location.
museumloot - Marks artifacts as found and adds minerals to inventory. Stops when the inventory is full.
 
quest <I:ID> - Adds quest the ID <ID>.
 
 
question - Marks a particular dialogue question as answered.
 
question - Marks a particular dialogue question as answered.
 
house, houseUpgrade, hu <level> - Upgrades your house to a particular level.
 
house, houseUpgrade, hu <level> - Upgrades your house to a particular level.
 
growgrass <number> - Adds <number> grass to your current location. May freeze the game if used outside of the farm.
 
growgrass <number> - Adds <number> grass to your current location. May freeze the game if used outside of the farm.
bundle <I:ID> - Marks bundle <ID> as completed.
 
fd, face, faceDirection <S:NPC> <I:dir> - Sets <NPC> to face in <direction>
 
 
petToFarm - Moves the player's pet to the farm at (54, 8) if it isn't raining.
 
petToFarm - Moves the player's pet to the farm at (54, 8) if it isn't raining.
 
cooking - Teaches the player all cooking recipes.
 
cooking - Teaches the player all cooking recipes.
 
junimoStar - (CC.characters[0] as junimo).returnToFetchStar
 
junimoStar - (CC.characters[0] as junimo).returnToFetchStar
 
growAnimals - Makes all animals in the current location (must be an animal house) grow up.
 
growAnimals - Makes all animals in the current location (must be an animal house) grow up.
leaveEvent, endEvent - Ends the current event, but also clears all previous events seen, dialogue questions answered, and mail received.
 
completeQuest <I:ID> - Marks quest <ID> as complete.
 
 
stoprafting - `player.isRafting = false;`
 
stoprafting - `player.isRafting = false;`
 
bluebook - Adds a blueprint to your inventory.
 
bluebook - Adds a blueprint to your inventory.
 
removeTF, removeTerrainFeatures - Removes all terrain features from the current location.
 
removeTF, removeTerrainFeatures - Removes all terrain features from the current location.
caughtFish, fishCaught <I:AMT> - Sets the number of fish caught to <AMT>.
 
pregnant - Sets the amount of days until child birth to 1. Also, removes all previous children.
 
 
removeFurniture - Removes all furniture from the current location.
 
removeFurniture - Removes all furniture from the current location.
 
localInfo - Prints a bunch of debug information about the current location.
 
localInfo - Prints a bunch of debug information about the current location.
completeCC - Sets the computer center as complete.
 
 
rfh, readyForHarvest <I:X> <I:Y> - Sets the object at (<X>, <Y>) to be ready in one minute. (Also sets stones to 1 health.
 
rfh, readyForHarvest <I:X> <I:Y> - Sets the object at (<X>, <Y>) to be ready in one minute. (Also sets stones to 1 health.
 
dayUpdate [I:AMT] - Progresses the game either 1 or [AMT] days.
 
dayUpdate [I:AMT] - Progresses the game either 1 or [AMT] days.
friendAll - Sets all NPCs to 10 hearts (or 8 hearts for bachelor/ettes that you aren't dating).
 
shears - Gives the player shears
 
 
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
 
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.
 
craftingrecipe <S:str> - Adds the recipe for <str> to your known items.
clone <S:NPC> - Clones <NPC> and adds them to the current location.
 
TV - Adds a TV to your inventory.
 
 
setstat <S:stat> <I:num>- Sets the stat <stat> to <num>. (<stat> is property in StardewValley.Stats)
 
setstat <S:stat> <I:num>- Sets the stat <stat> to <num>. (<stat> is property in StardewValley.Stats)
 
c, cm, canmove - Forces the player to be able to move.
 
c, cm, canmove - Forces the player to be able to move.
 
growCrops <I:amt> - Advances all crops in the current location <amt> days.
 
growCrops <I:amt> - Advances all crops in the current location <amt> days.
 
upgradebarn, barn - player.BarnUpgradeLevel += 1 (or 3)?
 
upgradebarn, barn - player.BarnUpgradeLevel += 1 (or 3)?
busDriveBack - BusStop.busDriveBack()
 
 
conventionMode - Toggles Game1.conventionMode
 
conventionMode - Toggles Game1.conventionMode
 
jn, junimoNote <I:ID> - Adds junimo note <ID>.
 
jn, junimoNote <I:ID> - Adds junimo note <ID>.
sb <S:NPC> - Puts "Hello! This is a test" in a bubble above <NPC>'s head.
 
 
resetJunimoNotes -  
 
resetJunimoNotes -  
 
ee -  
 
ee -  
Line 88: Line 116:
 
ns, nosave, noSave -  
 
ns, nosave, noSave -  
 
dp -  
 
dp -  
wedding -
 
 
water -  
 
water -  
eventOver -
 
 
festivalScore -  
 
festivalScore -  
 
growAnimalsFarm -  
 
growAnimalsFarm -  
Line 113: Line 139:
 
wc, warpCharacter -  
 
wc, warpCharacter -  
 
fruitTrees -  
 
fruitTrees -  
skullkey - Adds the Skull Key to the player's wallet.
 
 
toggleCatPerson -  
 
toggleCatPerson -  
 
fb, fillbin -  
 
fb, fillbin -  
 
coop, upgradecoop -  
 
coop, upgradecoop -  
pole - Gives a Bamboo Pole to the player.
 
 
animalInfo -  
 
animalInfo -  
 
end -  
 
end -  
 
ff, furniture -  
 
ff, furniture -  
 
pixelZoom -  
 
pixelZoom -  
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.
 
 
achieve -  
 
achieve -  
 
sdkinfo -  
 
sdkinfo -  
 
steaminfo -  
 
steaminfo -  
train - Makes a train pass through Stardew Valley.
 
 
morepollen -  
 
morepollen -  
 
specialItem -  
 
specialItem -  
Line 225: Line 246:
 
removeDirt -  
 
removeDirt -  
 
boots -  
 
boots -  
ccloadcutscene -
 
 
event -  
 
event -  
 
</pre>
 
</pre>
  
 
[[Category:Modding]]
 
[[Category:Modding]]

Revision as of 15:00, 30 September 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.

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>

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 - 


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>.


cmenu, customize, customizeMenu - Opens the character menu (new game, not wizard).
where, whereis <S:NPC> - Prints the location and coordinates of <NPC>.
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.
house, houseUpgrade, hu <level> - Upgrades your house to a particular level.
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.
cooking - Teaches the player all cooking recipes.
junimoStar - (CC.characters[0] as junimo).returnToFetchStar
growAnimals - Makes all animals in the current location (must be an animal house) grow up.
stoprafting - `player.isRafting = false;`
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.
localInfo - Prints a bunch of debug information about 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.
dayUpdate [I:AMT] - Progresses the game either 1 or [AMT] days.
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)
c, cm, canmove - Forces the player to be able to move.
growCrops <I:amt> - Advances all crops in the current location <amt> days.
upgradebarn, barn - player.BarnUpgradeLevel += 1 (or 3)?
conventionMode - Toggles Game1.conventionMode
jn, junimoNote <I:ID> - Adds junimo note <ID>.
resetJunimoNotes - 
ee - 
hurry - 
heal - Fills up the player's health bar.
sf, setFrame - 
bc, buildcoop - 
makeInedible - Makes the item the player is holding inedible.
fenceDecay - 
toss - 
in, itemnamed - 
al, ambientLight - 
completeJoja - 
zl, zoomlevel - 
eventseen, seenevent - 
sl - 
specials - 
shirt - 
pm, panmode, panMode, - 
b, bi, big, bigitem - 
facePlayer - 
j, aj, addJunimo - 
deleteArch - 
sr - 
version - 
ns, nosave, noSave - 
dp - 
water - 
festivalScore - 
growAnimalsFarm - 
pan - 
wp, wallpaper - 
seenmail - 
tool - 
mp - 
ax - 
db - 
refuel - 
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 - 
time - 
ps, playSound - 
wc, warpCharacter - 
fruitTrees - 
toggleCatPerson - 
fb, fillbin - 
coop, upgradecoop - 
animalInfo - 
end - 
ff, furniture - 
pixelZoom - 
achieve - 
sdkinfo - 
steaminfo - 
morepollen - 
specialItem - 
speed - 
wand - 
levelup - 
kms, killMonsterStat - 
fixAnimals - 
backpack - 
child, kid - 
allbundles - 
divorce - Makes the player divorce from the "currently married" NPC.
spreadDirt - 
movebuilding - 
rain - Changes the weather to rain.
mft, mailForTomorrow - 
minelevel - 
warp - 
cclod - 
minigame - 
fbp, fill, fillbp, fillbackpack - 
slingshot - Gives a Slingshot to the player.
addOtherFarmer - 
addAllCrafting - 
plaque - 
horse - 
sprinkle - 
i, item - 
owl - 
removeQuest - 
jump - 
w, wall - 
KillAllHorses - 
lantern - Gives a Lantern to the player. However, when trying to use it, the game freezes.
skinColor - 
debrisWeather - 
clearMail - 
cookingrecipe - 
clearCharacters - 
fishing - 
dialogue - 
test - 
fish - 
year - 
crafting - Teaches the player all crafting recipes.
f, floor - 
killAll - 
beachBridge - 
achievement - 
slimecraft - 
LSD - 
build - 
farmMap - 
blueprint - 
upgradeBarn - 
season - 
energize - 
friend, friendship,  - 
save - Saves the game. Doesn't work.
gamePad - 
coopDweller - 
characterInfo - 
hairStyle - 
spreadSeeds - 
removeBuildings - 
addKent - Adds Kent to the game.
getstat - 
doesItemExist - 
die - Empties the player's health bar, making them pass out.
clearSpecials - 
clearLightGlows - 
pants - 
gamemode - 
can, wateringcan - 
money - 
barnDweller - 
marry <NPC> - Marries the player to <NPC>.
bloom - 
viewport - 
day - 
dap, daysPlayed - 
upgradeCoop - 
dog - 
removeLights - 
busDriveOff - 
child2 - 
gold - 
hoe - 
playMusic - 
resetMines - 
hat - 
r - 
hairColor - 
waterColor - 
ring - 
clearFurniture - 
removeDirt - 
boots - 
event -