• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Does this leak?

Status
Not open for further replies.
Level 2
Joined
Jan 19, 2009
Messages
10
okay i need to know if this leaks or not? could anyone please tell me

  • Events
    • Unit - A unit Acquires and item
  • Conditions
    • ((hero manipulating item) has an item of type Orb of Frost) Equal to True
    • ((hero manipulating item) has an item of type Orb of Fire) Equal to True
    • ((hero manipulating item) has an item of type Recipe: Freezing Fire Orb) Equal to True
  • Actions
    • Item - Remove (item carried by (Hero manipulating Item) of type Orb of Frost)
    • Item - Remove (item carried by (Hero manipulating Item) of type Orb of Fire)
    • Item - Remove (item carried by (Hero manipulating Item) of type Recipe: Freezing Fire Orb)
  • Hero - Create Freezing Fire Orb and give it to (Hero manipulating Item)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,198
There is a chance it may be leaking handleIDs for the items removed as a lot of BJs which GUI uses do not null local handles causing the index recycler to bug and not recycle them correctly.

However optimizing your map trigger script with vexorian optimizer before playing / submitting will fix these leaks due to replacing them with custom leakfree functions. It may not even have to damage your map from being openable in WE, all it has to do is optimize the trigger script.

This is a blizzard bug with the broken garbage collector in WC3 and the only way to fix it is to use JASS, even if that JASS is generated via a tool like vexorians optimizer.
 
Status
Not open for further replies.
Top