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.
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.
BF to Flow
BMD to Msg
AtlusScriptCompiler.exe input.bmd -Decompile -Encoding P5
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