[Script][Mar/17/2009] Transfer Freight via Drones - working

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

User avatar
Jaga_Telesin
Posts: 435
Joined: Sat, 16. Sep 06, 22:48
x4

Post by Jaga_Telesin » Tue, 25. Aug 09, 21:10

Then it flies to the ship to be collected. This now happens automatically. M2 owners now no longer have to collect the drones manually.
My freight drones are having problems with this particular step - they never dock back at the ship they launched from. They'll fly to within transporter range and unload, but then sit there with empty freight (1 shield only, installed), and not move.

Great script, I'd consider it essential to gameplay.. if I could get it working 100%. :)

Edit: I think I found the bug not allowing this to complete. If you move the ship that the drone is following/transferring to outside of transporter range, it breaks the current action, and the drone simply reverts to "follow" mode. It will never dock correctly. I just tested with two drones, and for the second one my ship didn't move at all. The drone unloaded and docked correctly. Sounds like some error checking is needed in that routine is all. Otherwise, excellent script.

User avatar
Jaga_Telesin
Posts: 435
Joined: Sat, 16. Sep 06, 22:48
x4

Post by Jaga_Telesin » Tue, 25. Aug 09, 21:24

Found another bug just now, separate post so it can be referenced separately..

When the ship sending out a freight drone is within a short distance of the factory the drone is visiting, the drone will dock, load wares, undock, transfer to main ship, and then sit there like in the first bug I found. It never tries to dock with it's main ship.

Note: I'm using a Split Panther for this testing, which being a M7 should be big enough not to have any size or class issues for the script.

User avatar
Robert Foster
Posts: 562
Joined: Wed, 2. May 07, 15:59
x3

Post by Robert Foster » Wed, 16. Dec 09, 20:33

I am going to try this.
This is something I am looking for.
I hope it works ;)

Question though., If I suddenly get into a dog fight with the enemies,
Will these drones stay put docked within my ship I am piloting.?

I do not want them to all of a sudden fly out and start fighting.
because then I will have more problems than I really want.
I Am Currently Playing ( TRANSCEND-II )
I am a Asteroid Miner and I love to Mine - Brine, Nividium, Oil, Tellurium, Plutonium, Tridium, Metal, Tritanium and Gallium Crystals.
Proud owner of Protools|HD3 system.

Tim-O
Posts: 182
Joined: Thu, 15. Dec 05, 22:02
x3tc

Post by Tim-O » Sun, 31. Jan 10, 11:23

Sorry for answering so late. I haven't been playing the game for about half a year now. And as a result I didn't check the forums any more. I don't know if I will have time to fix the bugs in the near future but thank you for pointing them out.
Jaga_Telesin wrote:
Then it flies to the ship to be collected. This now happens automatically. M2 owners now no longer have to collect the drones manually.
My freight drones are having problems with this particular step - they never dock back at the ship they launched from. They'll fly to within transporter range and unload, but then sit there with empty freight (1 shield only, installed), and not move.

Great script, I'd consider it essential to gameplay.. if I could get it working 100%. :)

Edit: I think I found the bug not allowing this to complete. If you move the ship that the drone is following/transferring to outside of transporter range, it breaks the current action, and the drone simply reverts to "follow" mode. It will never dock correctly. I just tested with two drones, and for the second one my ship didn't move at all. The drone unloaded and docked correctly. Sounds like some error checking is needed in that routine is all. Otherwise, excellent script.
I had this problem, too. But the reason was this: The drone unloaded its cargo into the ship, which then didn't have enough space left to fit the drone itself into. When I unloaded some wares, the drone docked. Perhaps you checked this already, but you never know... ;)
Jaga_Telesin wrote:Found another bug just now, separate post so it can be referenced separately..

When the ship sending out a freight drone is within a short distance of the factory the drone is visiting, the drone will dock, load wares, undock, transfer to main ship, and then sit there like in the first bug I found. It never tries to dock with it's main ship.

Note: I'm using a Split Panther for this testing, which being a M7 should be big enough not to have any size or class issues for the script.
Perhaps the reason is the same? I normally use the drones on other ships while I'm not in the sector. In these cases I let the ship fly exactly to the location of the factory (-hub) and the issue the drone command. In these cases, everything works fine.
Robert Foster wrote:I am going to try this.
This is something I am looking for.
I hope it works

Question though., If I suddenly get into a dog fight with the enemies,
Will these drones stay put docked within my ship I am piloting.?

I do not want them to all of a sudden fly out and start fighting.
because then I will have more problems than I really want.
The script has no effect on the behaviour of your drones while they are docked. When they are, they are another ware in your cargo hold behaving exactly in the way Egosoft intended. That means, they won't start fighting because they aren't fighting drones. But this doesn't have anything to do with my script ;)
BlackDemon wrote:I didn't see anyone thank you for this yet, so I just want to say thank you SO much for this script! I seriously mean it!
Thank You, man. I really appreciate that!

california3201
Posts: 22
Joined: Thu, 19. Nov 09, 00:44
x4

Just what I need

Post by california3201 » Sun, 14. Mar 10, 23:53

Were is the download button


brclancy111
Posts: 2
Joined: Fri, 2. Jul 10, 19:41
x3tc

Post by brclancy111 » Sun, 4. Jul 10, 07:58


Vivicector
Posts: 158
Joined: Thu, 10. Jul 08, 09:10

Post by Vivicector » Mon, 5. Jul 10, 08:45

This is the great script! Many thanks to its creator. It works just fine, no serious bugs. However, it would be convenient to add check for cargo space on ship/ships before starting the transfer, so problems with no space for drone and/or cargo never occur again.

Bishop149
Posts: 7232
Joined: Fri, 9. Apr 04, 21:19
x3

Post by Bishop149 » Fri, 30. Jul 10, 12:31

Question Can this script be used to make repeated runs, I.e.
Can I task a freight drone to: Pick up ware at ship A, Drop of at Ship B, Repeat to infinity.

Would be a really useful feature, especially for mobile mining!

Also, forgive my scripting ignorance but what is classed as a "Big ship", TM's, Superfreighters?
"Shoot for the Moon. If you miss, you'll end up co-orbiting the Sun alongside Earth, living out your days alone in the void within sight of the lush, welcoming home you left behind." - XKCD

Tim-O
Posts: 182
Joined: Thu, 15. Dec 05, 22:02
x3tc

Post by Tim-O » Fri, 13. Aug 10, 20:09

Vivicector wrote:This is the great script! Many thanks to its creator. It works just fine, no serious bugs. However, it would be convenient to add check for cargo space on ship/ships before starting the transfer, so problems with no space for drone and/or cargo never occur again.
Thanks! The cargo check was left out deliberately because you never know what happens while the drone is flying around. Also it would add extra complexity which I didn't want to include in my first script (more complexity => more bugs).
Bishop149 wrote:Question Can this script be used to make repeated runs, I.e.
Can I task a freight drone to: Pick up ware at ship A, Drop of at Ship B, Repeat to infinity.

Would be a really useful feature, especially for mobile mining!

Also, forgive my scripting ignorance but what is classed as a "Big ship", TM's, Superfreighters?
The drones cant be used to make repeated runs. Sorry.

As for the Big Ship issue: I haven't been scripting or playing for some time now, so I don't exactly remember. But I think a Big Ship was everything that is bigger than a TM. (i.e. M6 upwards. Not sure about M8)

User avatar
Playbahnosh
Posts: 869
Joined: Wed, 25. Mar 09, 16:26
x4

Post by Playbahnosh » Sun, 12. Dec 10, 05:14

Hey! I can see you have abandoned this script a long time ago, but if you still read this, here is some feedback:

I installed this script yesterday and it works like charm! I use it to trade stuff from my M7 Griffon, no problems so far!

There is one little thing that might be a bug: I tried to use it to trade with a Military Outpost but the drone just kept on "avoiding", it couldn't dock. Not a real problems since the Military Outpost can dock capital ships, but I thought I mention it.

Is there any chance you come back and tweak this script a little? Maybe add checks for ware and cargo space availability? That would make it totally perfect. It works without those, obviously, but you might wanna add them just for being user friendly :)

dpadula
Posts: 242
Joined: Tue, 15. Aug 06, 18:47
x4

Post by dpadula » Sun, 16. Jan 11, 19:07

Here is a bug I recently discovered but is not a big deal to avoid. I noticed it when doing the Fatal Fury missions. If I have a Freight Drone out and about and I dock to finish the mission and get a new briefing it will lock up the game. It will also do it if a drone is left in a system and I jump into a Kha'ak Sector. Like I said it is simple to avoid by just making sure that I have all of the drones in my ship. Just wanted to mention it in case others run into this issue.

Even though this has been long abandoned it is still awesome!! Thanks for the great script.
-----
Dell Precision 3600
12 gb ram
Nvidia 1060
256 gd boot ssd and 1 tb data ssd
Windows 10

User avatar
Sniper101
Posts: 11
Joined: Tue, 25. Aug 09, 06:30
x3tc

Post by Sniper101 » Sun, 23. Jan 11, 05:30

if any one cares this works with X-tended 1.1, has the same lockup / crash dpadula posted but works none the less.just dont leave your drones behind :lol:

User avatar
LizardCor
Posts: 256
Joined: Sat, 19. Mar 11, 02:57
x3tc

Post by LizardCor » Sun, 8. Jan 12, 18:28

Hi.

Script add modified status?

Calgor Grim
Posts: 116
Joined: Thu, 8. Sep 11, 14:03
x4

Post by Calgor Grim » Tue, 19. Jun 12, 19:58

Sorry to Necro this but, anyone have this?

User avatar
Jaga_Telesin
Posts: 435
Joined: Sat, 16. Sep 06, 22:48
x4

Post by Jaga_Telesin » Sat, 7. Jul 12, 07:24

Mirror host now up on Unleashed's website: download link

User avatar
Playbahnosh
Posts: 869
Joined: Wed, 25. Mar 09, 16:26
x4

Pick this up please?

Post by Playbahnosh » Sat, 28. Jul 12, 20:09

Jaga_Telesin wrote:Mirror host now up on Unleashed's website: download link
You just saved my life (well, sanity anyway). Thanks, man. I've been using this script in TC all the time with my Griffon and bigger ships. I got so used to it, that I was seriously miffed when I wanted to trade with my M7 in AP and the command just wasn't there... :shock:

How is this not in vanilla anyway? :? I mean freight drones are canon and you can already transfer stuff to and from your OWN stations (it was vanilla in TC), it goes without saying you should be able to use drones to trade. It makes life in an M7 and above MUCH easier. Since you still can't dock TS class ships in capitals, drones are the ONLY way of M7 and above to be flying solo. I use to go explore sectors in my Griffon, but since you can't even resupply e-cells without having another of your ships around, it's practically impossible without this script to go on deep-space exploration far from your infrastructure.

To any modders out there:
It seems the original author abandoned this script a long time ago. Someone should pick this up and put the finishing touches on it, like a cargo volume check and a warning not to jump if you have drones lose in the sector (it kills your game if you do). Please?
___________________________________
Image[ external image ][ external image ]

User avatar
Playbahnosh
Posts: 869
Joined: Wed, 25. Mar 09, 16:26
x4

Post by Playbahnosh » Thu, 2. Aug 12, 18:10

(sorry for the double post, but I thought this needed it's own post)
Okay, since nobody even bothered to chime in here, I think I assume correctly that this script is officially abandoned.

With that in mind, I'd like to pick up where Tim-o has left off and continue developing and debugging this script and more functionality. I PM-ed Tim-o to ask for permission.

Failing that, I ask the mods to give the final say on the abandonment on this script. I don't want to take it as my own, but I'd like use it, or rather parts of it, to develop my own version with many added functionality.

Agreed?
________________________

Edit: okay then, since nobody bothered to say anything for 3 days, I take that as a yes. I'll submit my own rework of the script soon. Thanks....I guess
___________________________________
Image[ external image ][ external image ]

JACN85
Posts: 4
Joined: Thu, 22. Dec 11, 06:33
x3tc

Post by JACN85 » Thu, 9. Aug 12, 20:32

Playbahnosh wrote:(sorry for the double post, but I thought this needed it's own post)
Okay, since nobody even bothered to chime in here, I think I assume correctly that this script is officially abandoned.

With that in mind, I'd like to pick up where Tim-o has left off and continue developing and debugging this script and more functionality. I PM-ed Tim-o to ask for permission.

Failing that, I ask the mods to give the final say on the abandonment on this script. I don't want to take it as my own, but I'd like use it, or rather parts of it, to develop my own version with many added functionality.

Agreed?
________________________

Edit: okay then, since nobody bothered to say anything for 3 days, I take that as a yes. I'll submit my own rework of the script soon. Thanks....I guess
Would be nice, but from what I can see it works perfectly fine now for "Buying" goods from a station using your TL and Drones.

That's the primary reason I downloaded it anyways.

User avatar
Playbahnosh
Posts: 869
Joined: Wed, 25. Mar 09, 16:26
x4

Post by Playbahnosh » Fri, 10. Aug 12, 01:53

Sure, it does work, but has some flaws, like freezing the game if you jump outta sector while the drones are still out, things like that.

Also, I'm planning to add more functionality to make Freight Drones useful, like the ability to collect dropped stuff from space and a really ambitious one: the ability to ferry wares between stations without the need for TS ships.

I have no ETA at this time, but I will create another thread once I do.
___________________________________
Image[ external image ][ external image ]

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”