AbsurdlySuspicious / sg-sprite

Sprite/character (.lay files) decoder for MAGES engine (Steins;Gate 0, Chaos;Child, Steins;Gate Steam Edition, etc)
Apache License 2.0
16 stars 1 forks source link
binary-format decoder games unpacker visual-novel

sg-sprite

Sprite layout parser for MAGES engine.

This app restores original (full and uncropped) 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 or someone else test (and fix if needed and possible) the parser for other titles. If you find out that it works (or doesn't work) with non-listed games built on mages engine, feel free to submit PR or issue.

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.

FAQ

-

Compatibility list

These titles are known to work, but others might work too (see top of readme)

Install

Builds for Windows and Linux are available at Github releases

There's also AUR package available for Arch Linux.

Note that this app has no gui. You should run it from terminal (or cmd.exe on windows). Run sg-spirte --help for details on usage.

Usage example:

Build

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