HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Heavy Locker

09-10-2003, 11:28 PM#181
dataangel
Quote:
Originally posted by BlacKDicK
It is not actually a problem with underscores, it is a problem with similar variable names. For an example:
rect abcd
rect abcd_ef
rect abcd_more_text_here
When the obfuscator reads the "abcd" variable, it will then replace all "abcd" instances inside the WHOLE script, hence also changing the second and the third variable names. Then, when it reads the second variable, it´s name is already changed and no changes are made. I will try to solve this adding a "second pass" to the variable obfuscate code.


I think the best solution would be on the first pass to have it check to make sure that abcd is surrounded by characters that aren't permitted inside variable names (spaces, parenthesis, etc.). Or just check the front of the line to see if it's declaring a variable. If not, don't change it.
09-11-2003, 09:04 AM#182
BlacKDicK
I added some checks to it on 0.2.6, dataangel. In this new version I got your map to work (tested only if the map opened on single player, did not actually played it). Nota that the new "PurgeConstants" stuff read those values directly from the game´s scripts, so if it is unable to find the game´s files, "PurgeConstants" will not show up.
BTW, your map´s "Captain Mine Walk" ability is screwed. I guess you missed a "|" there.
09-12-2003, 12:46 AM#183
dataangel
Quote:
Originally posted by BlacKDicK
I added some checks to it on 0.2.6, dataangel. In this new version I got your map to work (tested only if the map opened on single player, did not actually played it). Nota that the new "PurgeConstants" stuff read those values directly from the game´s scripts, so if it is unable to find the game´s files, "PurgeConstants" will not show up.
BTW, your map´s "Captain Mine Walk" ability is screwed. I guess you missed a "|" there.

That's been fixed since I sent it to you ;)

The new version works great, and it lowers my map size by 119KB =)

Can't wait until you think up new cool features to add!
09-13-2003, 05:34 AM#184
dataangel
Eh, I'm having two problems.

I'm having some wierd problems with obfuscate -- sometimes it works at level 3 but not at level 2. No idea why.

The second is that the minimap preview is really inaccurate. I set it to 50% for my map and in game it shows up 10,000 times crappier than in preview ;)

Also, just thought of another script optimization (something to add if you're out of features ;)) -- look through all the ifs, and find stuff like:

Code:
if( myfunc(unit) == true) then
 ....
endif

And change it to:

Code:
if( myfunc(unit) ) then
...
endif

This should slice off a ton of characters for complex maps =) Changing "== false" to use not() isn't really much of an improvement though, so I'd just do it for true.
09-14-2003, 05:04 PM#185
dataangel
Definite Bug: If you set it to full lock, set the obfuscate level to something greater than 0, then set it to no lock, it still obfuscates.

Wierd *** bug: Also, I'm e-mailing you another copy of my map -- in its current state if you use no lock, preview, OR full, any one of them, Warcraft crashes when you select the map (you don't even have to open and play it). I have no idea why. I tried turning off each map optimization at a time, and it still crashed each time. What's interesting is that unchecking clean slks boosted it from reducing by 19% to reducing by 26%, which is odd by itself, but it's even wierder because my map has no imported slks! :P

Then I experimented with every single option I could, but it was impossible for me to save the map with heavylock without the game crashing when I selected the map in the list.

I'll try one of the older versions of heavylock and see if this still happens....

Update: 0.2.2 doesn't have this problem with preview lock (didn't try heavy), but 0.2.5 does. I don't have any other old versions to test with though.
09-14-2003, 08:05 PM#186
Starcraftfreak
About ijl15.dll:
Quote:
Originally posted by BlacKDicK
It is the same. Of course I could make the HLocker search for it inside W3 install path, but I can´t be 100% sure ifthe user has this DLL, so I decided to include it anyway.
You can extract it from war3.mpq.

Quote:
Originally posted by dataangel
This should slice off a ton of characters for complex maps =) Changing "== false" to use not() isn't really much of an improvement though, so I'd just do it for true.
1.) It is a slight improvement.
2.) In some cases it makes the script more difficult to read, so it also adds a little protection.
09-15-2003, 03:30 AM#187
BlacKDicK
Quote:
You can extract it from war3.mpq.

Yeah I know. But I would need to locate the MPQ. Of course I can grab the W3 InstallPath from the Windows Reg (HLocker is already doing that for some other things) but I think it is better to just include the DLL whithin the package anyway.

dataangel, I won´t try to improve the JASS script anymore. The improvements are small and hard to create/develop. I´ll try to finish the one´s I´ve created and fix the bugs, but I won´t create any new improvements.

Quote:
Definite Bug: If you set it to full lock, set the obfuscate level to something greater than 0, then set it to no lock, it still obfuscates.

I´ll try to fix this.

Quote:
Wierd *** bug: Also, I'm e-mailing you another copy of my map -- in its current state if you use no lock, preview, OR full, any one of them, Warcraft crashes when you select the map (you don't even have to open and play it). I have no idea why. I tried turning off each map optimization at a time, and it still crashed each time. What's interesting is that unchecking clean slks boosted it from reducing by 19% to reducing by 26%, which is odd by itself, but it's even wierder because my map has no imported slks! :P
K, I'll tryto identify this.
09-15-2003, 07:38 PM#188
Starcraftfreak
Quote:
Originally posted by BlacKDicK
Yeah I know. But I would need to locate the MPQ. Of course I can grab the W3 InstallPath from the Windows Reg (HLocker is already doing that for some other things) but I think it is better to just include the DLL whithin the package anyway.
I just wanted to help you keeping the download file size down.
09-20-2003, 10:33 PM#189
Vexorian
Heavylock is my friend too, just posting here to subscribe to the thread and shameless bumping...

Just to avoid myself missing the newest version you know...
09-21-2003, 04:41 AM#190
Sen
Great job so far BlackdicK. What language are you using to program it in?

And by the way guys, you can subscribe to a thread without posting in it
09-21-2003, 02:20 PM#191
Dyne
I've been making experiments with HeavyLocker, locking several maps, and than unprotecting them.
The results were pretty wierd: On some maps, unprotecting would simply makse the triggers disapear, on others, it didn't protect at all, on others, it crashed when i tried to unprotect, and on the last map, it crashed the World Editor.

The thing is, that in all those maps, i used the same locking method, and the same version of heavy locker.

Do you know where this wierd behaviour come?
09-22-2003, 03:07 AM#192
dataangel
Quote:
Originally posted by Dyne
I've been making experiments with HeavyLocker, locking several maps, and than unprotecting them.
The results were pretty wierd: On some maps, unprotecting would simply makse the triggers disapear, on others, it didn't protect at all, on others, it crashed when i tried to unprotect, and on the last map, it crashed the World Editor.

The thing is, that in all those maps, i used the same locking method, and the same version of heavy locker.

Do you know where this wierd behaviour come?


How are you 'unprotecting' them?
09-22-2003, 10:36 AM#193
Sen
Unprotecting maps is no big secret.

He might have done it with WinMPQ, or with the only good map protecting program that I won't mention here.

It is quite possible to make a protector that dis-allows opening the map in the world editor.

However, I don't think its possible to actually stop someone from editing a file inside the map using something like winMPQ is it?
09-22-2003, 12:20 PM#194
Vexorian
Ha ha, unprotecting maps locked by this program seems imposible to me, even if they use mpq editing to just change the name of the author in my map, the new map protection invented by AIAndy will make the map crash

Heavy locker takes out files required by WE to work, I don't think that a newbie can do a lot of things with a non triggers, no cameras and no other stuff map.
09-23-2003, 03:47 AM#195
dataangel
I know it's no big secret -- but if you're not stealing artwork, you're trying to steal triggers -- and no .wtg and an obfuscated script make that not worth it.