HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Can you obfuscate the Blizzard functions?

06-19-2004, 02:32 AM#1
Squashy
I'm writing a little obfuscation program to save as much space as possible in the custom script. Is it possible to obfuscate blizzard's functions?

Does any other obfuscator already obfuscate blizzard's functions?
06-19-2004, 12:29 PM#2
Extrarius
Quote:
Originally Posted by Squashy
I'm writing a little obfuscation program to save as much space as possible in the custom script. Is it possible to obfuscate blizzard's functions?

Does any other obfuscator already obfuscate blizzard's functions?
Because the script is text, it compresses very well inside the mpq archive. Therefore, saving space isn't really a good reason to obfuscate the jass. It is possible to obfuscate the functions in blizzard.j by replacing them with their complete code (patched into the calling code to have proper local variables and to return/not properly), but it would be a lot of work and not really worth it. If I was still adding features to my protector, I might do a limited form of this to make unprotection more difficult, but doing a full-scale version just isn't worth it.
06-19-2004, 10:55 PM#3
Vexorian
Quote:
Originally Posted by Extrarius
Because the script is text, it compresses very well inside the mpq archive. Therefore, saving space isn't really a good reason to obfuscate the jass. It is possible to obfuscate the functions in blizzard.j by replacing them with their complete code (patched into the calling code to have proper local variables and to return/not properly), but it would be a lot of work and not really worth it. If I was still adding features to my protector, I might do a limited form of this to make unprotection more difficult, but doing a full-scale version just isn't worth it.
You should only do that if you already have blizzard.j imported in your map

Anyways if you are only interested in map space check my obfuscator: http://www.wc3campaigns.com/showthread.php?t=57247