Hello fellow mappers, again it has been quite a while since i last posted, yet again i'm in need of assistance.
Recently, someone reminded me of memory leaks in warcraft 3 maps, so i hauled all of my triggers (474) through a leak checker, it came to light that i have over 1000 memory leaks in my map. It concerns the following types; - Unit group leak, when a trigger picks every unit in (units xxxxxx), the group remains after the trigger is done, it is not removed by default. - Position leak, when something is pointed to the center of a location, the point "center of location" remains as a point, it is also not removed.
These leaks are a result of faulty code, since i used only GUI triggering, i didn't think i could make leaking code, but it seemed that blizzard didn't do this part well either, resulting in me finding out that i've got over 1k leaks in my map which will take weeks to fix.
Now, to the point; Is there a way of fixing the leaks without having to go over every damn trigger myself? Is there some kind of tool or plugin (For WE) that can help me? I'd hate to do that much of repetetative work. (Some of my triggers contain over 100 leaks!) Please help.
the only way i found ( i haven't searched for a tool of plugin ) is that you might save your map and then open it with a mpq-tool then you open the jass file and go through that...
for editing text-files there shall be plenty of codes/tools/plugins that can do repetive work.
I know how to fix them. The point is that i would have to do it over 1k times, which i really don't feel too much like doing. I'm wondering if there's an easier way.
I'll try the JASS-solution, but it'd be best if i could get my hands on some tool that could run through the entire mpq and patch it up, some kind of optimising tool. (Too bad vexorian's doesn't fix these..)
its easiest of just getting in the habit of cleaning them up as you write the code. myself, i leave a few leaks, like mbe a loc that will leak once thru the entire game, as it is not important
Aye, i would have cleaned them up from the beginning, if only i found out earlier, which i didn't, only recently. It didn't even come to my mind that i could have memory leaks since i used GUI triggering, i thought blizzard would have all such things covered and that memory leaks would be caused by faulty self-made JASS. I was wrong.
Now, i guess i'm stuck with fixing all those leaks.
Events Unit - A Unit Starts the Effect of an Ability Conditions Ability Being Cast Equal to 1 Second then Wham! Actions Wait 1 second Order Triggering Unit to damage cricular area around Target Point Of Ability Being Cast for 10 damage over 0 seconds
-------------------------------------------------- under your theory, there would be no more Target Point Of Ability Being Cast after that 1 second.
Once again, i don't have a clue what you're talking about. Try making a bit longer posts and explaining more in correct english and full in-editor made triggers.
THAT IS a full in-editor trigger. my point is that, by 1 second after someone casts "1 second then WHAM!", there would be no more Target Point of Ability Being Cast in your book.
What the hell are you talking about now? I'm not saying either of these things. I will ignore your posts from now on, i really don't need people like you to try and help me since obviously it's not working.
purplepoot seems to have way more experience than you angelusz, since he tries to find solutions for EVERY situation, not only for your map where everything is INSTANT.
Stop that "What are you talking about?" thing, it's annoying!! ...
By the way I know how to fix your leaks... shove them up your ass!!
Oh and that's not all I wanted to say... I'm an ignorant to these memory leaks problem, so PurplePoot... i would suggest you to write a Memory Leaks Tutorial, for people like me. It would be very helpful
Once again Angelusz try to find sense in what PurplePoot said... i don't know how this memory leaks can be stopped, but i did understood what he meant
Oh and that trigger was also easy to "decipher"...