AtlusScriptCompiler | ||||||||
---|---|---|---|---|---|---|---|---|
|
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
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
Supply the following commandline arguments to AtlusScriptCompiler.exe. The following uses Persona 5's BFs as an example:
BF to Flow
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
AtlusScriptCompiler.exe input.bmd -Decompile -Encoding P5
Compiling
Supply the following commandline arguments to AtlusScriptCompiler.exe.
Flow to BF
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
AtlusScriptCompiler.exe input.msg -Compile -OutFormat V1BE -Library P5 -Encoding P5