Changes

Jump to navigation Jump to search
Slightly rearranged the unpacking section to make instructions more prominent and possibly reduce accidental downloads of source code
Line 29: Line 29:     
==<span id="unpacking">Unpack game files</span>==
 
==<span id="unpacking">Unpack game files</span>==
You can't edit an <tt>.xnb</tt> file itself, you need to edit the file that's inside it. Pulling out that inner file is called ''unpacking'', and putting it back is called ''packing''. You can do that using xnbcli, a tool for packing and unpacking XNB files. It's [https://github.com/LeonBlade/xnbcli open-source] and natively crossplatform. ('''Note:''' 1.4 introduced a new data model format that current unpackers have not yet been updated to handle. The following method will work for most game files, but not some of the new ones. For those you will need a tool like [https://github.com/Pathoschild/StardewXnbHack XnbHack], which is less accessible but does the job.)
+
You can't edit an <tt>.xnb</tt> file itself, you need to edit the file that's inside it. Pulling out that inner file is called ''unpacking'', and putting it back is called ''packing''. You can do that using [https://github.com/LeonBlade/xnbcli/releases xnbcli], an [https://github.com/LeonBlade/xnbcli open-source] and natively cross-platform tool for packing and unpacking XNB files.
    
Here's how:
 
Here's how:
Line 39: Line 39:  
# Copy it into xnbcli's <tt>packed</tt> folder.
 
# Copy it into xnbcli's <tt>packed</tt> folder.
 
# Double-click <tt>unpack.bat</tt> (Windows), <tt>unpack.sh</tt> (Linux), or <tt>unpack.command</tt> (Mac).
 
# Double-click <tt>unpack.bat</tt> (Windows), <tt>unpack.sh</tt> (Linux), or <tt>unpack.command</tt> (Mac).
# Check the <tt>Unpacked</tt> folder for your unpacked files. (If you didn't unpack many files, it may just flash onscreen and disappear again, but that's normal! Check the folder for your changes, anyway.)
+
# Check the <tt>Unpacked</tt> folder for your unpacked files. (If you didn't unpack many files, it may just flash onscreen and disappear again, but that's normal! Check the folder for your changes, anyway. Note that 1.4 introduced a new data model format that current unpackers have not yet been updated to handle. For movie and fish pond data you will need a tool like [https://github.com/Pathoschild/StardewXnbHack XnbHack], which is less accessible but does the job.)
 
</li>
 
</li>
 
<li>Edit the unpacked file (see below).</li>
 
<li>Edit the unpacked file (see below).</li>
59

edits

Navigation menu