The best Map Optimizing

the Immortal

I know, I know...
Reaction score
51
I don't know if the place of this thread is here, but I want to ask which is the best way to optimize a map? I have Vexorian's Map Optimizer, Widgetizer & Heavy Locker. Also i know some ways to "protect" the map without program. Can I use the 3 programs and in which order to use them? (I know it can be done with Map Optimizer + Widgetizer, but I want the best size/loading time)
 

martix

There is no spoon
Reaction score
49
Depends if you want to leave the map unprotected or totally damage it beyond openability.
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
I think vexorian's optimizer is enough. The reasons most common to a map being very large are: imported models, imported music, WEU adds about 500kb to the map. If u have some of these maybe replace them somehow
 

the Immortal

I know, I know...
Reaction score
51
I have only imported icons and textures. When I use Map Optimizer, it makes the map smaller and when I use the Widgetizer it decreases loading time at the cost of 100-200 Kb. My question was is there any better method for optimizing the map?
PS. I'd like to "protect" my map.
 

Doomhammer

Bob Kotick - Gamers' corporate spoilsport No. 1
Reaction score
67
that thread should better be moved to the help zone!

Now follow my route to the optimum performance map

way 1: stay within your GUI - trigger universe

1) use the leak checker, find and erase the leaks. For further info on leaks, do a forum search, it's all been written dozens of times.

2) use vexorian's map optimizer. Have a good read-through his help file. Vex's map optimizer is about the most powerful tool for map optimization there is. Apart from having it, you need to have a good understanding of which settings you to chose

check on the left side in any way:
-Remove comments and useless spaces
-Remove useless code
-Merge initializations
-Anti BJ
-Conditions
-Order Strings To IDs
-Shortest Number representations
-Shortest variable/function names possible

in your case, I would also check
-Make sure to clean every unused function
-Optimize BJ functions

be rather careful with the options on the right page, and double-read the instructions. What I would recommend:
-ZLib Deflate
-Optimize string usage
-remove editor-only files

do the optimization on a safety copy of your map!
You can't open the map afterwords with WE - which also means it's protected

I'm using Vexorian's map optimizer Version 3.9c,
and all I can say is: the results are simply amazing!
My map Zone Control Evolutions takes WC3 to the brink of its capabilities in creating and moving about the maximum amount of units tolerable, so the rest (back ground scripts, AI, etc) has to run the smoother - and it really does!


way 2: involves Jass knowledge,
or at least the will to get into it; it's a good training nevertheless, especially if you have little idea about Jass and are on your way to learning the ropes

1) convert the triggers to custom script

2) get rid of doubled negations in conditions, e.g.
Code:
if not(IsUnitAliveBJ(unit)) then
becomes ->
Code:
if IsUnitDeadBJ(unit) then

3) get rid of BJ function calls where not necessary
the code example becomes more efficient written as:
Code:
if GetUnitState(unit, UNIT_STATE_LIFE) < 0.4 then

4) there are quite a few tutorials on that. Daelin has written some very useful ones. Just do a forum search

5) follow the procedures of as described in way 1
You do NOT need any further 3rd party software.

If you're really after performance, then there is no way around jass. Otherwise, just do map optimizing routine, and you will yield good results.
 

XXXconanXXX

Cocktails anyone?
Reaction score
284
the Immortal said:
I have only imported icons and textures. When I use Map Optimizer, it makes the map smaller and when I use the Widgetizer it decreases loading time at the cost of 100-200 Kb. My question was is there any better method for optimizing the map?
PS. I'd like to "protect" my map.

I'd use the Widgetizer, and then Vex's Map Optimizer. There's an option in Vex's optimizer to remove Unit Data I believe, making the map unopenable.
 

the Immortal

I know, I know...
Reaction score
51
Thanks to all, especially to Doomhammer :rolleyes:
I'm ~90% sure I have no leaks (already checked), I will convert them to JASS and clean everything that WE messed. Then use Widgetizer, and after all the Vexorian's Optimizer.
 

Chocobo

White-Flower
Reaction score
409
For Widgetizer you make a copy of your map (IF YOU DON'T YOUR MAP WILL GET DELETED), and check all possible functions :
  1. Units
  2. Items
  3. Destructables
  4. Doodads
  5. Abilities
  6. Buffs
  7. Upgrades
  8. Remove Unused Objects
  9. Keep Placed Objects
  10. Keep Referenced Objects
  11. Ignore Basic References
  12. Clean Trigger Strings
  13. Clean SLK Tables

For Warcraft 3 Map Optimizer 3.9d, you have to check some functions but not all :
  1. Remove comments and useless spaces
  2. Remove useless code
  3. Merge Initializations
  4. Anti BJ
  5. Conditions
  6. Order Strings to Ids
  7. Shortest Number Representation
  8. Shortest variable / function names possible (war3patch.mpq)
  9. Make sure to clean every unused function/variable
  10. Optimize BJ functions
  11. Look for other files to obfuscate (.j, .ai)
  12. Optimize String usage (Does not work with Widgetizer)
  13. Clean BLPs
  14. Clean SLKs
  15. Remove Editor Suffixes
  16. Remove Editor-Only Files
  17. Remove as much WE-only data possible

What will it do? It will protect your map, change all file names, hide the .j file against unprotection, reduce map size, and decrease loading speed.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top