Transporter
Moderator: Moderators
-
- Posts: 843
- Joined: 13 Aug 2007, 13:19
Re: Transporter
Well that is how I remember it from last time testing: it does not do anything. No errors, no weird stuff going on. At the moment I do not have the widget. The link above is down and the widget database is down. If anyone still has it please share.
Re: Transporter
I tested it yesterday, the widget does nothing, no errors, hotkeys (ctrl + m) does not work.
- Attachments
-
- unit_transporter_2.lua
- (20.79 KiB) Downloaded 16 times
Last edited by Griffith on 05 Aug 2013, 21:13, edited 1 time in total.
-
- Posts: 843
- Joined: 13 Aug 2007, 13:19
Re: Transporter
Post it as a attachment to your post plz?Griffith wrote:I tested it yesterday, the widget does nothing, no errors, hotkeys (ctrl + m) does not work.
Re: Transporter
I'll look into that... haven't played Spring in a while. I uploaded the version I have in my install, seems newer than latest update in this thread, I do not know if it still works though.
Re: Transporter
Uploaded to the original location in my op. Enjoy! (seems to work now)
Why it wasn't working: isTransport no longer exists in unitdefs , so the widget did not know that the transport is actually a transport.
I changed that to
, if there's a better way this function can be changed.
Not sure if there's any remaining issues - I also use isBuilding and isFactory to avoid interfering with the factory assist , and I did not really check if those disappeared as well.
Why it wasn't working: isTransport no longer exists in unitdefs , so the widget did not know that the transport is actually a transport.
I changed that to
Code: Select all
local function UDIsTransport(ud)
return ud.transportCapacity and (ud.transportCapacity>0)
end
Not sure if there's any remaining issues - I also use isBuilding and isFactory to avoid interfering with the factory assist , and I did not really check if those disappeared as well.
- Attachments
-
- unit_transporter_2.lua
- (21.05 KiB) Downloaded 32 times
Re: Transporter
I tested it and it works like a charm now Thanks very much for fixing this awesome widget
-
- Posts: 843
- Joined: 13 Aug 2007, 13:19
Re: Transporter
Works great for me as well. Thanks again!
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: Transporter
Iirc isBuilding and isFactory still exist, and so you should be fine.
Re: Transporter
Minor fix: ignore vertical distance between transport and transported unit when deciding to set the transported unit on wait. (Sometimes BA's heavy transports fly too high above the unit)
- Attachments
-
- unit_transporter_2.lua
- (21.1 KiB) Downloaded 43 times
Re: Transporter
Is it normal that the transport now go to destination without loading unit, then come back to pick the constructor and then go again to destination with the unit picked up ?
Old behavior was to load unit directly then go to destination.
Old behavior was to load unit directly then go to destination.
-
- Posts: 843
- Joined: 13 Aug 2007, 13:19
Re: Transporter
Same in current version (BA 9.46 and Spring 103). Is there an updated version of this widget? Or does someone have a different widget that covers the same functionality?Griffith wrote:Is it normal that the transport now go to destination without loading unit, then come back to pick the constructor and then go again to destination with the unit picked up ?
Old behavior was to load unit directly then go to destination.