This wiki is a read-only version of the Stardew Valley Wiki. The official editable wiki maintained by ConcernedApe can be found at stardewvalleywiki.com

Changes

Jump to: navigation, search

Modding:Content Patcher

61 bytes added, 16:21, 22 August 2020
update format versions, move random example into separate section
<source lang="javascript">
{
"Format": "1.1117.0",
"Changes": [
]
The <tt>content.json</tt> file you created above is what tells Content Patcher what to change. This has two main fields:
* <tt>Format</tt>: the format version. You should always use the latest version (currently 1.1117.0) to enable the latest features and avoid obsolete behavior.
* <tt>Changes</tt>: the changes you want to make. Each entry is called a ''patch'', and describes a specific action to perform: replace this file, copy this image into the file, etc. You can list any number of patches.
<source lang="javascript">
{
"Format": "1.1117.0",
"Changes": [
{
* [https://docs.google.com/presentation/d/1OBIJSNOwEA2sdBzNbUiVUQni-ajABGFmL-FUanhuLvk intro to converting XNB mods] (unofficial).
==Examples==
(We'll have a guided tutorial here soon.)
<!--
{{modding guide footer
|prev =
|next = [[/Load|Load assets]]
}}
-->
===Change horse/pet icons===
For edits to replace the look of horses and/or pets (cats and dogs), you can add these to your content.json in order to also replace the little head icon in the inventory menu:
//horse head in inventory
{
"Action": "EditImage", "Target": "LooseSprites/Cursors", "FromFile": "yourfile.png", "FromArea": { insert values here }, "ToArea": { "X": 192, "Y": 192, "Width": 16, "Height": 16 }, "Patchmode": "Replace"
}
</source>
</source>
 
<!--
{{modding guide footer
|prev =
|next = [[/Load|Load assets]]
}}
-->
[[es:Modding:Content Patcher]]
Protected, translators
5,421
edits

Navigation menu