GML Script Exploder V1

Posted by Alert Games on Nov. 20, 2016, 10:31 p.m.

Like the name?

So i've been working on this tool for about a month, only because I wanted to make it cool and save time. To be honest, I'm a little disappointed it took so long, but I learned a lot and now I have some nice code at my disposal so it wasn't all wasted at least.

Its called the GML Script Exploder

Download Here

My first C# program so I'm guessing you'll need .NET 4.5 in order to run it?

Basically what this does, is take a GML file (from GM8, for instance) that has been exported from GM, and finds each of the individual scripts in that file. (#define script123) I'm using this to make backwards-compatible GM8 scripts that can be parsed out into script files compatible with GM studio, personally.

Then, it can generate all of those scripts back out into individual files. Easy right? But the cool part is, that you can also put those individual scripts into folders, and map the folders into a config XML file, so next time you export the scripts, they will be overwritten in the same directories next time. Nice.

The part that took me a while, was writing a whole helper class and interfaces for the XML/JSON parsing of a class structure to serialize/de-serialize, and making that reusable. I think I may open-source the solution as well. Maybe it'll help some people or I'll receive criticism and change commits from others… Both helpful at the end of the day.

Tell me what you think

Comments

twisterghost 8 years, 1 month ago

So a utility to reproducibly export scripts to set locations? Pretty neato. I could see this being useful for exporting script packages.

Nice thing about GM:S is that the files are all just files, so reaching into the .gmx to grab them (which is just a folder) is easy. I can see the value here for 8.1 though

Alert Games 8 years ago

Yup. Good for GM8.1 although I feel like nobody is going to be using it much longer anyway…

I think the coolest thing about it is that it will match a directory with all subdirectories and files, then store it as a configuration file to export again next time. I think its something I'll probably use again in the future for something.

Alert Games 8 years ago

<Silent Comment>

Updated the exe with a couple of bug fixes with the Match Directory functionality.

In the future, I may make it an option to ignore unmatched files instead of putting them in the main directory.