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.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top