HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Heavy Locker

05-17-2004, 08:05 AM#301
Yorixz
Well, it works for let's say 50%, I realy cant open my maps anymore, but I can open them in the worldeditor and change them, but if I open them in wacraft they give a fatal error ("Can't read the memory")... :(
05-19-2004, 03:52 PM#302
DeadByDawn
Would it be possible to optimize the wts file? 1.15 seems to add unnecessary comments.
05-22-2004, 03:45 AM#303
DragonMaster777
Hey BlackDick can you do me a favor i got a map that for some reson is like 4mb big and i cant seem to get it to go smaller is there anyway i can send you my map and you make it small for me to play? btw i dont have and TFT updates nor do i want to cuz me and my friends like the org ver. I tried to send you the map before but that old email address would not take it ? please help me with this ive work on this map it is my first and took me a month to do but to big to run in mulitplayergame. o_O
05-22-2004, 03:11 PM#304
BlacKDicK
Quote:
Hey BlackDick can you do me a favor i got a map that for some reson is like 4mb big and i cant seem to get it to go smaller is there anyway i can send you my map and you make it small for me to play? btw i dont have and TFT updates nor do i want to cuz me and my friends like the org ver. I tried to send you the map before but that old email address would not take it ? please help me with this ive work on this map it is my first and took me a month to do but to big to run in mulitplayergame.
That email got ****ed up with viruses/spam, I am not using it anymore. Off course you could send me your map on another email, but I won´t be able do much about it since I don´t have a stable/wotking versions of HL right now. Wait for the next version. I don´t like having release dates, (maybe next week´s friday/saturday, who knows?) but I can tell you this: I got some free time so I will spend this weekend and the following week coding on it to get it released ASAP.

Quote:
Would it be possible to optimize the wts file? 1.15 seems to add unnecessary comments.
Yes but I will probbly add this feature in future versions.

The next version will not have all the fetures I wanted (like the WAV-MP3 encoding and the new Mpq library) and will also have some features removed. The current version is damm bugged, so I am removing some things and I will be adding them back later on. I want to have a stable version before adding new features. This what I have in mind:

* Remove all my JASS optmization routines and use the same ExtProtect is using.
* Remove the "read only" protection scheme. It will have only one protection scheme and the user will be able to include (or not) a password-protected "restore/backup" inside the map, to restore tha map later on, as ExtProtect does. The "read only" protection is pretty useless and I am also developing that way so HLocked and ExtProtected maps can be Restored with either of those tools.
* Remove the SLK optmization. This is pretty useles now since WE got the ability editor. If a user is using SLKs my advice is simple: remove those comments from the slks and you will get almost the same thing as the current "SLK optmization" is doing.
* Some options like "include war3map.imp" will be removed and other are going to be intrinsic. Again, this is done to make HL compatible with ExtProtect.
* Move all the "hard" code to C++ in a external HeavyLocker library, so any updates will be easier to deploy and this will also let other ppl use/develop/contribute with that library.
* Use the IJG jpeg routines instead of those from Intel (Ijl15.dll) so this external library will not be required anymore.
* Use SFMpq routines as a static library so the external SFMpq.dll will not be required anymore.
* Add a "WAV padding" routine to help the compression of waves whenever using non-standard (3) mpq block sizes.

That is it. The next version is going to be an pretty much an "ExtProtect" with my enhanced MPQ routines and the minimap/blp optmization. Off course some features are getting sacrificed in order to make it more stable and compatible with ExtProtect. I will eventually add some of the current fatures back or even new features, but as I stated above, I want to release a stable version ASAP.
05-22-2004, 03:20 PM#305
Vexorian
Could you make some option to make a txt file get obfuscated?
05-22-2004, 10:25 PM#306
DragonMaster777
What address can i send it to and thanks for replying
05-23-2004, 05:01 PM#307
PitzerMike
Hey, BlackDick, just wanted to tell you that I have a working VB wave class to encode wavs. It uses lame_enc.dll and a small C++ wrapper dll to make it work in VB. You can have that code if you like, but I'd suggest it for later versions.

Fro now I also think that a simple, stable build would be cool.
05-24-2004, 01:42 PM#308
BlacKDicK
Quote:
Hey, BlackDick, just wanted to tell you that I have a working VB wave class to encode wavs. It uses lame_enc.dll and a small C++ wrapper dll to make it work in VB. You can have that code if you like, but I'd suggest it for later versions.

Fro now I also think that a simple, stable build would be cool.
Thnkz Pitzer, but I won´t need that. I will use lame of course ^_^ , but staticaly linked inside the new HeavyLocker DLL. The VB stuff in this version will be minimal, just a stupid GUI to the dll functions coz I don´t know how to quickly design a GUI with MSVC. Later on I will move the GUI to C++, but for now I am using VB for that since I want to get it working asap.
Things are going nice. I´ve already wrapped SFMpq stuff and added some new functions for the Mpq interface. I still need to work on the BLP stuff and on the new protection procedures and finally do some testings before releasing it.
05-26-2004, 08:43 AM#309
Extrarius
I really suggest you don't just rip out parts of ExtProtect's code and use it in your application. While I don't have any problem with you doing that, ExtProtect contains some of the worst code I've ever written and it _REALLY_ isn't the optimal way to do things. If you plan on continuing to support heavylocker and add new features/etc, you should really try to find a cleaner way to implement the jass obfuscation. Just about every single bug ExtProtect has had was due to the really poor code (and coding style) in the obfuscation routine.

Also, if you store backups, I suggest you add one step to the encryption section that will make it infinitely more secure (not that mine is easy to break, but it isn't impossible from what I've learned about cryptography since then): instead of just encryption the stuff block by block and writing it out, XOR the block with the encrypted text of the previous block before encrypting it. This makes the backups not compatable between programs, but it also makes them much more difficult to analize and decrypt. Note that the vulnerabilities this problem in ExtProtect creates aren't really that severe since there are no cryptoanalysts trying to break maps(and most people don't store backups anyways from what I've seen), but it means it is easier to break the encryption that it needs to be.
If it was a serious problem, I'd fix it in ExtProtect, but like I said its not, and I'm not really into WC3 anymore so I'm only fixing real bugs to avoid messing things up further.

If you want to talk to me about any of it, you can reach me at the email in the link in my sig. (I probably won't notice any reply because I just search these forums for 'ExtProtect' once every several months)
05-28-2004, 03:38 PM#310
Acaykath
One of the models in my map disappears whenever I compress it with heavylocker... Just one though... Any Idea what is causing this??
05-31-2004, 10:59 AM#311
BlacKDicK
Quote:
I really suggest you don't just rip out parts of ExtProtect's code and use it in your application. While I don't have any problem with you doing that, ExtProtect contains some of the worst code I've ever written and it _REALLY_ isn't the optimal way to do things. If you plan on continuing to support heavylocker and add new features/etc, you should really try to find a cleaner way to implement the jass obfuscation. Just about every single bug ExtProtect has had was due to the really poor code (and coding style) in the obfuscation routine.

I see you point Ext, and I will try to improve that code with time: I am planning to rewrite the obfuscate routine later on. As for the encryption stuff I don´t think that would be needed. I think that if somenone can spend time trying to break the current encryption scheme then he/she could rebuild the jass code by hand: it is easier than trying to break the encryption.

Quote:
One of the models in my map disappears whenever I compress it with heavylocker... Just one though... Any Idea what is causing this??
HL always rebuild the MPQs/MAPs from scratch, this means it needs to know what is inside the original map/mpq before trying to create the opt version of it. That´s why we need those listfiles. If any file is inside the original mpq is unknown, HL will ignore it when trying to create the new version of it. This could be causing this problem. I could also be one of the HL bugs, since it is outdated by now, but it is much more likely to be the unknown problem, since you said it is only happening with one file.
06-02-2004, 01:18 AM#312
robotoer
i'm sure that heavy locker works very well, but i have the old version 0.2.8. Is there any new versions that work for wc3 v1.15? I really need them for the map i'm working on because the advanced triggers and spell enhancer in the we unlimited feature adds about 250kb to the map. Thanks and great program. :D
06-02-2004, 11:22 PM#313
Vexorian
just be patient, instead of deleting your post and posting again lots of times
06-03-2004, 12:27 AM#314
robotoer
Quote:
Originally Posted by Lord Vexorian
just be patient, instead of deleting your post and posting again lots of times
Sorry :( i was testing my new signature :>
06-05-2004, 05:53 PM#315
Kolibri
Sounds great that you are working on a new version, BlackDick. ^_^

I've been unable to use HL for quite some time now.