Changes

Jump to navigation Jump to search
update format versions, move random example into separate section
Line 66: Line 66:  
<source lang="javascript">
 
<source lang="javascript">
 
{
 
{
   "Format": "1.11.0",
+
   "Format": "1.17.0",
 
   "Changes": [
 
   "Changes": [
 
   ]
 
   ]
Line 80: Line 80:  
The <tt>content.json</tt> file you created above is what tells Content Patcher what to change. This has two main fields:
 
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.11.0) to enable the latest features and avoid obsolete behavior.
+
* <tt>Format</tt>: the format version. You should always use the latest version (currently 1.17.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.
 
* <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.
   Line 86: Line 86:  
<source lang="javascript">
 
<source lang="javascript">
 
{
 
{
   "Format": "1.11.0",
+
   "Format": "1.17.0",
 
   "Changes": [
 
   "Changes": [
 
       {
 
       {
Line 115: Line 115:  
* [https://docs.google.com/presentation/d/1OBIJSNOwEA2sdBzNbUiVUQni-ajABGFmL-FUanhuLvk intro to converting XNB mods] (unofficial).
 
* [https://docs.google.com/presentation/d/1OBIJSNOwEA2sdBzNbUiVUQni-ajABGFmL-FUanhuLvk intro to converting XNB mods] (unofficial).
    +
==Examples==
 
(We'll have a guided tutorial here soon.)
 
(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:
 
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:
   Line 129: Line 125:  
//horse head in inventory
 
//horse head in inventory
 
{
 
{
"Action": "EditImage",
+
  "Action": "EditImage",
"Target": "LooseSprites/Cursors",
+
  "Target": "LooseSprites/Cursors",
"FromFile": "yourfile.png",
+
  "FromFile": "yourfile.png",
"FromArea": { insert values here },  
+
  "FromArea": { insert values here },  
"ToArea": { "X": 192, "Y": 192, "Width": 16, "Height": 16 },
+
  "ToArea": { "X": 192, "Y": 192, "Width": 16, "Height": 16 },
"Patchmode": "Replace"
+
  "Patchmode": "Replace"
 
}
 
}
 
</source>
 
</source>
Line 161: Line 157:     
</source>
 
</source>
 +
 +
<!--
 +
{{modding guide footer
 +
|prev =
 +
|next = [[/Load|Load assets]]
 +
}}
 +
-->
    
[[es:Modding:Content Patcher]]
 
[[es:Modding:Content Patcher]]
translators
8,404

edits

Navigation menu