(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Hosted Projects > Requiem of the Gods > Bug Reporting\Technical Issues

Bug Reporting\Technical Issues Found a bug? Got a problem? Report it here and get help.

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 05-08-2007, 04:30 PM   #1 (permalink)
 
Steelb_l_ade's Avatar

Creator of ROTG
 
Join Date: Apr 2006
Posts: 151

Steelb_l_ade is on a distinguished road (67)Steelb_l_ade is on a distinguished road (67)

PayPal Donor: This user has donated to The Hive. 

Exclamation Unit Group Leaks

Hi lads, any thoughts on how to fix the two unit group leaks in this trigger?

(Under conditions and under "remove summons")

HeroesLoseTEAM 1
Events
Time - Every 0.50 seconds of game time
Conditions
(Number of units in (Units in DuelUnitsCheckRegion <gen> matching ((((Matching unit) is A Hero) Equal to True) and ((((Matching unit) is alive) Equal to True) and ((Matching unit) Not equal to BossMonster))))) Equal to 0
Actions
-------- STOP BOSS FROM DYING FROM POSION ETC --------
Unit - Make BossMonster Invulnerable
Unit - Remove All buffs from BossMonster
-------- PLAYERS LOSE. SHUT DOWN DUEL (TEAM 1) --------
Trigger - Turn off (This trigger)
Trigger - Turn off HeroesWinTEAM 1 <gen>
Trigger - Turn off DuelMusic <gen>
Trigger - Turn off Boss takes Damage <gen>
Trigger - Turn off BootOut TEAM2 <gen>
Leaderboard - Hide BossHealthLeaderboard
Leaderboard - Destroy BossHealthLeaderboard
Set BOSSDuelRunningT1 = False
Sound - Stop the currently playing music theme
Trigger - Run DuelDefeatMusic <gen> (checking conditions)
Game - Display to Team1 for 6.00 seconds the text: (|C0099CC99 + (You are not yet powerful enough to kill |r + (|c00FF0033Argonax|r + |C0099CC99! Only the strongest warriors have a chance to defeat him.|r)))
Game - Display to Team2 for 6.00 seconds the text: (|C0099CC99 + (The enemy team is has been defeated by |r + (|c00FF0033Argonax|r + |C0099CC99! Now is your chance to steal victory for yourselves!|r)))
-------- SHUT DOWN VISABILITY MODIFIER --------
Set BossDuelBeginsPoint = (Center of ArgonaxRestRegion <gen>)
Cinematic - Ping minimap for (All players) at BossDuelBeginsPoint for 6.00 seconds, using a Flashy ping of color (100.00%, 20.00%, 20.00%)
Custom script: call RemoveLocation(udg_BossDuelBeginsPoint)
-------- REMOVE ALL SUMMONABLES FROM DUELLING ARENA --------
Unit Group - Pick every unit in (Units in DuelUnitsCheckRegion <gen> matching ((((Matching unit) is A Hero) Equal to False) and ((Matching unit) Not equal to BossMonster))) and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
-------- RESET ARGONAX --------
Unit - Set life of BossMonster to ((Real(BossHealthCurrent)) + (500.00 x (Real(GameDifficultyMode))))
Unit - Make BossMonster Vulnerable
Set BossDuelBeginsPoint = (Center of ArgonaxRestRegion <gen>)
Unit - Order BossMonster to Move To BossDuelBeginsPoint
Custom script: call RemoveLocation(udg_BossDuelBeginsPoint)
Wait 3.50 seconds
Unit - Make BossMonster face 270.00 over 0.50 seconds
Wait 0.50 seconds
Animation - Play BossMonster's victory animation
Wait 0.10 seconds
Sound - Play DemonRoar <gen> at 100.00% volume, attached to BossMonster
Unit - Pause BossMonster
-------- REMOVE FORCEFIELD --------
Destructible - Remove ForceField
Unit - Kill GateGuardian[1]
Unit - Kill GateGuardian[2]
Trigger - Turn on Unit Approches Final Door TEAM 1 <gen>
Trigger - Turn on Unit Approches Final Door TEAM 2 <gen>
__________________
ROTG-Creator.
Before you ask something, at least attempt it yourself, else you'll only have to ask everything in life.

http://www.rotg.co.uk
http://www.clan-volt.batcave.net

Last edited by Steelb_l_ade; 05-08-2007 at 04:32 PM..
Steelb_l_ade is offline  
Old 05-08-2007, 06:28 PM   #2 (permalink)
 
Xarwin's Avatar

Medic
 
Join Date: Nov 2006
Posts: 1,496

Xarwin is a jewel in the rough (204)Xarwin is a jewel in the rough (204)

PayPal Donor: This user has donated to The Hive. 

What about using a variable which sets the groups ?
then use
Custom script: call DestroyGroup (udg_Groupname)
or create a local group, assign the group to your unit group and destroy them.
__________________
Xarwin is offline  
Old 05-09-2007, 01:20 AM   #3 (permalink)
 
PurgeandFire111's Avatar

User Title
 
Join Date: Nov 2006
Posts: 1,029

PurgeandFire111 is a jewel in the rough (155)


Quote:
Originally Posted by Heero View Post
What about using a variable which sets the groups ?
then use
Custom script: call DestroyGroup (udg_Groupname)
or create a local group, assign the group to your unit group and destroy them.
Don't listen to Heero, he wants you to do the trigger the longer way. The short and super easier way is to just put this on top of your group set:
Trigger
Events
Conditions
Actions
Custom Script: set bj_wantDestroyGroup = true

It takes less longer and prevents the leak.
__________________
Vote For The Hive Workshop!
Funny but the TRUTH! :
Quote:
Originally Posted by Sopho
Unprotecting maps is not right its like crime and YOU GO MAKE YOUR OWN MAP AND BE HAPPY! Don't be gay n00b!

1. You can if it is yours but you should not if it is not. It is like stealing information and using it as if it is your own. It si gay stuff and people who unprotect maps are gay themselves.
PurgeandFire111 is offline  
Old 05-09-2007, 02:02 PM   #4 (permalink)
 
1)ark_NiTe's Avatar

The Closet Nerd (Ret.)
 
Join Date: Nov 2006
Posts: 1,111

1)ark_NiTe has a spectacular aura about (136)1)ark_NiTe has a spectacular aura about (136)1)ark_NiTe has a spectacular aura about (136)1)ark_NiTe has a spectacular aura about (136)


It will still leak, Pick Every Unit in Region is still a point I believe, and must be dealt with. I'll post more if anyone confirms this point. (Because I'm not 100% sure)
1)ark_NiTe is offline  
Old 05-09-2007, 03:39 PM   #5 (permalink)
 
Steelb_l_ade's Avatar

Creator of ROTG
 
Join Date: Apr 2006
Posts: 151

Steelb_l_ade is on a distinguished road (67)Steelb_l_ade is on a distinguished road (67)

PayPal Donor: This user has donated to The Hive. 

RESOLVED. -thanks fellas.

HeroesLoseTEAM 1
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Set BossDuelHeroCheck = (Units in DuelUnitsCheckRegion <gen> matching ((((Matching unit) is alive) Equal to True) and ((((Matching unit) is A Hero) Equal to True) and ((Matching unit) Not equal to BossMonster))))
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Number of units in BossDuelHeroCheck) Equal to 0
Then - Actions
Custom script: call DestroyGroup (udg_BossDuelHeroCheck)
-------- STOP BOSS FROM DYING FROM POSION ETC --------
Unit - Make BossMonster Invulnerable
Unit - Remove All buffs from BossMonster
-------- PLAYERS LOSE. SHUT DOWN DUEL (TEAM 1) --------
Trigger - Turn off (This trigger)
Trigger - Turn off HeroesWinTEAM 1 <gen>
Trigger - Turn off DuelMusic <gen>
Trigger - Turn off Boss takes Damage <gen>
Trigger - Turn off BootOut TEAM2 <gen>
Leaderboard - Hide BossHealthLeaderboard
Leaderboard - Destroy BossHealthLeaderboard
Set BOSSDuelRunningT1 = False
Sound - Stop the currently playing music theme
Trigger - Run DuelDefeatMusic <gen> (checking conditions)
Game - Display to Team1 for 8.00 seconds the text: (|C0099CC99 + (You are not yet powerful enough to kill |r + (|c00FF0033Argonax|r + |C0099CC99!|r)))
Game - Display to Team1 for 8.00 seconds the text: |C0099CC99Only the ...
Game - Display to Team2 for 8.00 seconds the text: (|C0099CC99 + (The enemy team is has been defeated by |r + (|c00FF0033Argonax|r + |C0099CC99!|r)))
-------- SHUT DOWN VISABILITY MODIFIER --------
Set BossDuelBeginsPoint = (Center of ArgonaxRestRegion <gen>)
Cinematic - Ping minimap for (All players) at BossDuelBeginsPoint for 6.00 seconds, using a Flashy ping of color (100.00%, 20.00%, 20.00%)
Custom script: call RemoveLocation(udg_BossDuelBeginsPoint)
-------- REMOVE ALL SUMMONABLES FROM DUELLING ARENA --------
Set BossDuelSummonsCheck = (Units in DuelUnitsCheckRegion <gen> matching (((Matching unit) Not equal to BossMonster) and (((Matching unit) is A Hero) Equal to False)))
Unit Group - Pick every unit in BossDuelSummonsCheck and do (Actions)
Loop - Actions
Unit - Kill (Picked unit)
Custom script: call DestroyGroup (udg_BossDuelSummonsCheck)
-------- RESET ARGONAX --------
Unit - Set life of BossMonster to ((Real(BossHealthCurrent)) + (500.00 x (Real(GameDifficultyMode))))
Unit - Make BossMonster Vulnerable
Set BossDuelBeginsPoint = (Center of ArgonaxRestRegion <gen>)
Unit - Order BossMonster to Move To BossDuelBeginsPoint
Custom script: call RemoveLocation(udg_BossDuelBeginsPoint)
Wait 3.50 seconds
Unit - Make BossMonster face 270.00 over 0.50 seconds
Wait 0.50 seconds
Animation - Play BossMonster's victory animation
Wait 0.10 seconds
Sound - Play DemonRoar <gen> at 100.00% volume, attached to BossMonster
Unit - Pause BossMonster
-------- REMOVE FORCEFIELD --------
Destructible - Remove ForceField
Unit - Kill GateGuardian[1]
Unit - Kill GateGuardian[2]
Trigger - Turn on Unit Approches Final Door TEAM 1 <gen>
Trigger - Turn on Unit Approches Final Door TEAM 2 <gen>
Else - Actions
Do nothing
__________________
ROTG-Creator.
Before you ask something, at least attempt it yourself, else you'll only have to ask everything in life.

http://www.rotg.co.uk
http://www.clan-volt.batcave.net
Steelb_l_ade is offline  
Old 05-09-2007, 03:59 PM   #6 (permalink)
 
Xarwin's Avatar

Medic
 
Join Date: Nov 2006
Posts: 1,496

Xarwin is a jewel in the rough (204)Xarwin is a jewel in the rough (204)

PayPal Donor: This user has donated to The Hive. 

Quote:
Don't listen to Heero
If that was a joke, it sucked. Buf if it was sarcasm, that was worse.

Steelblade, you're using a leakchecker ?
__________________

Last edited by Xarwin; 05-09-2007 at 04:00 PM..
Xarwin is offline  
Old 05-10-2007, 04:08 PM   #7 (permalink)
 
Steelb_l_ade's Avatar

Creator of ROTG
 
Join Date: Apr 2006
Posts: 151

Steelb_l_ade is on a distinguished road (67)Steelb_l_ade is on a distinguished road (67)

PayPal Donor: This user has donated to The Hive. 

Yes, leak Check ver 2. It's very useful!
__________________
ROTG-Creator.
Before you ask something, at least attempt it yourself, else you'll only have to ask everything in life.

http://www.rotg.co.uk
http://www.clan-volt.batcave.net
Steelb_l_ade is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[JASS] Unit Group? Jetherit Triggers & Scripts 19 12-17-2007 04:19 AM
[JASS] Help with Unit Group please. mecatronic Triggers & Scripts 2 12-17-2007 01:46 AM
Unit Group Help Lashkor World Editor Help Zone 12 08-13-2007 08:10 AM
[Trigger] Unit Group Leaks Xesirin Triggers & Scripts 5 06-11-2007 10:06 PM
[Trigger] Choose strickly one unit from unit group? Melshisedek1 Triggers & Scripts 6 04-12-2007 07:38 PM

All times are GMT. The time now is 12:39 AM.






Your link here 
Credit Counseling | Loans | Credit Card Consolidation | Secured Credit Cards | Hotels in Rome
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle