Changes

→‎Relationships: + commands to test normal wedding
Line 331: Line 331:     
Entering <code>debug runmacro quickstart</code> in the SMAPI console will execute all the commands, resulting in a backpack upgrade, money set to 10000g, farming skill set to level 1, and a [[Bone Sword]] added to the player's inventory. (Note: <samp>Money</samp> is capitalized in this example because if it is all lowercase it triggers a [[Secrets#Chat|special chat response]] instead of executing the command.)
 
Entering <code>debug runmacro quickstart</code> in the SMAPI console will execute all the commands, resulting in a backpack upgrade, money set to 10000g, farming skill set to level 1, and a [[Bone Sword]] added to the player's inventory. (Note: <samp>Money</samp> is capitalized in this example because if it is all lowercase it triggers a [[Secrets#Chat|special chat response]] instead of executing the command.)
 +
 +
===Actions and queries===
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
  |command = action
 +
  |params  = {{t|S:action}}
 +
  |desc    = Run a [[Modding:Trigger actions|trigger action string]].
 +
  |example = <code>action AddMoney 500</code> will add 500 g to the current player.
 +
}}
 +
{{/cmd
 +
  |command = gamequery,gq
 +
  |params  = {{t|S:query}}
 +
  |desc    = Check whether the given [[Modding:Game state queries|game state query]] matches in the current context.
 +
  |example = <pre>
 +
gq !SEASON Spring, WEATHER Here Sun
 +
> Result: true.
 +
</pre>
 +
}}
 +
{{/cmd
 +
  |command = itemquery,iq
 +
  |params  = {{t|S:query}}
 +
  |desc    = Open a shop menu with all the items matching an [[Modding:Item queries|item query]] (all items free).
 +
  |example = <samp>debug iq ALL_ITEMS</samp> shows all items;<samp>debug iq ALL_ITEMS (W)</samp> shows all weapons;<samp>debug iq (O)128</samp> shows a pufferfish (object 128);<samp>debug iq FLAVORED_ITEM Wine (O)128</samp> shows Pufferfish Wine.
 +
}}
 +
{{/cmd
 +
  |command = search
 +
  |params  = {{o|S:term}}
 +
  |desc    = List all debug commands that match the given search term (or all debug commands if the search term is omitted).
 +
  |example = <pre>debug search backpack
 +
> Found 2 debug commands matching search term 'backpack':
 +
    - Backpack
 +
    - FillBackpack (fbp, fill, fillbp)</pre>
 +
}}
 +
{{/cmd
 +
  |command = tokens
 +
  |params  = {{t|S:tokenizedString}}
 +
  |desc    = Parses a [[Modding:Tokenizable strings|tokenizable string]] and prints its output.
 +
  |example = <pre>
 +
tokens [LocalizedText Strings\StringsFromCSFiles:MapPage.cs.11064 [EscapedText [FarmName]]]
 +
> Result: "Lon Lon Farm"
 +
</pre>
 +
}}
 +
|}
    
===Items and inventory===
 
===Items and inventory===
Line 382: Line 430:  
   |desc    = Outputs the parent sheet index (''i.e.,'' ID) of the specified object to the SMAPI console. Accepts only object names; this is not a fuzzy match but is case-insensitive and spaces should still be included (see examples below). If the requested name is not unique, all matching objects will be included in the output.
 
   |desc    = Outputs the parent sheet index (''i.e.,'' ID) of the specified object to the SMAPI console. Accepts only object names; this is not a fuzzy match but is case-insensitive and spaces should still be included (see examples below). If the requested name is not unique, all matching objects will be included in the output.
 
   |example = <code>debug lookup diamond</code> would output ''diamond 72''.; <code>debug lu strange doll</code> would output ''strange 126'' and ''strange 127''.
 
   |example = <code>debug lookup diamond</code> would output ''diamond 72''.; <code>debug lu strange doll</code> would output ''strange 126'' and ''strange 127''.
 +
}}
 +
{{/cmd
 +
  |command = qualifiedid
 +
  |desc    = Print the held item's display name and [[#Custom items|qualified item ID]].
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 949: Line 1,001:  
{{/cmd
 
{{/cmd
 
   |command = seenmail
 
   |command = seenmail
   |params  = {{t|S:mailID}},{{t|B:addOrRemove}}
+
   |params  = {{t|S:mailID}},{{o|B:addOrRemove}}
 
   |desc    = Marks specified mail as already received. The ID is case-sensitive; see <samp>Data/mail</samp> for valid IDs in the base game. You can remove a mail received (instead of adding it) by setting the second argument to false, like <samp>seenMail <code><id></code> false</samp>.
 
   |desc    = Marks specified mail as already received. The ID is case-sensitive; see <samp>Data/mail</samp> for valid IDs in the base game. You can remove a mail received (instead of adding it) by setting the second argument to false, like <samp>seenMail <code><id></code> false</samp>.
 
}}
 
}}
Line 1,152: Line 1,204:  
   |command = wedding
 
   |command = wedding
 
   |params  = {{t|S:npcName}}
 
   |params  = {{t|S:npcName}}
   |desc    = Sets specified NPC as your spouse and queues a wedding for today. Name is an exact match. If the specified NPC is not normally marriageable, the wedding will still occur but they will be invisible on the wedding day.
+
   |desc    = <p>Sets the specified NPC as your spouse and queues a wedding for today. Name is an exact match. If the specified NPC is not normally marriageable, the wedding will still occur but they will be invisible on the wedding day.</p>
 +
 
 +
Tip: if you want to test a normal wedding, you can run these commands and then give them the pendant (replacing Abigail with the NPC's internal name):
 +
<pre>
 +
debug houseUpgrade 2
 +
debug friendship Abigail 2500
 +
debug item (O)460
 +
debug warpToCharacter Abigail
 +
</pre>
 
}}
 
}}
 
|}
 
|}
Line 1,185: Line 1,245:  
{{/cmd
 
{{/cmd
 
   |command = question
 
   |command = question
   |params  = {{t|I:questionID}},{{t|B:answerOrForget}}
+
   |params  = {{t|I:questionID}},{{o|B:answerOrForget}}
 
   |desc    = Marks the specified dialogue question as answered. You can forget a selected answer (instead of adding it) by setting the second argument to false, like <samp>question <code><id></code> false</samp>.
 
   |desc    = Marks the specified dialogue question as answered. You can forget a selected answer (instead of adding it) by setting the second argument to false, like <samp>question <code><id></code> false</samp>.
 
}}
 
}}
Line 1,364: Line 1,424:  
|-
 
|-
 
{{/cmd
 
{{/cmd
   |command = ee
+
   |command = endevent
   |desc    = Ends (and restarts) the current event.
+
   |desc    = Immediately end the current event or festival, applying the event's skip logic (if any). The event is marked seen, but you can rewatch it using the <samp>eventById</samp> command if needed.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,384: Line 1,444:  
{{/cmd
 
{{/cmd
 
   |command = eventseen, seenevent
 
   |command = eventseen, seenevent
   |params  = {{t|I:eventID}},{{t|B:seeOrForget}}
+
   |params  = {{t|I:eventID}},{{o|B:seeOrForget}}
 
   |desc    = Marks specifid event as seen by your farmer. Useful for enabling access to event-dependent areas or events. You can forget an event (instead of adding it) by setting the second argument to false, like <samp>seenEvent <code><id></code> false</samp>.
 
   |desc    = Marks specifid event as seen by your farmer. Useful for enabling access to event-dependent areas or events. You can forget an event (instead of adding it) by setting the second argument to false, like <samp>seenEvent <code><id></code> false</samp>.
 
}}
 
}}
Line 1,412: Line 1,472:  
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = endevent
+
   |command = runtestevent,rte
   |desc    = Ends (and restarts) the current event.<br />'''Warning: also clears all records of events seen, dialogue questions answered, and mail received (including hidden mail flags.)'''
+
   |desc    = Runs an event from the file <code>test_event.txt</code> in the root game folder. The first line of the file should specify the location where the event takes place, and the rest of the file should be the same as a normal event script except that line breaks will be treated as <code>/</code> delimiters.<br />'''Note: this file must use CRLF (Windows-style) line breaks, or it will fail to parse.''' If you are on Mac or Linux, make sure you convert when saving (any text editor should be able to do this).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
   |command = runtestevent,rte
+
   |command = setFarmEvent,sfe
   |desc    = Runs an event from the file <code>test_event.txt</code> in the root game folder. The first line of the file should specify the location where the event takes place, and the rest of the file should be the same as a normal event script except that line breaks will be treated as <code>/</code> delimiters.<br />'''Note: this file must use CRLF (Windows-style) line breaks, or it will fail to parse.''' If you are on Mac or Linux, make sure you convert when saving (any text editor should be able to do this).
+
  |params  = {{t|S:eventID}}
 +
   |desc    = Queue an [[Random Events#Farm events|overnight farm event]] if one doesn't plan naturally instead. The {{t|event id}} can be one of...
 +
* <samp>dogs</samp>;
 +
* [[Random Events#Earthquake|<samp>earthquake</samp>]];
 +
* [[Random Events#The Crop Fairy|<samp>fairy</samp>]];
 +
* [[Random Events#Meteorite|<samp>meteorite</samp>]];
 +
* [[Random Events#Stone Owl|<samp>owl</samp>]];
 +
* [[Random Events#Strange Capsule|<samp>ufo</samp>]];
 +
* [[Random Events#The Witch|<samp>witch</samp>]].
 +
 
 +
Note that even if the farm event runs, it may exit without doing anything (e.g. rare events like <samp>ufo</samp> have extra condition checks when the start).
 
}}
 
}}
 
|}
 
|}
Line 1,466: Line 1,536:  
<li><samp>target</samp> - starts the Slingshot minigame from the [[Stardew Valley Fair]]. When the game is over the farmer will be warped to coordinates (24, 63) on the current map.</li>
 
<li><samp>target</samp> - starts the Slingshot minigame from the [[Stardew Valley Fair]]. When the game is over the farmer will be warped to coordinates (24, 63) on the current map.</li>
 
</ul>
 
</ul>
 +
}}
 +
{{/cmd
 +
  |command = movieSchedule
 +
  |params  = {{o|I:year}}
 +
  |desc    = Lists the movies that will play in the given year (default this year), with the dates they'll play.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
 
   |command = test
 
   |command = test
 
   |desc    = Starts the ''Test'' minigame. This brings up a window showing a variety of flooring textures; left-click closes the window.
 
   |desc    = Starts the ''Test'' minigame. This brings up a window showing a variety of flooring textures; left-click closes the window.
 +
}}
 +
|}
 +
 +
===Shops===
 +
{| class="wikitable"
 +
|-
 +
! command
 +
! description
 +
! &nbsp;
 +
|-
 +
{{/cmd
 +
  |command = exportShops
 +
  |desc    = Export a summary of what's in every shop in the game, taking into account their current conditions. This is saved to a file on disk, and the file path shown in the console.
 +
}}
 +
{{/cmd
 +
  |command = shop
 +
  |params  = {{t|shopID}},{{o|ownerName}}
 +
  |desc    = Open a [[Modding:Shops|shop defined in <samp>Data/Shops</samp>]], regardless of whether one of the owners is nearby. Specifying {{o|ownerName}} will use that NPC, otherwise the command will find the closest valid NPC if possible (else open with no NPC).
 
}}
 
}}
 
|}
 
|}
Line 1,481: Line 1,574:  
! &nbsp;
 
! &nbsp;
 
|-
 
|-
 +
{{/cmd
 +
  |command = artifactSpots
 +
  |desc    = Spawn an [[Artifact Spot|artifact spot]] in each empty tile around the player.
 +
}}
 
{{/cmd
 
{{/cmd
 
   |command = clearfarm
 
   |command = clearfarm
Line 1,633: Line 1,730:  
   |params  = {{t|I:X}},{{t|I:Y}}
 
   |params  = {{t|I:X}},{{t|I:Y}}
 
   |desc    = Builds a new basic Coop at the specified coordinates.
 
   |desc    = Builds a new basic Coop at the specified coordinates.
 +
}}
 +
{{/cmd
 +
  |command = forcebuild
 +
  |params  = {{t|S:Name}},{{o|I:X}},{{o|I:Y}}
 +
  |desc    = Equivalent to <samp>build</samp>, but disables all safety checks so you can build in a location that wouldn't normally allow buildings, build on top of farm animals or placed objects, etc.
 +
  |example = <code>debug build "Stone Cabin"</code> would build a new Stone Cabin next to the player.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,649: Line 1,752:  
{{/cmd
 
{{/cmd
 
   |command = skinbuilding,bsm
 
   |command = skinbuilding,bsm
   |desc    = Opens a menu to reskin the building the player is standing in front of, if it can be skinned.
+
   |desc    = If the player is standing right under a building, open a menu to change the building appearance.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,688: Line 1,791:  
   |command = thishouseupgrade,thishouse,thu
 
   |command = thishouseupgrade,thishouse,thu
 
   |params  = {{t|I:upgradeLevel}}
 
   |params  = {{t|I:upgradeLevel}}
   |desc    = Sets upgrade level of the farmhouse/cabin the player is standing in front of or within to the specified value. Valid values are <samp>0 - 3</samp>. Furniture and placed items will not be automatically moved and may wind up out of bounds. If done while the player is inside the house, warp points may not immediately update.
+
   |desc    = Equivalent to <samp>houseupgrade</samp>, but can be used to upgrade another player's house by running it from inside or just south of its exterior.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,950: Line 2,053:  
   |command = conventionmode
 
   |command = conventionmode
 
   |desc    = Toggles convention mode on and off. When on, disables the resolution and window mode options as well as both "Exit to Title" and "Exit to Desktop" buttons.
 
   |desc    = Toggles convention mode on and off. When on, disables the resolution and window mode options as well as both "Exit to Title" and "Exit to Desktop" buttons.
 +
}}
 +
{{/cmd
 +
  |command = filterLoadMenu
 +
  |params  = {{t|searchText}}
 +
  |desc    = Filter the current list of saves to those whose player name or farm name contains the given text.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,990: Line 2,098:  
   |command = showplurals
 
   |command = showplurals
 
   |desc    = Prints (to the console) the plural forms of all items listed in <samp>Data/ObjectInformation</samp> and <samp>Data/BigCraftablesInformation</samp>.
 
   |desc    = Prints (to the console) the plural forms of all items listed in <samp>Data/ObjectInformation</samp> and <samp>Data/BigCraftablesInformation</samp>.
 +
}}
 +
{{/cmd
 +
  |command = toggleCheats
 +
  |desc    = Enable or disable entering debug commands into the in-game chat (prefixed with <samp>/</samp>).
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 1,998: Line 2,110:  
   |command = version
 
   |command = version
 
   |desc    = Outputs the assembly version number to the console. Note this is different from the more user-friendly version that can be accessed from the credits screen. For example, running this command on Stardew Valley 1.4.3 for Windows will output <samp>1.3.7286.33936</samp>
 
   |desc    = Outputs the assembly version number to the console. Note this is different from the more user-friendly version that can be accessed from the credits screen. For example, running this command on Stardew Valley 1.4.3 for Windows will output <samp>1.3.7286.33936</samp>
 +
}}
 +
{{/cmd
 +
  |command = worldMapLines
 +
  |desc    = Toggles the [[Modding:World map#Debug view|world map's debug view]].
 
}}
 
}}
 
|}
 
|}
Line 2,038: Line 2,154:  
   |command = logbandwidth
 
   |command = logbandwidth
 
   |desc    = Toggles bandwidth logging on and off. Can be used on either host or client.
 
   |desc    = Toggles bandwidth logging on and off. Can be used on either host or client.
 +
}}
 +
{{/cmd
 +
  |command = logFile
 +
  |desc    = Begin writing debug messages to a log file at <samp>%appdata%/StardewValley/ErrorLogs/game-latest.txt</samp> to simplify troubleshooting. You can also enter <samp>/logtext</samp> into the in-game chatbox to enable it. This does nothing if SMAPI is installed, since the debug messages are already saved to SMAPI's log.
 +
}}
 +
{{/cmd
 +
  |command = logSounds
 +
  |desc    = Log info about each sound effect played to the SMAPI console window.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
Line 2,067: Line 2,191:  
   |command = engageplayer
 
   |command = engageplayer
 
   |desc    = Checks all other farmers and sets the first one found as engaged to the player with a wedding date of the next game day.
 
   |desc    = Checks all other farmers and sets the first one found as engaged to the player with a wedding date of the next game day.
 +
}}
 +
{{/cmd
 +
  |command = testwedding
 +
  |desc    = Immediately play the [[Marriage#The Wedding|wedding]] event. This requires the player to be married first - to test specific NPCs, <samp>debug marry</samp> the NPC followed by this command.
 
}}
 
}}
 
{{/cmd
 
{{/cmd
translators
8,447

edits