HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

A Query about VJASS, Libraries and Code-Obfucation

10-11-2008, 04:01 PM#1
Trithilon-V2
Hi, I need an answer from Vexorian about the compatibility of his Map optimizer and VJASS code.
As we know that VJASS has functions like "requires" or "needs" to define function dependency. More over we have libraries in VJASS to support calling of functions globally.
However, the Code-obsfucation in the vexorians map protector, works by scrambling code to make it difficult for humans to read. (Thats what i think...)
So basically wont that destroy the function dependency?
Or do the new versions of Vexorians optimizers support scrambling vjass code safely?

Thanks.
10-11-2008, 07:09 PM#2
Vexorian
Quote:
Or do the new versions of Vexorians optimizers support scrambling vjass code safely?
The map optimizer doesn't touch vJass code, (not like it needs to)

Quote:
the vexorians map protector
In the what?
10-11-2008, 08:55 PM#3
Trithilon-V2
Quote:
the vexorians map protector
Sry i meant map Optimizer.....

Basically VJASS is what we write in a VJASS editor....and Newgen later converts the VJASS script to JASS while saving the map.
You said...
Quote:
The map optimizer doesn't touch vJass code, (not like it needs to)

So, if Code-Obfuscation does'nt touch the script.
Then how does it scramble the code?
Are my concepts wrong/unclear? Please let me know how if yes.

Thanks.
10-11-2008, 09:07 PM#4
Vexorian
Quote:
Basically VJASS is what we write in a VJASS editor....and Newgen later converts the VJASS script to JASS while saving the map.
Yes, the optimizer doesn't touch vJass code, it just processes the Jass code after it was compiled by vJass, so this doesn't matter.
10-11-2008, 09:16 PM#5
Trithilon-V2
I get it, so you mean the Optimizer just Replaces the Useless BJ's and functions of the complied script and renames the functions and does'nt change the physical positions of the functions (Thus preserving the function dependency). Thx Btw. +Repped
10-11-2008, 09:19 PM#6
Vexorian
...
function dependency is not a vJass concept, vJass simply adds libraries to make the dependency easier to deal with in a modular world. But even in Jass some functions need other functions, so the optimizer won't remove a function that is needed by something else (unless it for examples manages to inline it, but that's another story)
A Query about VJASS, Libraries and Code-Obfucation - Wc3C.net