Changes

→‎What are XNB files?: rewrite to update & clarify (XNB files don't contain a JSON file, that's just what xnbcli uses to store XNB metadata)
Line 5: Line 5:  
==Intro==
 
==Intro==
 
===What are XNB files?===
 
===What are XNB files?===
The game stores data in a compressed format with the <tt>.xnb</tt> file extension inside its <tt>Content</tt> folder. For example, Abigail's portrait shown during dialogue is from <tt>Content\Portraits\Abigail.xnb</tt>. Each <tt>.xnb</tt> file contains two files: the data file (like an image), and a metadata file (information about the data file). For example, here's what's inside <tt>Content\Portraits\Abigail.xnb</tt>:
+
The game stores data, maps, and textures in a compressed format with the <tt>.xnb</tt> file extension inside its <tt>Content</tt> folder. For example, Abigail's portrait shown during dialogue is from <tt>Content\Portraits\Abigail.xnb</tt>. Unpacking that file gives you an <tt>Abigail.png</tt> like this:<br />[[File:Modding - creating an XNB mod - example portraits.png]]
   −
<pre>
+
(When using xnbcli, you may get an extra <tt>Abigail.json</tt> file. That's only used to convert it back into an <tt>.xnb</tt> later, and you generally won't need to change it.)
Abigail.xnb
  −
  Abigail.png
  −
  Abigail.json
  −
</pre>
  −
 
  −
In the above example:
  −
 
  −
* <tt>Abigail.png</tt> contains Abigail's portraits. This is the file you would edit if you wanted to change her portraits in the game:<br />[[File:Modding - creating an XNB mod - example portraits.png]]
  −
* <tt>Abigail.json</tt> contains metadata about <tt>Abigail.png</tt> (like what type of file it is). You don't need to worry about this file, since you generally won't be changing it.
      
===How do I get my changes in the game?===
 
===How do I get my changes in the game?===
translators
8,404

edits