S
Shades-X
Guest
I am new to the whole memory leakage thing... so I have been reading tutorials to help find where memory leaks could be in my map... so far I found 5 possible memory leak spots here they are:
#1
#2
#3
#4
#5
All I wish to know is... Are these memory leaks and what custom scripts will be needed to fix them.
#1
Code:
Trap1
Events -
Time - Every 2.5 seconds of game time
Conditions - none
Actions -
Unit - Create 1 Trap for Player 12(Brown) at (Center of Trap1<gen>) facing 0.00 degrees
Unit - Order (Last created unit) to Move to (Center of Trap 1<gen>)
#2
Code:
Trap2start
Events -
Unit - A unit enters Trap2<gen>
Conditions -
(Unit type of (Triggering unit)) Equal to Rat
Actions -
Special Effect - Create a special effect at (Center of Trap2start<gen>) using Abilities\Spells\Human\Polymorph\PolyMorphDoneGround.mdl
Unit - Create 1 Chomper for Player 12(Brown) at (Center of Trap2start<gen>) facing 270.00 degrees
Unit - Order (Last created unit) to Move to (Center of Trap2<gen>)
Wait - 0.50 seconds
Special Effect - Destroy (Last created special effect)
#3
Code:
Trap2finish
Events -
Unit - A unit enters Trap2finish<gen>
Conditions -
(Unit type of (Triggering unit)) Equal to Chomper
Actions -
Unit - Remove (Triggering unit) from the game
Special Effect - Create a special effect at (Center of Trap2finish<gen>) using Abilities\Spells\Other\Incinerate\FireLordDeathExplode.mdl
Wait - 0.50 seconds
Special Effect - Destroy (Last created special effect)
#4
Code:
Health
Events -
Time - Every 2.50 seconds of game time
Conditions - none
Actions -
Set hitpoints = (Life of Rat 0008<gen>)
Unit - Set life of Rat 0008<gen> to (hitpoints - 5.00)
#5
Code:
Hunger Death
Events -
Unit - A unit dies
Conditions -
(Unit type of (Triggering unit)) Equal to Rat
(Unit type of (Killing unit)) Not equal to Rat poison
Actions -
Game - Game display to (Player group((Owner of (Triggering unit)))) the text: |c00330000GAME OVER...|r
Sound - Play laugh<gen>
Wait - 3.00 seconds
Sound - Destroy (Last played sound)
All I wish to know is... Are these memory leaks and what custom scripts will be needed to fix them.