GB Metal Gear Solid: Ghost Babel script tool. Game uses MTE and LZ compression for text. This tool can work with it.
Synopsis:
mgsgbLz -r <input>
mgsgbLz -ra <inputs> <weights>
mgsgbLz -d -b <input> <offs>
mgsgbLz -d -s <input>
mgsgbLz -c -i <inst> <fst> <ptr>
mgsgbLz -c -b <input>
mgsgbLz -t <input>
Options:
-h
-v
Description
-r Rebuild dictionary from plain script file.
-ra
-d -b
-d -s Decode full script from input gameboy ROM.
-c -i
-c -b Compress one input plain binary block with LZ. Useful for tiles/nametables binary compression for further ROM insertion.
-t Test check input plain script for various issues. In almost all cases you don't want line length to be more than 24 symbols. In normal game script (everywhere, except Instance #00), there shouldn't be more than two lines with [nl] symbols. You should use [clr] or [scrl] for next newline. All valid symbols are mentioned in table.tbl. -t command will warn you in case you violate any of those rules. Also during compression, tool will warn you if your instance will not fit WRAM or appropriate ROM space.
Options:
-h Show help.
-v Show version.
See additional files in release archive. Usage examples are in compress.bat file. Recommended translation scheme:
translate script instance
mgsgblz -t "instance #XX.txt" (checking and correcting possible errors)
buildMteDictionary.bat (rebuilding table from translated instances)
compress.bat XX (for comperssion and insertion newly translated instance)
check translation
go to 4
Build:
stack setup
stack build