Sprite layout parser for MAGES. engine.
This app restores original sprites from .png
and .lay
files found in chara.mpk
archives.
Note that this parser doesn't work with mpk files directly, you need to unpack sprites beforehand.
There's a good tool for this: https://github.com/rdavisau/sg-unpack
Compatible games are listed in the compatibility list below. This list will be updated as soon as I'll test (and maybe fix) the parser for other titles. If you find out that it works with non-listed games correctly, feel free to submit PR or issue. Or patches, if they're not. ¯\(ツ)/¯
You also can read format description here. It's based solely on reverse-engineering of s;g0 sprites and thus is rough and incomplete, but it should give approximate vision of the file structure.
Prebuilts for Windows and Linux are available at Github releases
Note that this app have no gui. You should run it from console.
Run with --help
for details on usage.
Usage example:
sg-sprite -d out *.lay
Install cargo (https://www.rust-lang.org/tools/install)
Run this command in the project directory: cargo build --release
Resulting binary will be in target/release
directory