This is my first attempt at a lua widget, so it might be buggy. Use at your own risk :) Also, note that this widget is not compatible with the CustomFormations widget due to conflicting overrides.
http://www.unknown-files.net/spring/378 ... Transport/
The purpose of this widget is to reduce micromanagement for airlifting units. You need an airlift, and you need it now!
This lua widget overrides the ALT + move command (personally I never used it anyway). Nearby air transports will be given orders to move the selected units to the target destination. The air transports will attempt to unload the units relative to their original formation. After unloading, the air transports will return to their original position.
Basically, this widget saves you hassle of selecting air transports, giving the load order, and giving the unload order. It's all done with one click.
QuickTransport: new lua widget?
Moderator: Moderators
- OverQuantum
- Posts: 1
- Joined: 21 Nov 2007, 21:50
Very good script, thank you.
But, IMHO, there is some problem with line 155
Script not work on my Spring, until I remove this check:
I use Spring 0.75b2, XTA 8.1, but many widgets.
Downloaded file I place into \TASpring\LuaUI\Widgets\
ADD:
Same problem with TransportAssister, with same solution.
CustomFormations are not used.
But, IMHO, there is some problem with line 155
Code: Select all
if (not (UD.isBuilding or UD.isFactory)) and UD.springCategories["notair"] and UD.springCategories["notship"] then
Code: Select all
UD.springCategories["notship"]
Downloaded file I place into \TASpring\LuaUI\Widgets\
ADD:
Same problem with TransportAssister, with same solution.
CustomFormations are not used.
I think it's your fault for assuming a category, not the mod's for not using the same categories you do. UnitDef.moveData.type == "ground" would be more effective but I think it'd be better if you made sure you watch the modrules on transportability, game.transportWhatever (which can allow non-ground units to be loaded).
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: QuickTransport: new lua widget?
Could you add compabilty for chaning the allowed transports? Would be great to use it for other mods and ground transports...
Re: QuickTransport: new lua widget?
Note that CA contains widget which does similar thing and more:
http://www.caspring.org/wiki/FeatureTransportAi
http://www.caspring.org/wiki/FeatureTransportAi