Changes

Jump to navigation Jump to search
→‎Getting started: + experimental instructions for the new xnbcli
Line 57: Line 57:  
## Double-click <tt>PackFiles.bat</tt> (Windows) or <tt>PackFiles.sh</tt> (Linux/Mac).
 
## Double-click <tt>PackFiles.bat</tt> (Windows) or <tt>PackFiles.sh</tt> (Linux/Mac).
 
## Move the repacked <tt>.xnb</tt> file back to the original location.
 
## Move the repacked <tt>.xnb</tt> file back to the original location.
 +
 +
==Getting started (experimental alternative)==
 +
xnbcli is a new tool for packing and unpacking XNB files. It's [https://github.com/LeonBlade open-source] and natively crossplatform, but still new. Try it out and [[Modding:Community#Discord|let us know]] how it goes!
 +
 +
<div style="border:2px solid gray; padding:0.5em;">
 +
===Unpack & pack game files===
 +
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''. Here's how to do it:
 +
 +
# Download [https://github.com/LeonBlade/xnbcli/releases xnbcli].
 +
# Unpack the file for editing:
 +
## Find the file you want to edit in the <tt>Contents</tt> folder.
 +
## Copy it into xnbcli's <tt>packed</tt> folder.
 +
## Double-click <tt>unpack.bat</tt> (Windows) or <tt>unpack.sh</tt> (Linux/Mac).
 +
# Edit the unpacked file (see below).
 +
# Repack the file for the game:
 +
## Double-click <tt>pack.bat</tt> (Windows) or <tt>pack.sh</tt> (Linux/Mac).
 +
## Move the repacked <tt>.xnb</tt> file back to the original location.
 +
</div>
    
==Making changes==
 
==Making changes==
translators
8,404

edits

Navigation menu