Memory leak pleaase help?

gbubic2

Active Member
Reaction score
0
I have made 12 triggers like this for 12 players and still leaking all over the place. Please help i am going crazy?

Trigger:
  • Player 1 Dies
    • Events
      • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
      • ((Dying unit) is A Hero) Equal to True
    • Actions
      • Set PointVis1 = (Position of (Dying unit))
      • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from PointVis1 to a radius of 610.00
      • Set DeathVIS1 = (Last created visibility modifier)
      • Custom script: call RemoveLocation(udg_PointVis1)
      • Wait 6.00 seconds
      • Visibility - Destroy DeathVIS1
      • Set PointCamDie1 = (Center of Graveyard <gen>)
      • Camera - Pan camera for (Owner of (Dying unit)) to PointCamDie1 over 1.00 seconds
      • Custom script: call RemoveLocation(udg_PointCamDie1)
      • Wait 1.00 seconds
      • Set PointGVY = (Random point in Graveyard <gen>)
      • Hero - Instantly revive (Dying unit) at PointGVY, Show revival graphics
      • Custom script: call RemoveLocation(udg_PointGVY)
      • Unit - Make (Dying unit) Invulnerable
      • Selection - Select (Dying unit) for (Owner of (Dying unit))


P.S. How do you make a window for triggers in side of thread? :eek:
 

Baltazhar

Active Member
Reaction score
55
Trigger:
  • Player 1 Dies
    • Events
    • Unit - A unit owned by Player 1 (Red) Dies
    • Conditions
    • ((Dying unit) is A Hero) Equal to True
    • Actions
    • Set PointVis1 = (Position of (Dying unit))
    • Visibility - Create an initially Enabled visibility modifier for (Owner of (Dying unit)) emitting Visibility from PointVis1 to a radius of 610.00
    • Set DeathVIS1 = (Last created visibility modifier)
    • Custom script: call RemoveLocation(udg_PointVis1)
    • Wait 6.00 seconds
    • Visibility - Destroy DeathVIS1
    • Set PointCamDie1 = (Center of Graveyard <gen>)
    • Camera - Pan camera for (Owner of (Dying unit)) to PointCamDie1 over 1.00 seconds
    • Custom script: call RemoveLocation(udg_PointCamDie1)
    • Wait 1.00 seconds
    • Set PointGVY = (Random point in Graveyard <gen>)
    • Hero - Instantly revive (Dying unit) at PointGVY, Show revival graphics
    • Custom script: call RemoveLocation(udg_PointGVY)
    • Unit - Make (Dying unit) Invulnerable
    • Selection - Select (Dying unit) for (Owner of (Dying unit))


As Koma said
Trigger:
  • tags are the key here.
    • It seems very leak free to me as well. I don't think that leak is the crook here, unless you have more triggers that could be responsible.
 

gbubic2

Active Member
Reaction score
0
Hm...

Could be that other trigger is leaking :confused: i will try to find it i have already made around 90 "Set Point" "Remove Location" ahhh... :banghead:
Anyhow thanks for your help.
 

Baltazhar

Active Member
Reaction score
55
Just fyi before you spent hours searching for point leaks and find out it's a unit group. It's not just points that can leak.

I know how annoying it is to have to look through several hundred triggers to search for leak issues, done it a couple of times.
Happy hunting :)
 

gbubic2

Active Member
Reaction score
0
Thanks guys i found it i t was group leak and wery obvious one every 0.5 sec. of game.
Just testing
Trigger:
  • Inferno 1
    • Events
      • Time - Every 20.00 seconds of game time
    • Conditions
    • Actions
      • Set PointInferno = (Random point in Arena <gen>)
      • Unit - Reset ability cooldowns for Dummy Caster Infernal 0040 <gen>
      • Unit - Order Dummy Caster Infernal 0040 <gen> to Undead Dreadlord - Inferno PointInferno
      • Custom script: call RemoveLocation(udg_PointInferno)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top