I'm still not sure what the problem was or where it occurred, but I solved it by creating a local group and then applying it to my global group.
It was a little tedious, but it worked. I don't understand why my global unit groups all crapped out, but I guess the moral of this story is to compartmentalize
everything into small functions and avoid globals like the plague? At least that's my takeaway.
I've been having the same problem recently. I've been using unit groups in my triggers for some time, and suddenly new unit groups stop adding units and show their count as zero. I'm pretty confused. I also have a very large project, I don't know if there's some sort of correlation as far as project size (too much data and it doesn't have room to allocate memory for unit groups? I dunno)
Thank you so much, this is such an awesome library, saved me so much grief playing with arrays in an attempt to get Blizzard's half-baked list dialogs to do what I wanted.
I know that it's possible to dynamically add and remove weapons through behaviors, but it's not possible to add two of the same weapon
ID to a unit and so I'm looking for a workaround. Simply manually duplicating/copying my weapons multiple times won't really work.
I've seen some custom maps already that having something similar (Star Battle) where you can purchase extra attacks/weapons/missiles for a weapon... something like that would suffice, but I'm not sure how that was done. I want to be able to do this with beam and missile weapons and I was wondering if it would be possible to do this through abilities or maybe using magazines or something?
0
I'm still not sure what the problem was or where it occurred, but I solved it by creating a local group and then applying it to my global group. It was a little tedious, but it worked. I don't understand why my global unit groups all crapped out, but I guess the moral of this story is to compartmentalize everything into small functions and avoid globals like the plague? At least that's my takeaway.
Good luck elunder
0
@elunder: Go
I've been having the same problem recently. I've been using unit groups in my triggers for some time, and suddenly new unit groups stop adding units and show their count as zero. I'm pretty confused. I also have a very large project, I don't know if there's some sort of correlation as far as project size (too much data and it doesn't have room to allocate memory for unit groups? I dunno)
0
Nevermind, did it through triggers. I'll post an example within a couple days since no one seems to know how to do this.
0
Thank you so much, this is such an awesome library, saved me so much grief playing with arrays in an attempt to get Blizzard's half-baked list dialogs to do what I wanted.
0
Bump
0
Hello everyone!
I know that it's possible to dynamically add and remove weapons through behaviors, but it's not possible to add two of the same weapon ID to a unit and so I'm looking for a workaround. Simply manually duplicating/copying my weapons multiple times won't really work.
I've seen some custom maps already that having something similar (Star Battle) where you can purchase extra attacks/weapons/missiles for a weapon... something like that would suffice, but I'm not sure how that was done. I want to be able to do this with beam and missile weapons and I was wondering if it would be possible to do this through abilities or maybe using magazines or something?