Transporter

Transporter

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Transporter

Post by dizekat »

Transporter widget:

http://dmytry.com/tmp/lua_for_spring/un ... rter_2.lua

What it does: Set transport to guard a unit, transport will help that unit move around (and will happily fly into enemy AA if you order it here, no avoidance, no automicro).
You can also press ctrl+m when you have unit selected, to have closest idlest transport assist it.

It can also preserve selection on the unit when unit is loaded, by using group9 . That may be a problem because it seems in spring unit can be in only one group at a time, so unit is unselected from any other groups. So this is off by default but can be enabled by editing the file.

You can use it with mex upgrader constructor and its "assistants".
What it doesn't do: load multiple units into 1 transport.

Updated to spring 94.1
Last edited by dizekat on 06 Aug 2013, 10:09, edited 3 times in total.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Transporter

Post by very_bad_soldier »

Nice idea! I have to disable the "normal" transportation assister to get it to work, havent I? I saw strange behavior when both widgets were enabled. Any way to make it compatible?
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: Transporter

Post by dizekat »

very_bad_soldier wrote:Nice idea! I have to disable the "normal" transportation assister to get it to work, havent I? I saw strange behavior when both widgets were enabled. Any way to make it compatible?
what do you mean by "normal" transportation assister?
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Transporter

Post by very_bad_soldier »

Oops, I assumed you know about it: http://spring.jobjol.nl/show_file.php?id=1095

Its quite useful.
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: Transporter

Post by dizekat »

very_bad_soldier wrote:Oops, I assumed you know about it: http://spring.jobjol.nl/show_file.php?id=1095

Its quite useful.
ahh, that one. I never use it.
Transporter only touches the transports that were assigned to units (with guards or with ctrl-m), so if there is any conflict, its on the transport assist's side (does transport assist control all idle transports? Then no surprise there is weird behaviours when it tries to use transport that is already being used by transporter).
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Transporter

Post by Warlord Zsinj »

It would be very cool if this did what the supcom transports did:

- When you tell a transport to guard a factory, it will automatically load any newly built units and take them to the factories rally point
User avatar
Gota
Posts: 7151
Joined: 11 Jan 2008, 16:55

Re: Transporter

Post by Gota »

best behaviour is beacon...a beacon can be made and transports and labs can be assigned to it...so mnay labs canbe assigned ot the same beacon and many transports as well..
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Transporter

Post by Google_Frog »

Warlord Zsinj wrote:It would be very cool if this did what the supcom transports did:

- When you tell a transport to guard a factory, it will automatically load any newly built units and take them to the factories rally point
There's already a widget for that.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Transporter

Post by Beherith »

And that widget works really really well, you can even make the airlab guard the land fab, and the freshly made transports will take your units to their designated targets.
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: Transporter

Post by dizekat »

Well, I'll add check if the guarded unit is immobile, and ignore order if it is, should stop my widget from trying to airlift a factory.
edit: done, re-download.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Re: Transporter

Post by Warlord Zsinj »

oh, where can I find this widget?

It'd be nice if there was a widget list that has a download link and a basic description...
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: Transporter

Post by very_bad_soldier »

There is: http://spring.vsync.de/luaManager/

Or use SpringDownloader's Widget-Module, it uses the same database.
http://spring.clan-sy.com/phpbb/viewtop ... 23&t=16122

@dizekat:
Nice, thx, I will check it out. But I think that the other widget has to be changed too.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Transporter

Post by CarRepairer »

CA's widgets are listed here.

http://trac.caspring.org/wiki/WidgetGuide

However the transport widget is not in the table, its file name is at the bottom of the page.
dizekat
Posts: 438
Joined: 07 Dec 2007, 12:10

Re: Transporter

Post by dizekat »

Updated for 0.79.1.1

Changes: removed "command n" spam.
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: Transporter

Post by klapmongool »

This widget, and its successor Transporter 2, has been broken for quite a while now. It is such a pain to have to load/unload cons manually.. Could you please look into repairing it for 91/92?
Griffith
Posts: 67
Joined: 14 Jul 2009, 19:27

Re: Transporter

Post by Griffith »

+1 with klapmongool, this widget was awesome :shock:
sad it was broken :cry:
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: Transporter

Post by klapmongool »

Griffith wrote:+1 with klapmongool, this widget was awesome :shock:
sad it was broken :cry:
Thanks for bringing this up again. I was thinking about this widget the other day when manually (un)loading my comm to cap mexes.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Transporter

Post by Beherith »

Please describe the nature of the bugs it presents in latest BA.
klapmongool
Posts: 843
Joined: 13 Aug 2007, 13:19

Re: Transporter

Post by klapmongool »

It doesn't work at all atm. I think I had vbs check the widget out some months back and he said it is a mess. Basically needs rewriting. The functionality of it was amazing :x
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: Transporter

Post by Beherith »

'doesnt work'
I ask you to expand that, and your expansion is:
'doesnt work at all'

Does it throw any errors? Do its hotkeys work?
Post Reply

Return to “Lua Scripts”