Difference between revisions of "Modding:Console commands"

From Stardew Valley Wiki
Jump to navigation Jump to search
(sorting + adding)
Line 28: Line 28:
 
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.
 
+
pan - adds the [[panning]] pan to player inventory
 +
in, itemnamed <ITEM> <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.
 
</pre>
 
</pre>
  
Line 49: Line 55:
 
train - Makes a train pass through Stardew Valley.
 
train - Makes a train pass through Stardew Valley.
 
ccloadcutscene -  
 
ccloadcutscene -  
 
 
 
</pre>
 
</pre>
  
Line 62: Line 66:
 
</pre>
 
</pre>
  
 +
;Information
 +
<pre>
 +
where, whereis <S:NPC> - Prints the location and coordinates of <NPC>
 +
dap, daysPlayed - Prints 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.
 +
</pre>
  
 
<pre>
 
<pre>
 
cmenu, customize, customizeMenu - Opens the character menu (new game, not wizard).
 
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.
 
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.
Line 80: Line 90:
 
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.
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.
 
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
Line 90: Line 100:
 
conventionMode - Toggles Game1.conventionMode
 
conventionMode - Toggles Game1.conventionMode
 
jn, junimoNote <I:ID> - Adds junimo note <ID>.
 
jn, junimoNote <I:ID> - Adds junimo note <ID>.
resetJunimoNotes -  
+
resetJunimoNotes - presumably resets all JunimoNotes to not seen status.
 
ee -  
 
ee -  
 
hurry -  
 
hurry -  
Line 97: Line 107:
 
bc, buildcoop -  
 
bc, buildcoop -  
 
makeInedible - Makes the item the player is holding inedible.
 
makeInedible - Makes the item the player is holding inedible.
fenceDecay -  
+
fenceDecay - presumably sets the rate of fence decay
 
toss -  
 
toss -  
in, itemnamed -
 
 
al, ambientLight -  
 
al, ambientLight -  
 
completeJoja -  
 
completeJoja -  
Line 107: Line 116:
 
specials -  
 
specials -  
 
shirt -  
 
shirt -  
pm, panmode, panMode, -
 
 
b, bi, big, bigitem -  
 
b, bi, big, bigitem -  
 
facePlayer -  
 
facePlayer -  
Line 113: Line 121:
 
deleteArch -  
 
deleteArch -  
 
sr -  
 
sr -  
version -
 
 
ns, nosave, noSave -  
 
ns, nosave, noSave -  
 
dp -  
 
dp -  
 
water -  
 
water -  
festivalScore -  
+
festivalScore - presumably overrides Farmer's grange display score at Stardew Valley Fair
 
growAnimalsFarm -  
 
growAnimalsFarm -  
pan -
 
 
wp, wallpaper -  
 
wp, wallpaper -  
 
seenmail -  
 
seenmail -  
Line 126: Line 132:
 
ax -  
 
ax -  
 
db -  
 
db -  
refuel -  
+
refuel - probably refuels the lantern (unimplemented feature)
 
fo, frameOffset -  
 
fo, frameOffset -  
 
resetAchievements - Reset the achievements.
 
resetAchievements - Reset the achievements.
Line 135: Line 141:
 
lu, lookup -  
 
lu, lookup -  
 
speech -  
 
speech -  
time -  
+
time <TIME> - set game time of day, <TIME> format is military time (24 hours, no colon).
 
ps, playSound -  
 
ps, playSound -  
 
wc, warpCharacter -  
 
wc, warpCharacter -  
Line 145: Line 151:
 
end -  
 
end -  
 
ff, furniture -  
 
ff, furniture -  
pixelZoom -  
+
pixelZoom <LVL> - sets the graphical zoom level the game displays at--takes integers, 1 is 100% pixel size, default is 4 (400% pixel size).
 
achieve -  
 
achieve -  
sdkinfo -
+
sdkinfo, steaminfo -  
steaminfo -  
 
 
morepollen -  
 
morepollen -  
 
specialItem -  
 
specialItem -  
 
speed -  
 
speed -  
wand -
 
 
levelup -  
 
levelup -  
 
kms, killMonsterStat -  
 
kms, killMonsterStat -  
Line 164: Line 168:
 
rain - Changes the weather to rain.
 
rain - Changes the weather to rain.
 
mft, mailForTomorrow -  
 
mft, mailForTomorrow -  
minelevel -  
+
minelevel <LVL> - Warps Farmer to given [[Mines]] level.
 
warp -  
 
warp -  
 
cclod -  
 
cclod -  
 
minigame -  
 
minigame -  
 
fbp, fill, fillbp, fillbackpack -  
 
fbp, fill, fillbp, fillbackpack -  
slingshot - Gives a Slingshot to the player.
 
 
addOtherFarmer -  
 
addOtherFarmer -  
 
addAllCrafting -  
 
addAllCrafting -  
Line 183: Line 186:
 
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.
 
skinColor -  
 
skinColor -  
debrisWeather -  
+
debrisWeather - presumably changes the current weather to windy.
 
clearMail -  
 
clearMail -  
 
cookingrecipe -  
 
cookingrecipe -  
Line 194: Line 197:
 
crafting - Teaches the player all crafting recipes.
 
crafting - Teaches the player all crafting recipes.
 
f, floor -  
 
f, floor -  
killAll -  
+
killAll - possibly abort all operations on machines. Does not affect monsters on farm or in mines.
 
beachBridge -  
 
beachBridge -  
 
achievement -  
 
achievement -  
Line 203: Line 206:
 
blueprint -  
 
blueprint -  
 
upgradeBarn -  
 
upgradeBarn -  
season -  
+
season - presumably timeskips to the 1st day of the given season.
 
energize -  
 
energize -  
friend, friendship,  -  
+
friend, friendship,  - presumably sets the friendship point value with the given character to the given value.
 
save - Saves the game. Doesn't work.
 
save - Saves the game. Doesn't work.
 
gamePad -  
 
gamePad -  
Line 221: Line 224:
 
pants -  
 
pants -  
 
gamemode -  
 
gamemode -  
can, wateringcan -
 
 
money -  
 
money -  
 
barnDweller -  
 
barnDweller -  
Line 228: Line 230:
 
viewport -  
 
viewport -  
 
day -  
 
day -  
dap, daysPlayed -
 
 
upgradeCoop -  
 
upgradeCoop -  
 
dog -  
 
dog -  
removeLights -  
+
removeLights - Disables light effects on the current map.
 
busDriveOff -  
 
busDriveOff -  
 
child2 -  
 
child2 -  
gold -
 
hoe -
 
 
playMusic -  
 
playMusic -  
 
resetMines -  
 
resetMines -  

Revision as of 16:11, 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.
pan - adds the [[panning]] pan to player inventory
in, itemnamed <ITEM> <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.
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>.
Information
where, whereis <S:NPC> - Prints the location and coordinates of <NPC>
dap, daysPlayed - Prints 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.
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.
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 - presumably resets all JunimoNotes to not seen status.
ee - 
hurry - 
heal - Fills up the player's health bar.
sf, setFrame - 
bc, buildcoop - 
makeInedible - Makes the item the player is holding inedible.
fenceDecay - presumably sets the rate of fence decay
toss - 
al, ambientLight - 
completeJoja - 
zl, zoomlevel - 
eventseen, seenevent - 
sl - 
specials - 
shirt - 
b, bi, big, bigitem - 
facePlayer - 
j, aj, addJunimo - 
deleteArch - 
sr - 
ns, nosave, noSave - 
dp - 
water - 
festivalScore - presumably overrides Farmer's grange display score at Stardew Valley Fair
growAnimalsFarm - 
wp, wallpaper - 
seenmail - 
tool - 
mp - 
ax - 
db - 
refuel - probably refuels the lantern (unimplemented feature)
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 <TIME> - set game time of day, <TIME> format is military time (24 hours, no colon).
ps, playSound - 
wc, warpCharacter - 
fruitTrees - 
toggleCatPerson - 
fb, fillbin - 
coop, upgradecoop - 
animalInfo - 
end - 
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).
achieve - 
sdkinfo, steaminfo - 
morepollen - 
specialItem - 
speed - 
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 <LVL> - Warps Farmer to given [[Mines]] level.
warp - 
cclod - 
minigame - 
fbp, fill, fillbp, fillbackpack - 
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 - presumably changes the current weather to windy.
clearMail - 
cookingrecipe - 
clearCharacters - 
fishing - 
dialogue - 
test - 
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 - 
achievement - 
slimecraft - 
LSD - 
build - 
farmMap - 
blueprint - 
upgradeBarn - 
season - presumably timeskips to the 1st day of the given season.
energize - 
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 - 
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 - 
money - 
barnDweller - 
marry <NPC> - Marries the player to <NPC>.
bloom - 
viewport - 
day - 
upgradeCoop - 
dog - 
removeLights - Disables light effects on the current map.
busDriveOff - 
child2 - 
playMusic - 
resetMines - 
hat - 
r - 
hairColor - 
waterColor - 
ring - 
clearFurniture - 
removeDirt - 
boots - 
event -