Introduction
Yaz0 is a compression format used for data files in many Nintendo games, among them
Super Mario Sunshine and The Legend of Zelda: Breath of the Wild.
Extensions that begin with s often mark a Yaz0-compressed file;
.szs is a common one. It is described by the game modding community, not by
Nintendo. Yay0 is a related format.
Structure
0MagicYaz04 bytes4Uncompressed size big-endian4 bytes8Data alignment used by newer files; zero in older ones4 bytes12Unused4 bytes16Compressed data code bytes whose bits choose a literal byte or a copy of earlier datavariable
Not described
This page is a first outline. The details of the layout are not yet described here.
Known, not yet covered
- Reference: the encoding of copies in the compressed data, which community documentation describes.
- Viewer: the site has no viewer for this format.
Links
Software
- wszst – Wiimms SZS Tools
Developers
- oead – library with Yaz0 compression and decompression
Reference
- Yaz0 – ZeldaMods wiki
- Yet Another GameCube Documentation, chapter 16 – Yay0 and Yaz0