Modding:Debug commands

From Stardew Valley Wiki
Jump to: navigation, search

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

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

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).
pick, pickax, pickaxe - Adds a new basic pickaxe to your inventory.
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.
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.
house, houseUpgrade, hu <level> - Upgrades your house to a particular level.
growgrass - Adds weeds and grass.
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.
cooking - Teaches the player all cooking recipes.
junimoStar - (CC.characters[0] as junimo).returnToFetchStar
growAnimals - Makes all animals in the currentl 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;`
bluebook - Adds a blueprint to your inventory?
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 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.
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
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)
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)?
busDriveBack - BusStop.busDriveBack()
conventionMode - Toggles Game1.conventionMode
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 - 
ee - 
hurry - 
heal - 
sf, setFrame - 
bc, buildcoop - 
makeInedible - 
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 - 
wedding - 
water - 
eventOver - 
festivalScore - 
growAnimalsFarm - 
pan - 
wp, wallpaper - 
seenmail - 
tool - 
mp - 
ax - 
db - 
refuel - 
fo, frameOffset - 
resetAchievements - 
m, mv, musicvolume - 
emote - 
remoteLargeTF - 
spawnweeds - 
lu, lookup - 
speech - 
time - 
ps, playSound - 
wc, warpCharacter - 
fruitTrees - 
skullkey - 
toggleCatPerson - 
fb, fillbin - 
coop, upgradecoop - 
pole - 
animalInfo - 
end - 
ff, furniture - 
pixelZoom - 
weapon - 
darkTalisman - 
achieve - 
sdkinfo - 
steaminfo - 
train - 
morepollen - 
specialItem - 
speed - 
wand - 
levelup - 
kms, killMonsterStat - 
fixAnimals - 
backpack - 
child, kid - 
allbundles - 
divorce - 
spreadDirt - 
movebuildinog - 
rain - 
mft, mailForTomorrow - 
minelevel - 
warp - 
cclod - 
minigame - 
fbp, fill, fillbp, fillbackpack - 
slingshot - 
addOtherFarmer - 
addAllCrafting - 
plaque - 
horse - 
sprinkle - 
i, item - 
owl - 
removeQuest - 
jump - 
w, wall - 
KillAllHorses - 
lantern - 
skinColor - 
debrisWeather - 
clearMail - 
cookingrecipe - 
clearCharacters - 
fishing - 
dialogue - 
test - 
fish - 
year - 
crafting - 
f, floor - 
killAll - 
beachBridge - 
achievement - 
slimecraft - 
LSD - 
build - 
farmMap - 
blueprint - 
upgradeBarn - 
season - 
energize - 
friend, friendship,  - 
save - 
gamePad - 
coopDweller - 
characterInfo - 
hairStyle - 
spreadSeeds - 
removeBuildings - 
addKent - 
getstat - 
doesItemExist - 
die - 
clearSpecials - 
clearLightGlows - 
pants - 
gamemode - 
can, wateringcan - 
money - 
barnDweller - 
marry - 
bloom - 
viewport - 
day - 
dap, daysPlayed - 
upgradeCoop - 
dog - 
removeLights - 
busDriveOff - 
child2 - 
gold - 
hoe - 
playMusic - 
resetMines - 
hat - 
r - 
hairColor - 
waterColor - 
ring - 
clearFurniture - 
removeDirt - 
boots - 
ccloadcutscene - 
event -