Skip to content

Command Line Syntax v1

Gaticus Hax edited this page Sep 5, 2018 · 1 revision

NOTE: This is an older version of the command line syntax and is no longer used.
Refer to the User-Documentation page for the latest version.

Basic Usage

By default, you can simply drag and drop an MBIN or EXML file onto MBINCompiler.

MBINCompiler will detect if the file is an MBIN or an EXML and will decompile or compile appropriately. In either case, the output file will have the same name and location as the input file but with opposite extension.

NOTE 1: You CANNOT drag multiple files to MBINCompiler. It assumes that the 2nd path is the output location and will overwrite the file!

NOTE 2: It's also possible to drag a folder to MBINCompiler and it will process all files but this behaviour is UNDEFINED for drag and drop. A separate output location must be specified on the command line.

Command Line Syntax

MBINCompiler.exe [/? | /help | --help | -h]

Display the command line help info.

MBINCompiler.exe [-v | --version]

Display the version of MBINCompiler (libMBIN).

If the -v option is used, the version info will be displayed in compact format, suitable for automation.
If the --version option is used, the version info will be displayed in a human-friendly format with text description.

MBINCompiler.exe [InputFilePath] [-v | --version]

Display the MBINCompiler (libMBIN) version that was used to compile the MBIN file specified at InputFilePath.

If the -v option is used, the version info will be displayed in compact format, suitable for automation.
If the --version option is used, the version info will be displayed in a human-friendly format with text description.

This only works for MBIN files that have been compiled with MBINCompiler v1.13+.
All vanilla and pre-1.13 MBINs will report version 0.0.0.0.

MBINCompiler.exe [InputFilePath]

For drag and drop. Decompile the MBIN or compile the EXML specified by InputFilePath.
The resulting output file will written to the same name and location as InputFilePath with the appropriate extension.

MBINCompiler.exe [InputPath] [OutputPath]

If a file is specified, the behaviour is the same as above except the resulting output file will be written to OutputPath.

If a folder is specified, MBINCompiler will do 2 passes.
On the first pass it will decompile all MBIN files in the folder, including subdirectories.
On the second pass, MBINCompiler will compile all the EXML files in the folder and subdirectories.

NOTE:
This will overwrite all MBIN files with recompiled versions! Some files may not recompile correctly and you will break your assets.
This option is not recommended. Make sure you have a backup of your assets before using this option!_