Page 1 of 1
Trouble with limiting unit build from unitdef lists
Posted: 20 Sep 2010, 03:54
by bobthedinosaur
Gadget is skystar's
http://pastebin.com/Jiac7Jhm
I've tweaked to my hearts content. Well till my patience ran out. I can't seem to get this working.
Re: Trouble with limiting unit build from unitdef lists
Posted: 20 Sep 2010, 04:45
by Niobium
For some reason the gadget mentions, but doesn't make use of, the :AllowUnitCreation callin. I'd say using that would greatly shorten and simplify the gadget, it really depends what you want to have happen in the edge cases, i.e. should units sit at 0% done when you are at limit, or should builders just skip it in their queue.
Re: Trouble with limiting unit build from unitdef lists
Posted: 20 Sep 2010, 04:54
by smoth
unit limit is built into spring. For group unit limits there are other gadgets.
have fun dealing with morph.
Re: Trouble with limiting unit build from unitdef lists
Posted: 20 Sep 2010, 14:32
by bobthedinosaur
Smoth, what other gadgets use a group limiter? That is kind of what I am going for. Well something I can set with a mod option.
Niob, if it was just commented in there that was me, and not skystar's original gadget. I was looking for a way to put that in there, but I didn't change any of the original code.
Re: Trouble with limiting unit build from unitdef lists
Posted: 20 Sep 2010, 18:41
by smoth
Gundam has one it should be in the 1.21 files if not I can give you my version. I have a few bugs left to quash but I should be done soonish. If you need it tonight I should be on around about 7/8pm cst
Re: Trouble with limiting unit build from unitdef lists
Posted: 20 Sep 2010, 21:06
by zwzsg
There:
Re: Trouble with limiting unit build from unitdef lists
Posted: 21 Sep 2010, 02:29
by bobthedinosaur
Wow. That work's wonderfully Z! Now I just have to find out how you did it.
