Open arathron opened 5 years ago
Think this might be out of scope for GB Studio sorry. @thomas-alrek has created a CLI tool at https://github.com/thomas-alrek/gb-studio-cli You could potentially build python scripts to create/modify gbsproj files (which are just JSON) and then pass them through the CLI to create ROMs
What I could consider, would be to create a kind of "preprocessor" language, that compiles into valid GB Studio JSON.
I don't write Python myself though, so it would probably be JS / TypeScript based
When I wrote the comment I didn't know all I needed was a Json file and the CLI tool. Maybe I'll try to program my python scripts that compile to the JSon. Of course if I do I'll let you know and publish the code on github. Or to thomas preprocessor language. To some language that we could consider the standard language of gbstudio. I think that is the json file by now. Thanks for your time. Gbstudio is awsome!
i wish a support for c# and .net framework for gb studio like another programming language
@rodrigomassanori what would be the use case for that? C# and the .NET framework would never work on a GameBoy obviously. And since the rest of the project is implemented in Javascript, it would be possible to create a plugin system with JS.
Could you potentially create a straight gbdk cor assembly scripting function?
cling based C++ as scripting language / hot code reload Why? Able to run C++ script in runtime or compile it for max speed ( as in example https://github.com/derofim/cling-cmake ) Also: May be used to improve modules compile time
HOT code reload possible approaches:
store app state fix cling undo for files https://root-forum.cern.ch/t/loading-unloading-class-as-interpreted-macro-in-cling-multiple-times/32976/2
execute cling code to change callbacks & variables nested cling::Interpreter with multiple cling::MetaProcessor IDK how to do it, but you can create child cling::Interpreter
Old thread but I came here because I was thinking of this topic. Since gb studio is written in javascript and since like me many people know at least javascript, I would love to be able to program gameboy games in javascript, but not exclusively (abandoning the editor for a code only tool). Just for when cumbersome moments happen in the drag and drop styled editor.
Last night I was putting together a long custom event and it was tedious. I would have loved to have been able to dip into code and just type up the chain of events and ultimately it would have output the json to be automatically inserted into the project file.
Because of the way the id's are handled and how they are linked/duplicated in the caller of the event in the project file it means that rolling my own json in the project file is error prone for a human to do.
Is your feature request related to a problem? Please describe. A feature request.
Describe the solution you'd like A python api to interact with gbstudio.
Describe alternatives you've considered Other scripting languages would be nice too.
Additional context I could then for example program a gb game from any text editor, for example in android using vim and termux, not being attached to a pc.