Finally, here it is a polished, mastered, perfectioned, improved version of BaSS, Baro’s Script Compiler!
In case you haven’t heard of it (It was already available as Beta), BaSS is a set of tools that let you define an script language and compile scripts with it. The most immediate use of this is to write event scripts, e.g.: what happens when you speak to someone. But, it can be used for anything you find it useful for.
BaSS currently consists of three tools:
Luthier: Lets you define and describe your language: a set of commands and constructs (premade script fragments) that your scripts will use, as well as other options concerning how the script is compiled (endianess, size of some things, etc).
Performer: Compiles the scripts you make, using the references you’ve defined with Luthier.
Technician: Decompiles a script compiled with Performer, in case you need to retrieve a valid source that, when compiled, produces the same script.
The final results, the compiled scripts, contain an array of bytes that can be read by your program to run the script.
The program comes with a manual where this is explained more deeply in the introduction, and then details of everything the tools are capable of. At the end of the manual, there’s a suggestion section which can help you designing your command set and writing your script running function.
(It is likely that I soon write a template language and a C function to read it, including if commands, etc)
(Changes from Beta version posted in first comment)
Categories : BaSS, Tools