A database of reverse-engineered formats used by Mafia: The City of Lost Heaven.
Branch: master
Clone or download
Latest commit ce8df7e Feb 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs Add remark field for textdb Jan 31, 2019
parsers Remove junk file Feb 4, 2019
specs Add remark field for textdb Jan 31, 2019
templates Added more stuff Jan 30, 2019
.gitignore Initial commit Jan 30, 2019
COPYING.md Initial commit Jan 30, 2019
Makefile Add compile.sh Jan 30, 2019
README.md Update screencast Jan 30, 2019
compile.sh Make sed more precise Jan 31, 2019

README.md

Mafia formats

This repository contains known reverse-engineered binary format specifications with sample parsers and documentation.

NOTE THAT THIS IS STILL WORK IN PROGRESS!

How to use

To compile the documentation, you need to make sure go-specgen is installed and within your $PATH variable.

Usage: Documentation

Simply run compile.sh to generate the documentation.

Usage: Parser utility

Some formats might have sample read/write tools written, so you can easily read and dump the binary data in various formats. Check out the parsers directory.

To run parsers written in Go language, make sure you have Go installed, then simply:

go run parsers/<format>/go/*.go --file=<path-to-file>

such as

go run parsers/textdb/go/*.go --file=<gamedir>/tables/textdb_cz.def

asciicast

Reference utils output all data into standard output and make use of standard error for error reporting. You can make use of the *nix power to manipulate outputted JSON data easily.

License

This repository is licensed under Apache 2.0 license. See COPYING.MD for more information.