Line 37: |
Line 37: |
| ## Find the file you want to edit in the [[Modding:Player Guide/Getting Started#Find your game folder|game's <tt>Content</tt> folder]]. | | ## Find the file you want to edit in the [[Modding:Player Guide/Getting Started#Find your game folder|game's <tt>Content</tt> folder]]. |
| ## 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) or <tt>unpack.sh</tt> (Linux/Mac). | + | ## Double-click <tt>unpack.bat</tt> (Windows), <tt>unpack.sh</tt> (Linux), or <tt>unpack.command</tt> (Mac). |
| # Edit the unpacked file (see below). | | # Edit the unpacked file (see below). |
| # Repack the file for the game: | | # Repack the file for the game: |
− | ## Double-click <tt>pack.bat</tt> (Windows) or <tt>pack.sh</tt> (Linux/Mac). | + | ## Double-click <tt>pack.bat</tt> (Windows), <tt>pack.sh</tt> (Linux), or <tt>pack.command</tt> (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. |
| + | |
| + | '''Troubleshooting:''' |
| + | * If you get permission denied on Linux/Mac: |
| + | *# Open a terminal. (In MacOS, search 'Terminal' in Spotlight.) |
| + | *# Type <code>chmod +x </code>, ''with a space at the end''. Don't press enter yet. |
| + | *# Drag the <tt>unpack.sh</tt> (Linux) or <tt>unpack.command</tt> (Mac) file onto the terminal to paste its path. |
| + | *# Hit enter. If you did it correctly, the terminal won't show any message but the permission error should be gone. |
| + | *# Repeat for <tt>pack.sh</tt> (Linux) or <tt>pack.command</tt> (Mac). |
| | | |
| ==Making changes== | | ==Making changes== |