Interesting. I haven't looked into the specs for war3map.w3u/t/a files yet. I might try that out, it sounds like an interesting project. Maybe I'll work on this tomorrow if I get some time. I'll obviously make it clean the rawcodes too. The existing "spec" is bad so I'll just redo it from scratch.
Yeah I think I will separate out the cheatpacks into a folder so that they can be updated/modified as needed. Should have done so from the start.
The war3map.wtg is the file which stores visual triggers. It's a world-editor only file so it gets deleted by optimizers which is why maps have an empty trigger editor when they get deprotected. The spec of war3map.wtg is known and so it's possible to write code to read/write wtg triggers. Therefore in theory there's nothing stopping us from writing a tool to bring back GUI triggers from JASS, or bringing back JASS triggers from a protected map.
Besides the fact that it is hard, of course.
I can likely do it but it's a significant amount of work.
Quote:
But will it Deprotect Dota and restore the triggers?