git clone https://github.com/mewspring/pak
cd pak
go install ./cmd/pak_dump
go install ./cmd/zel_patch
go install ./cmd/zel_dump
go install ./cmd/map_dump
# Extract PAK archive.
pak_dump -listfile listfile.json X.PAK
# Patch broken ZEL images.
zel_patch
# Convert ZEL images to PNG format.
find ./_dump_/X -type f -name "*.zel" -exec zel_dump -pal _dump_/X/core/core.pal {} \;
# Generate tileset sprite sheets.
./_scripts_/gen_tilesets.sh
# Convert MAP files to TMX format.
map_dump _dump_/X/tilesets/map_*.map