HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Various questions

06-15-2004, 04:21 PM#1
anctan
I've got some miscellaneous questions here:

1. Game Cache Is it possible to have more than one game cache for one map and if yes, then why would you need it?
2. Lord Vexorian's method for reducing in-game lag I have read the thread but I still couldn't tell how the heck kill those triggers. Where do I have to put that callDestroyTrigger() line?
And generally, does this method really work? For all triggers or only for init triggers?
06-15-2004, 11:07 PM#2
Deathperception
First of all the game cache doesn't work online on battlenet it only works for single player games that only one person plays.

Second of all the only way I know of to Kill triggers easily without JASS knowledge is to download WE Unlimited and use its fuctionality to kill your triggers.
06-17-2004, 04:13 PM#3
anctan
Can anyone explain me how to kill triggers without UMSWE?
06-17-2004, 06:06 PM#4
Milkman
call DestroyTrigger( GetTriggeringTrigger() )

You'll have to use the action: Custom Script and then insert the text above.
It's recommended to destroy all oneshot triggers, just to make sure. It might not make the map lagg less, but it might also make it lagg less, worth a try.

Generally it's also a good thing to remove all SFX's, remove units killed by triggers, remove locations when they are used and unitgroups aswell.
There is a guide on how to do all this, just look under the tutorials sections.
"How reduce memory leaks" by Cubasis
Something like that.
06-21-2004, 02:05 PM#5
anctan
Well, I recently tried it and I think it really works. Map Initialization is not as long as it used to be.
06-21-2004, 04:34 PM#6
Cubasis
You can have as many game-caches as ya want. But it's not really useful unless you're using it as a data storages, if you're using it as a data storage (that is, in-game, not between maps, instead of using globals), then it's comfortable to be able to catogorize unrelated data by it's gamecache name.

Oh, and for this (in-game data-storage), GameCache "does" work in Multiplayer, as long as you don't try to save it. So yes, you can store stuff in the gamecache and read it later within the same map, but not save/load the actual file.

~Cubasis
06-21-2004, 04:39 PM#7
Deathperception
Oh I see thanks for clearing that up I must have misheard back when I was learning triggers I don't use the cache often I just use globals. It always good to know another way though :D . I can't say how cool it would be if you were able to save though I think Blizzard made a big mistake there.