Jass Obsfucation

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

dead_or_alivex
Newcomer
Posts: 11
Joined: September 19th, 2007, 3:45 am

Jass Obsfucation

Post by dead_or_alivex »

I was wondering about the general mechanics of obsfucation of Jass. I tried deprotecting DotA 6.49b, and saw in http://forum.wc3edit.net/viewtopic.php?f=3&t=2522 this topic that the weirdly structured code and function names were due to optimization. Is that what obsfucated code looks like? And is there a way to undo it (besides manually) to make reading clearer?

Object Ids aren't really a problem with the program JJ posted in the thread I linked to, but I was wondering if there was an easier way. Will obsfucation affect custom objects/imported files as well?

Also, how is obsfucation done anyway? I'm quite new to this, and I'm just wondering about all these things. I'm trying to add cheats or anything; it's just this funny general-knowledge-thing I have.
User avatar
Xantan
Honorary wc3edit.net Traitor
Posts: 2507
Joined: February 1st, 2007, 4:11 pm
Location: NEVADA

Re: Jass Obsfucation

Post by Xantan »

wc3mapoptimizer4.5 - Vexorians optimizer is how its done..

the rest of the questions... don't really need answering from me
GhettoChild
Old Wrinkly Member
Posts: 272
Joined: January 27th, 2007, 4:46 pm
Title: OxyContin
Location: Denver, Colorado

Re: Jass Obsfucation

Post by GhettoChild »

Obfuscated code looks like what is going on in notepad in this picture:
Image

You can unobfuscate it by just copying it all and then pasting it into JassCraft. Obfuscation won't mess up anything, it just makes it hard for humans to read. Same with the functions; they are named things like lolololololo to make them hard to read too. You can read more about it here: http://en.wikipedia.org/wiki/Obfuscated_code.
You know why the Yankees always win, Frank?
'Cause they have Mickey Mantle?
No, it's 'cause the other teams can't stop staring at those damn pinstripes.