Inspired by Niklas Frykholm’s series on a
data-driven system for vector fields, I wanted to share a technique I use for scripting which I call "
data-build scripting". It’s an admittedly poor term because it's not about scripting your art pipeline or data-build system, it’s about leveraging your build system to create your own powerful scripting languages.
I’ll tell you a bit about Nikas’ system, then introduce data-build scripting, and wrap up with some source code using Google’s protocol buffers to create a custom scripting language.
The advantage of data-build scripting is that you can create highly-targeted domain-specific languages that are an integral part of the very same data your scripts act on. The disadvantages are the same as any custom scripting language: no script level debugger, no general purpose tools for writing your scripts, and a new class of possible bugs related to script processing and memory management.
See full post...