U
Unregistered
Guest
Leak Check - Report
Report Message
2 questions,
1. How to fix the leaks
2. Why display the first 99 lines, its better to not show the trigger @ all, if its bigger then 100 lines.
Report Message
Code:
C:\Documents and Settings\Administrator\Bureaublad\Leak Check v2\Leak Check v2\triggers.txt
------------------
(Line:1) Split Income Gold and Property
(Line:2) Events
(Line:3) Player - Player 1 (Red) leaves the game
(Line:4) Player - Player 2 (Blue) leaves the game
(Line:5) Player - Player 3 (Teal) leaves the game
(Line:6) Player - Player 4 (Purple) leaves the game
(Line:7) Player - Player 5 (Yellow) leaves the game
(Line:8) Player - Player 6 (Orange) leaves the game
(Line:9) Player - Player 7 (Green) leaves the game
(Line:10) Player - Player 8 (Pink) leaves the game
(Line:11) Conditions
(Line:12) Actions
(Line:13) For each (Integer A) from 1 to 8, do (Actions)
(Line:14) Loop - Actions
(Line:15) If (((Player((Integer A))) controller) Not equal to User) then do (Game - Defeat (Player((Integer A))) with the message: Defeat!) else do (Do nothing)
(Line:16) Player Group - Remove all players from Forces[1]
(Line:17) Player Group - Remove all players from Forces[2]
(Line:18) If ((Player 1 (Red) slot status) Equal to Is playing) then do (Player Group - Add Player 1 (Red) to Forces[1]) else do (Do nothing)
(Line:19) If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Player Group - Add Player 2 (Blue) to Forces[1]) else do (Do nothing)
(Line:20) If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Player Group - Add Player 3 (Teal) to Forces[1]) else do (Do nothing)
(Line:21) If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Player Group - Add Player 4 (Purple) to Forces[1]) else do (Do nothing)
(Line:22) If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Player Group - Add Player 5 (Yellow) to Forces[2]) else do (Do nothing)
(Line:23) If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Player Group - Add Player 6 (Orange) to Forces[2]) else do (Do nothing)
(Line:24) If ((Player 7 (Green) slot status) Equal to Is playing) then do (Player Group - Add Player 7 (Green) to Forces[2]) else do (Do nothing)
(Line:25) If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Player Group - Add Player 8 (Pink) to Forces[2]) else do (Do nothing)
(Line:26) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:27) If - Conditions
(Line:28) (Player 1 (Red) slot status) Not equal to Is playing
(Line:29) Then - Actions
(Line:30) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:31) If - Conditions
(Line:32) (Player 2 (Blue) slot status) Not equal to Is playing
(Line:33) Then - Actions
(Line:34) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:35) If - Conditions
(Line:36) (Player 3 (Teal) slot status) Not equal to Is playing
(Line:37) Then - Actions
(Line:38) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:39) If - Conditions
(Line:40) (Player 4 (Purple) slot status) Not equal to Is playing
(Line:41) Then - Actions
(Line:42) For each (Integer A) from 1 to 4, do (Actions)
(Line:43) Loop - Actions
(Line:44) Custom script: set bj_wantDestroyGroup = true
(Line:45) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Town Hall (attackers)))
(Line:46) Custom script: set bj_wantDestroyGroup = true
(Line:47) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Town Hall (no attackers)))
(Line:48) Custom script: set bj_wantDestroyGroup = true
(Line:49) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Keep))
(Line:50) Custom script: set bj_wantDestroyGroup = true
(Line:51) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Castle))
(Line:52) Else - Actions
(Line:53) Else - Actions
(Line:54) Else - Actions
(Line:55) Else - Actions
(Line:56) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:57) If - Conditions
(Line:58) (Player 5 (Yellow) slot status) Not equal to Is playing
(Line:59) Then - Actions
(Line:60) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:61) If - Conditions
(Line:62) (Player 6 (Orange) slot status) Not equal to Is playing
(Line:63) Then - Actions
(Line:64) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:65) If - Conditions
(Line:66) (Player 7 (Green) slot status) Not equal to Is playing
(Line:67) Then - Actions
(Line:68) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:69) If - Conditions
(Line:70) (Player 8 (Pink) slot status) Not equal to Is playing
(Line:71) Then - Actions
(Line:72) For each (Integer A) from 5 to 8, do (Actions)
(Line:73) Loop - Actions
(Line:74) Custom script: set bj_wantDestroyGroup = true
(Line:75) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Town Hall (attackers)))
(Line:76) Custom script: set bj_wantDestroyGroup = true
(Line:77) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Town Hall (no attackers)))
(Line:78) Custom script: set bj_wantDestroyGroup = true
(Line:79) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Keep))
(Line:80) Custom script: set bj_wantDestroyGroup = true
(Line:81) Unit - Explode (Random unit from (Units owned by (Player((Integer A))) of type Castle))
(Line:82) Else - Actions
(Line:83) Else - Actions
(Line:84) Else - Actions
(Line:85) Else - Actions
(Line:86) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:87) If - Conditions
(Line:88) Then - Actions
(Line:89) Else - Actions
(Line:90) If (All Conditions are True) then do (Then Actions) else do (Else Actions)
(Line:91) If - Conditions
(Line:92) (Player 1 (Red) slot status) Not equal to Is playing
(Line:93) Player_Income_Gold[1] Not equal to 0
(Line:94) (Player 1 (Red) Current gold) Not equal to 0
(Line:95) (Number of living Upgrade Center units owned by Player 1 (Red)) Equal to 1
(Line:96) Then - Actions
(Line:97) Set X = 0
(Line:98) Set Player_Income_Gold[1] = (Player_Income_Gold[1] + (Player_Income_Lumber[1] x 100000))
(Line:99) Player - Add (((Player(1)) Current lumber) x 100000) to Player 1 (Red) Current gold
------------------
------------------
Total lines: 322
Location Leak Detection ON
Unit Group Leak Detection ON
Special Effect Leak Detection ON
Variable Removal Detection ON
(Line: 18 ) (Word: 13 ) Player Group Leak
If ((Player 1 (Red) slot status) Equal to Is playing) then do (Player Group - Add Player 1 (Red) to Forces[1]) else do (Do nothing)
If ((Player 1 (Red) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
(Line: 19 ) (Word: 13 ) Player Group Leak
If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Player Group - Add Player 2 (Blue) to Forces[1]) else do (Do nothing)
If ((Player 2 (Blue) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
(Line: 20 ) (Word: 13 ) Player Group Leak
If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Player Group - Add Player 3 (Teal) to Forces[1]) else do (Do nothing)
If ((Player 3 (Teal) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
(Line: 21 ) (Word: 13 ) Player Group Leak
If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Player Group - Add Player 4 (Purple) to Forces[1]) else do (Do nothing)
If ((Player 4 (Purple) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
(Line: 22 ) (Word: 13 ) Player Group Leak
If ((Player 5 (Yellow) slot status) Equal to Is playing) then do (Player Group - Add Player 5 (Yellow) to Forces[2]) else do (Do nothing)
If ((Player 5 (Yellow) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
(Line: 23 ) (Word: 13 ) Player Group Leak
If ((Player 6 (Orange) slot status) Equal to Is playing) then do (Player Group - Add Player 6 (Orange) to Forces[2]) else do (Do nothing)
If ((Player 6 (Orange) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
(Line: 24 ) (Word: 13 ) Player Group Leak
If ((Player 7 (Green) slot status) Equal to Is playing) then do (Player Group - Add Player 7 (Green) to Forces[2]) else do (Do nothing)
If ((Player 7 (Green) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
(Line: 25 ) (Word: 13 ) Player Group Leak
If ((Player 8 (Pink) slot status) Equal to Is playing) then do (Player Group - Add Player 8 (Pink) to Forces[2]) else do (Do nothing)
If ((Player 8 (Pink) slot status) Equal to Is playing) then do ^Leak
(Suggested fix) Set MyPlayerGroup = (Player group(Player - Add
(Suggested fix) Custom script: DestroyForce(udg_MyPlayerGroup)
Completed
Total amount of leaks: 8
Leak Rating: Bad
------------------
2 questions,
1. How to fix the leaks
2. Why display the first 99 lines, its better to not show the trigger @ all, if its bigger then 100 lines.