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!
Hey could any one help me with a leak in my map
not sure which trigger is causeing it
but if some one can tell me which one it is then sweet
and tell me how to fix it
Well, you're leaking point locations on trigger "Teleport" and "Teleport 2".
How to Fix
1. Set (Point-type Variable) = (Point of a Location) on each of the trigger
EX: Set TempPoint[0] = Center of Region <gen>
2. Add in to each of the trigger, if it has variable, Custom Script: call RemoveLocation(udg_[Insert Point Variable's name[If any Array Numbers are used])
I did the same way you did except there is no two point-type variables in the triggers. I just used one with an array and haven't got an error from saving. See below:
Teleport
Events
Unit - A unit enters Teleport 01 <gen>
Unit - A unit enters Teleport 02 <gen>
Unit - A unit enters Teleport 03 <gen>
Unit - A unit enters Teleport 04 <gen>
Unit - A unit enters Teleport 05 <gen>
Unit - A unit enters Teleport 06 <gen>
Unit - A unit enters Teleport 13 <gen>
Conditions
Actions
Set TempPoint[0] = (Center of Teleport 16 <gen>)
Unit - Move (Triggering unit) instantly to TempPoint[0]
Set TempPoint[1] = (Position of Defend the King 0021 <gen>)
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack-Move To TempPoint[1]) else do (Do nothing)
Set TempPoint[1] = (Position of Defend the Warlord 0034 <gen>)
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack-Move To (Position of Defend the Warlord 0034 <gen>)) else do (Do nothing)
Set Temp_Point[1] = (Position of Defend the King 0021 <gen>)
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack Defend the King 0021 <gen>) else do (Do nothing)
@ace992: I think you wanted the fifth line of each trigger to be this:
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack-Move To Temp_Point[1]) else do (Do nothing)
Instead of something like this:
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack Defend the King 0021 <gen>) else do (Do nothing)
Set Temp_Point[1] = (Position of Defend the Warlord 0034 <gen>)
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack Defend the Warlord 0034 <gen>) else do (Do nothing)
Set Temp_Point[1] = (Position of Defend the King 0021 <gen>)
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack Defend the King 0021 <gen>) else do (Do nothing)
No, it's still leaking a little. On the fifth line (please refer to my last post above), change Unit - Order (Triggering Unit) to Attack part to Unit - Order (Triggering Unit) to Attack Move. When that's done, you're all set to go unless there are any other problems/questions.
You want those guys being transported to the area to fight their way to the other side yes? If so, then on the "Then" part, change Unit - Issue Order Targeting A Unit to Unit - Issue Order Targeting A Point. I think you know how to do the rest from there. Otherwise if not, then just delete the Set TempPoint[1] and the Custom Script for it.
Set Temp_Point[1] = (Position of Defend the King 0021 <gen>)
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack-Move To Temp_Point[1]) else do (Do nothing)
Set Temp_Point[1] = (Position of Defend the Warlord 0034 <gen>)
If (((Triggering unit) is A peon-type unit) Equal to False) then do (Unit - Order (Triggering unit) to Attack-Move To Temp_Point[1]) else do (Do nothing)
Ok i i got a mem crash still i used the leak checker on every trigger none left so im a bit lost
uploaded latest version
could it be that i have protected the map?
Note this uploaded version is unprotected
Did anything happen before the memory crash occurred? Unit transported to another area, triggered spells, special effects, trigger command, opening/closing gates, etc. etc.?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.