Crates.io | sg-sprite |
lib.rs | sg-sprite |
version | 0.3.2 |
source | src |
created_at | 2019-11-25 06:44:06.853474 |
updated_at | 2022-09-18 16:22:11.93487 |
description | Application for restoring Mages engine sprites (Steins;Gate, Steins;Gate 0, Chaos;Child) |
homepage | |
repository | https://github.com/AbsurdlySuspicious/sg-sprite |
max_upload_size | |
id | 184126 |
size | 51,651 |
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.
arc_unpacker --dec=cri/cpk --no-recurse chara.cpk
(it can extract mpk files too: --dec=mages/mpk
).gxt
files instead of .png
(Image 0)
suffix but starting from 0.2.3
sg-sprite will pick them up too, so you should't need to rename them
to match .lay
files names._oX
suffix in output folder. What's this?These titles are known to work, but others might work too (see top of readme)
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:
cd
to directory with unpacked spritesout
)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