AtlusScriptCompiler

From Amicitia Wiki
Jump to navigation Jump to search
AtlusScriptCompiler
Purpose BF, BMD editing
Interface Commandline
Games P3, P4, P4G, P5, Nocturne
Download Latest Build

AtlusScriptCompiler is a program created by User:TGE as a part of his AtlusScriptToolchain. It can be used to convert .BF (binary flow) scripts into editable .flow documents by decompiling them. It can also Compile them back into BF.
Similarly, it supports conversion of .BMD (binary message data) to and from an editable .msg document.

Usage[edit]

The compiler uses Libraries for each game that define the functions and their parameters. In order to create a library, function signatures must be dumped from the game using a script like this one.

Decompiling[edit]

Supply the following commandline arguments to AtlusScriptCompiler.exe. The following uses Persona 5's BFs as an example:

BF to Flow[edit]

AtlusScriptCompiler.exe input.bf -Decompile -Library P5 -Encoding P5
Note: This also automatically converts BMD files contained in the BF to msg

BMD to Msg[edit]

AtlusScriptCompiler.exe input.bmd -Decompile -Encoding P5

Compiling[edit]

Supply the following commandline arguments to AtlusScriptCompiler.exe.

Flow to BF[edit]

AtlusScriptCompiler.exe input.bf.flow -Compile -OutFormat V3BE -Library P5 -Encoding P5
Note: This also automatically converts referenced msg files to BMD and includes them in the new BF

Msg to BMD[edit]

AtlusScriptCompiler.exe input.msg -Compile -OutFormat V1BE -Library P5 -Encoding P5