Help:Tools/sarc: Difference between revisions
Jump to navigation
Jump to search
imported>Leoetlino No edit summary |
imported>Leoetlino No edit summary |
||
Line 19: | Line 19: | ||
== Usage == | == Usage == | ||
This tool automatically decompresses [[Yaz0]]-compressed archives, and re-compresses them when repacking if the extension starts with an <code>s</code>. | This tool automatically decompresses [[Yaz0]]-compressed archives, and re-compresses them when repacking if the extension starts with an <code>s</code>. This means that '''you do not need to compress or decompress files manually'''. | ||
* To '''extract''': <code>sarc extract INPUT_FILE.pack</code> | * To '''extract''': <code>sarc extract INPUT_FILE.pack</code> | ||
* To '''pack''' (create a new archive): <code>sarc create [-b] INPUT_FOLDER OUTPUT_FILE.sbactorpack</code> (Use <code>-b</code>for Wii U only). | * To '''pack''' (create a new archive): <code>sarc create [-b] INPUT_FOLDER OUTPUT_FILE.sbactorpack</code> (Use <code>-b</code>for Wii U only). | ||
* If you are using this tool for non-BotW games, make sure to pass the --not-botw flag as other games need different packing rules. | * If you are using this tool for non-BotW games, make sure to pass the --not-botw flag as other games need different packing rules. | ||
* More commands in the [https://github.com/leoetlino/sarc readme]. | * More commands in the [https://github.com/leoetlino/sarc readme]. |
Revision as of 18:29, 1 February 2019
Author(s) | leoetlino |
---|---|
Source code | https://github.com/leoetlino/sarc |
License | GPLv2+ |
Written in | Python |
Platform support | Cross-platform |
sarc is a tool that can read and generate both big endian and little endian SARC archives, whether they are Yaz0 compressed or not. It is one of the few tools that are able to align file data correctly.
Setup
Install the sarc
package. [CLI help]
Known issues
None
Usage
This tool automatically decompresses Yaz0-compressed archives, and re-compresses them when repacking if the extension starts with an s
. This means that you do not need to compress or decompress files manually.
- To extract:
sarc extract INPUT_FILE.pack
- To pack (create a new archive):
sarc create [-b] INPUT_FOLDER OUTPUT_FILE.sbactorpack
(Use-b
for Wii U only). - If you are using this tool for non-BotW games, make sure to pass the --not-botw flag as other games need different packing rules.
- More commands in the readme.