wc3campaigns
WC3C Homepage - www.wc3c.netUser Control Panel (Requires Log-In)Engage in discussions with other users and join contests in the WC3C forums!Read one of our many tutorials, ranging in difficulty from beginner to advanced!Show off your artistic talents in the WC3C Gallery!Download quality models, textures, spells (vJASS/JASS), systems, and scripts!Download maps that have passed through our rigorous approval process!

Go Back   Wc3C.net > Warcraft III Modding > Developer's Corner > Triggers & Scripts
User Name
Password
Register Rules Get Hosted! Chat Pastebin FAQ and Rules Members List Calendar



Reply
 
Thread Tools Search this Thread
Old 06-09-2010, 02:10 PM   #1
GolluM[KoMe]
User
 
GolluM[KoMe]'s Avatar
 
Join Date: Jan 2009
Posts: 31

GolluM[KoMe] has little to show at this moment (0)

Send a message via MSN to GolluM[KoMe]
Default Does Getting Unit Group make leaks ??

Does Getting Unit Group make leaks (by exemple how many units in unit group?) ?? (in GUI) (or getting player group)
Maybe conditions don't make any leaks ?

And does "custom script : set bj_wantDestroyGroup = true" only works for the next created group or for the whole trigger ?
+ If I use a region in an unit group, does it leak, even with the function above ?

Does this work ?
Trigger:
Custom script: set bj_wantDestroyGroup=true
Unit Group - Pick every unit in (Units in (Playable map area)) and do (Unit - Kill (Picked unit))

Or only this ?
Trigger:
Custom script: set bj_wantDestroyGroup=true
Collapse Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
Collapse Loop - Actions
Unit - Kill (Picked unit)

And please tell me how to remove the other threads ... (i stupidly clicked several times as it was lagging ...)
__________________

Last edited by GolluM[KoMe] : 06-09-2010 at 03:43 PM.
GolluM[KoMe] is offline   Reply With Quote
Sponsored Links - Login to hide this ad!
Old 06-09-2010, 07:59 PM   #2
0zyx0
Perfectionist noob
 
0zyx0's Avatar
 
Join Date: Mar 2009
Posts: 255

0zyx0 will become famous soon enough (38)0zyx0 will become famous soon enough (38)

Default

Setting bj_wantDestroyGroup to true, does only apply for the next time the variable is accesed, since this particular variable is set to false when used. As for the two action strips, they don't leak a group, but can leak other handles (for example locations) if you are not careful.
__________________
My new signature - Now easier to understand than ever!
0zyx0 is offline   Reply With Quote
Old 06-09-2010, 08:28 PM   #3
GolluM[KoMe]
User
 
GolluM[KoMe]'s Avatar
 
Join Date: Jan 2009
Posts: 31

GolluM[KoMe] has little to show at this moment (0)

Send a message via MSN to GolluM[KoMe]
Default

Okay thanks a lot !!

So this doesnt leak ? :
Trigger:
Custom script: set bj_wantDestroyGroup=true
Hero - Give (Last created item) to (Random unit from (Units in RamlondRegion <gen> matching (((Unit-type of (Matching unit)) Egal √* Market) and ((Number of items carried by (Matching unit)) Inf√©rieur √* 6))))


I mean, doest it work with events that is not basically an Unit Group one but that uses Unit Groups ??
__________________

Last edited by GolluM[KoMe] : 06-09-2010 at 11:00 PM.
GolluM[KoMe] is offline   Reply With Quote
Old 06-09-2010, 11:29 PM   #4
Ammorth
I blink, therefore I am.
 
Ammorth's Avatar
 
Join Date: Sep 2006
Posts: 1,812

Submissions (10)

Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)Ammorth is a glorious beacon of light (461)

Default

no, that does not leak.

Using bj_wantDestroyGroup within GUI will cause the unit group created by the Enum to be destroyed after use. As long as you don't use other leaking GUI functions in the group loop (center of region, position of unit, etc) it wont leak.
__________________
Ammorth is offline   Reply With Quote
Old 06-09-2010, 11:48 PM   #5
GolluM[KoMe]
User
 
GolluM[KoMe]'s Avatar
 
Join Date: Jan 2009
Posts: 31

GolluM[KoMe] has little to show at this moment (0)

Send a message via MSN to GolluM[KoMe]
Default

Great :) Thanks :)
__________________
GolluM[KoMe] is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT. The time now is 06:38 PM.


Affiliates
The Hubb The JASS Vault Clan WEnW Campaign Creations Clan CBS GamesModding Flixreel Videos

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services