Changes

Jump to navigation Jump to search
keep Content Patcher format version updated automatically
Line 67: Line 67:  
<li>[[Modding:Content packs#Create a content pack|Create a SMAPI content pack]].</li>
 
<li>[[Modding:Content packs#Create a content pack|Create a SMAPI content pack]].</li>
 
<li>Create a <tt>content.json</tt> file in the same folder with this content:
 
<li>Create a <tt>content.json</tt> file in the same folder with this content:
<syntaxhighlight lang="javascript">
+
{{#tag:syntaxhighlight|
 
{
 
{
   "Format": "1.19.0",
+
   "Format": "{{Content Patcher version}}",
 
   "Changes": [
 
   "Changes": [
 
   ]
 
   ]
}
+
}|lang=javascript}}
</syntaxhighlight>
   
</li>
 
</li>
 
<li>Launch the game.</li>
 
<li>Launch the game.</li>
Line 87: Line 86:     
You can list any number of patches in the <tt>Changes</tt> field, each surrounded by <code>{</code> and <code>}</code>. See the next section for more info, but here's a quick example:
 
You can list any number of patches in the <tt>Changes</tt> field, each surrounded by <code>{</code> and <code>}</code>. See the next section for more info, but here's a quick example:
<syntaxhighlight lang="javascript">
+
{{#tag:syntaxhighlight|
 
{
 
{
   "Format": "1.19.0",
+
   "Format": "{{Content Patcher version}}",
 
   "Changes": [
 
   "Changes": [
 
       {
 
       {
Line 103: Line 102:  
       },
 
       },
 
   ]
 
   ]
}
+
}|lang=javascript}}
</syntaxhighlight>
      
(There are other fields like <tt>ConfigSchema</tt> and <tt>DynamicTokens</tt> for more advanced usage; these are covered in the full readme.)
 
(There are other fields like <tt>ConfigSchema</tt> and <tt>DynamicTokens</tt> for more advanced usage; these are covered in the full readme.)
translators
8,404

edits

Navigation menu