Galaxy Obfuscator is a simple program that can obfuscate your script, making it unreadable by humans. I does not change how the script works.
Galaxy Obfuscator will:
Remove all comments and unnecessary whitespaces
Replace all identifiers (variable names, functions) with random sequences of l (lowercase L) and I (uppercase i)
Obfuscates all integers and strings
Galaxy Obfuscator has GUI and works in a fully automated fashion. After selecting a map you want to obfuscate, it will create in the same directory a file named <YourMapName>Obfuscated.SC2Map. You can also run it from the command prompt, with your map name as the argument.
The program will change only the "MapScript.galaxy" and "Triggers" files in the map. It will not obfuscate any libraries nor dependencies you may be using.
Note that an obfuscated map file will crash the editor if you try to open the triggers in it.
There is an example of Galaxy Obfuscator in action (it is the obfuscated Hello World script):
Eh cool, I wrote one that does just about the same thing.
Though I think you should reduce the names of all identifiers to the minimum length given the allowed character set (no point in making things bigger). What library/code you use to open the map MPQ?
I also wrote an obfuscation program for data but I never released it, since it requires people never to use implicit references with added prefixes/suffixes, and mostly I didn't want to deal with ton of people saying "It broke my map!".
Has anyone tested this on their live maps? I'd like to consider using this for NOTD. Zeedu should keep updating this and make it similar to Vexorian's wc3optimizer. Thanks.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Link: www.sc2mapster.com/assets/galaxy-obfuscator/
Galaxy Obfuscator is a simple program that can obfuscate your script, making it unreadable by humans. I does not change how the script works.
Galaxy Obfuscator will:
Galaxy Obfuscator has GUI and works in a fully automated fashion. After selecting a map you want to obfuscate, it will create in the same directory a file named <YourMapName>Obfuscated.SC2Map. You can also run it from the command prompt, with your map name as the argument.
The program will change only the "MapScript.galaxy" and "Triggers" files in the map. It will not obfuscate any libraries nor dependencies you may be using.
Note that an obfuscated map file will crash the editor if you try to open the triggers in it.
There is an example of Galaxy Obfuscator in action (it is the obfuscated Hello World script):
Eh cool, I wrote one that does just about the same thing.
Though I think you should reduce the names of all identifiers to the minimum length given the allowed character set (no point in making things bigger). What library/code you use to open the map MPQ?
I also wrote an obfuscation program for data but I never released it, since it requires people never to use implicit references with added prefixes/suffixes, and mostly I didn't want to deal with ton of people saying "It broke my map!".
Has anyone tested this on their live maps? I'd like to consider using this for NOTD. Zeedu should keep updating this and make it similar to Vexorian's wc3optimizer. Thanks.