Map Script and Data Obfuscation
Project for obfuscation of Galaxy scripts and map data
January 5th 2011
A first version of the Galaxy script obfuscation tool has been released. It is command-line only ( through .bat files ), there is no graphical interface. You must manually unpack the MapScript.galaxy file from your map, run the tool on it, and put the .galaxy file back into the map. Use a program like MPQEditor to do so.
The alphabet is configurable as well as several other options. Very soon, there will be a graphical interface around the command-line program. The program will also be able to work with SC2Map files directly, without having to manually extract the Galaxy script file and insert it back.
This program is released under the GNU General Public License v3, the ANSI C99 source code is included in the package.
A command-line data obfuscation tool is also fully functional although with limitations, and is not yet released.
It replaces actual string values if the value is equivalent to some variable name somewhere.
Like I have a variable called "a" and it was replaced by "eHQ"
I look for a string value that had "a" and noticed it was also replaced by "eHQ"
I guess this could be fixed if I manually replace all the replaced strings /w the correct value but that'd be a pain everytime.
I know there will be cases where it has to replace string values, like for TriggerCreate() since the param name is a trigger's name
How do you plan to work with SC2Map files directly? I am also working on a tool that will need to read SC2Map files directly, and I am not sure how MPQEditor does it. I have a good amount of programming experience in C/C++, though I have little experience in reading archives.
Where is the data one?
Things to keep in mind.