Skip to content
Gaticus Hax edited this page Sep 18, 2017 · 11 revisions

Description

MBINCompiler is a modding tool for No Man's Sky (NMS). It allows NMS modders to convert MBIN assets from the normal binary format to a more human friendly text/EXML format that can be edited in a text editor then converted back to binary format and used by the game.

General 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.
See the Command Line Syntax section below for advanced options.

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!_

Clone this wiki locally