mlb-tool: Mainly used to produce override MLB files to fix or improve existing materials.
Current version: 0.4. This tool was formerly known as gen_matlib.
Download here.
Code:
Basic usage:
mlb-tool --dump|-d --in|-i MLB-FILE [--out|-o CSV-FILE]
[--categories|-c TXT-FILE|t3|dx2]
mlb-tool --generate|-g --in|-i CSV-FILE [--out|-o MLB-FILE]
[--categories|-c TXT-FILE|t3|dx2]
[--orig-mlbs|-m MLB-DIR]
mlb-tool --help|-h
Commands:
--dump|-d Read a matlib file, write the contents to a CSV file.
--generate|-g Read a CSV file containing material definitions, generate
a matlib file from the contents. To modify existing
materials, use the --orig-mlbs option.
Options:
--in|-i FILE An existing MLB file for --dump, an existing CSV file for
--generate.
--out|-o FILE|DIR A new CSV file for --dump, a new MLB file for --generate.
If the path supplied is a folder, or if this option is
omitted, the filename will be derived from the input name.
Existing files will be overwritten without warning.
--orig-mlbs|-m DIR Path to existing matlib files. When generating a matlib,
empty fields in the CSV will be filled in from existing
materials of the same names, which are read from these
files. Without this option, empty fields get default
values.
--categories|-c FILE In CSV files, use (and expect) category names from a
supplied text file. The file must contain each name on a
separate line. Names are case insensitive. Lines starting
with "//" and empty lines are ignored.
For T3 and DX2 no file is needed - "t3" or "dx2" can be
entered instead. Without this option, T3 category names
will be used.
--unknown|-u Include four unknown values, which may or may not be
material parameters. Column headers in CSV dumps refer to
the hex offset relative to the start of the material data
blocks in the MLB files.
--version|-V Print version info and exit.
--help|-h Print this message and exit.
TODO: Examples.