• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] how do i fix this leak i have read the leak sticy i didnt get it......

Status
Not open for further replies.
Level 6
Joined
Sep 26, 2007
Messages
114
well i am getting leaks from units being spwned and i read how to fix it but it didnt work so i think i dont get it and stuffed it up some were pleaze help me


thanx for help in advance :infl_thumbs_up:
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    34.8 KB · Views: 208
  • Untitled2.jpg
    Untitled2.jpg
    33.2 KB · Views: 207

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Your leaking locations, you need to store the locations in a point variable and then remove them. I might be able to help you more if you acually converted your trigger to text and used our handy GUI trigger tags but since you did it the horribly difficult and innefficent way. . .

Under one of the menues it should have copy trigger as text, use that instead of screenshots.
 
Level 6
Joined
Sep 26, 2007
Messages
114
  • Events
    • Time - Every 35.00 seconds of game time
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 1, do (Unit - Create 5 Ghoul for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 4 Crypt Fiend for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 2 Necromancer for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 1 Champion for Player 11 (Dark Green) at (Center of Holding 2 <gen>) facing (Random point in Holding 2 <gen>))
    • Set groupundead = (Units in Camp 2 <gen>)
    • Unit Group - Pick every unit in (Units in Camp 2 <gen>) and do (Unit - Hide (Picked unit))
    • Custom script: call DestroyGroup(udg_groupundead)
  • Events
    • Time - Every 35.00 seconds of game time
  • Conditions
  • Actions
    • For each (Integer A) from 1 to 1, do (Unit - Create 5 Footman for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 4 Rifleman for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 2 Priest for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
    • For each (Integer A) from 1 to 1, do (Unit - Create 1 Capatin Train capatin for Player 12 (Brown) at (Center of Holding <gen>) facing (Random point in Holding <gen>))
    • Set Grouphuman = (Units in camp 1 <gen>)
    • Unit Group - Pick every unit in (Units in camp 1 <gen>) and do (Unit - Hide (Picked unit))
    • Custom script: call DestroyGroup(udg_Grouphuman)
 
Last edited by a moderator:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Firstly remove thoes actions that are in the loops since it is pointless doing them in the loops.
Secondly store all your locations (points) in variables and only use them from the variables and destroy them before asigning a new location (point) to the variable.
Finally do the same as you did for the points for the groups.

I recommend reading some of our leak tutorials, they can really be helpfull.
 
Level 6
Joined
Sep 26, 2007
Messages
114
  • Time - Every 35.00 seconds of game time
  • Set TempPoint = (Center of Holding 2 <gen>)
  • Unit - Create 5 Ghoul for Player 11 (Dark Green) at TempPoint facing (Random point in Holding 2 <gen>)
  • Unit - Create 4 Crypt Fiend for Player 11 (Dark Green) at TempPoint facing (Random point in Holding 2 <gen>)
  • Unit - Create 4 Crypt Fiend for Player 11 (Dark Green) at TempPoint facing (Random point in Holding 2 <gen>)
  • Unit - Create 5 Necromancer for Player 11 (Dark Green) at TempPoint facing (Random point in Holding 2 <gen>)
  • Custom script: call RemoveLocation(udg_TempPoint)
  • Time - Every 35.00 seconds of game time
  • Set TempPoint = (Center of Holding <gen>)
  • Unit - Create 5 Footman for Player 12 (Brown) at TempPoint facing (Random point in Holding <gen>)
  • Unit - Create 4 Rifleman for Player 12 (Brown) at TempPoint facing (Random point in Holding <gen>)
  • Unit - Create 1 Capatin Train capatin for Player 12 (Brown) at TempPoint facing (Random point in Holding <gen>)
  • Unit - Create 2 Priest for Player 12 (Brown) at TempPoint facing (Random point in Holding <gen>)
  • Custom script: call RemoveLocation(udg_TempPoint)
 
Last edited:
Status
Not open for further replies.
Top