• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Leak problems

Status
Not open for further replies.
Level 3
Joined
Aug 18, 2008
Messages
52
QUESTION <-------
Will using the udg_temp_unit_group script make it so my income trigger wont work??? I have huge leaks in my map.... so many that it crashes wc3 for any1 who plays my map.

which do you perfer:
-udg_temp_unit_group
-=-=-= OR =-=-=-
-set bj_wantDestroyGroup

and whats the difference between them.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
so many that it crashes wc3 for any1 who plays my map.

Ok umm, leaks do not cause a map to crash. They will only cause a crash if you leak so many it hits the player's RAM which would mean atleast running the processor at 100% for 30+ second using all its power to make objects to leak. Thus your map must be crashing due to other reasons althoug removing leaks is still a great idea.

Also please make your own thread and do not necro hijack other people's threads.

Ideally you use none of them and go straight to JASS, but I dought you can do JASS thou. Honestly removing leaks will not cause anything to stop working, as afterall leaks are caused when usless data is lost into RAM (no references to it so it can be removed). Setting globals via custom script also will not cause systems to stop working, afterall GUI is compiled to "custom script" appon map save, however it may be good to switch over to pure JASS if you start using that commonly.
 
Level 3
Joined
Aug 18, 2008
Messages
52
well... im trying to learn jass, but idk how you know what to type in. ive done tuts, but they dont tell me how i will know what to do if i want to do stuff w/e way i want.like, they teach u how to kill a unit, but i want to make incomes or something else. how do we know what funtions we do and stuff. JASS makes me mad..... i don't know what to put after i say 'call' or anything cause they only teach u from examples.... is there like a list of JASS functions i should know about???
 
Level 6
Joined
Jun 14, 2008
Messages
176
well... im trying to learn jass, but idk how you know what to type in. ive done tuts, but they dont tell me how i will know what to do if i want to do stuff w/e way i want.like, they teach u how to kill a unit, but i want to make incomes or something else. how do we know what funtions we do and stuff. JASS makes me mad..... i don't know what to put after i say 'call' or anything cause they only teach u from examples.... is there like a list of JASS functions i should know about???

Do you know how to use regular GUI/Triggers well? It's easiest to learn by making triggers in GUI, then converting them to custom text, seeing what the GUI is called in JASS.

Just select the stuff you want to see, in GUI, then once you finished, convert it to custom text to see what it is in JASS.

Also here's a tutorial.
 
Level 29
Joined
Jul 29, 2007
Messages
5,174
which do you perfer:
-udg_temp_unit_group
-=-=-= OR =-=-=-
-set bj_wantDestroyGroup

and whats the difference between them.

bj_wantDestroyGroup simply sets the destroyGroup (or whatever it's called) variable in the next group made to true. When that variable is true the group is destroyed after it's actions.

This means that you can use unit picks with no worries about leaks.

Setting them into a group allows you to choose when you want to destroy the group.
If you use this, don't forget to DestroyGroup(group) it.
 
Status
Not open for further replies.
Top