I started working on developing decompiler for bot binary lumps. I aim for producing sources suitable for Dusk's bot script compiler.
Currently it can produce C-like sources, but they are not very readable. In case you want to try it, latest version is available here.
Java 8 or later installed is required. Example usage:
Code: Select all
java -jar debotc-0.1-SNAPSHOT-all.jar humanbot.lump
To make output compatible with Dusk's compiler, I need a working binary for Windows or Mac. For some reason my builds of it crash with segmentation faults. Could someone build the compiler or may be you already have working binaries?
Compiler sources are available at https://bitbucket.org/crimsondusk/botc
Example simple bot script is attached to this message (not sure if it is really correct), so that you could verify a compiler binary and experiment with it.
ADDED: managed to build the compiler on my Linux machine and it works! So I replaced the previous attachment with an archive containing fixed sample code (for which the compiler doesn't throw errors) and a PK3 with corresponding compiled bot (the bot is broken, probably because some state indexes are wrong). This will be the syntax I will be aiming for with my decompiler.
Spoiler: Bot script example (Open)