- Joined
- Feb 13, 2011
- Messages
- 11
- Delete triggers when needed using triggers. Obvious, reduce map lag. Just use a function to delete it.
- Remove comments*. Sounds stupid, but take an ant for example. An ant itself is harmless, just like that few KB of space. Combine it, like combining ants, makes it even more dangerous. Soon, you have a legion of ants, or MBs, waiting to assault you/your map and make you itch/you map lag.
E.g.JASS:function whatever takes blah returns blah blah blah blah endfunction //Some space-wasting comment that is purely for referencing function two takes blah returns blah blah blah blah endfunction
JASS:function whatever takes blah returns blah blah blah blah endfunction function two takes blah returns blah blah blah blah endfunction
- Copy the whole JASS into notepad (untested)*. One way to protect the map, and remember to remove those comments! Also remember to save it as a W3X file. E.g. Just another map.w3x .
- Protect the map.* Yes, you've heard me right. Protect it, so that it remove those ******* pieces of space waster comments that only make it compatible with the WE.
- Don't use GUI. Yes, it removes loads of stupid stuff. Loads of people agree on this. It's also easier to type than select and GUI leaks.
Q&A
Q: Why do removing comments save space?
A: Folders are like comments. They waste space, no matter how negligible.
Q: But they are small!
A: An ant is small too. So is a skeleton warrior.
Q: But why bother to remove them?
A: Same reason you remove leaks. To unclog the map.
Q: But a tiny object...
A: In great amounts can be exceptionally dangerous.
Q: Why copy the JASS file to notepad?
A: Anyway maps are made out of pure JASS/VJASS. Now you can control all the elements and remove those comments. They use Jass to define the boundaries, units, you name it. Just type a in the custom JASS and save it to get the whole map in text.
*Obviously only for the protected version.