[Abandoned] Salvage Drone V1.4, (Recover crate with freight drone)

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

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

xavierd
Posts: 800
Joined: Tue, 6. Nov 07, 18:01

[Abandoned] Salvage Drone V1.4, (Recover crate with freight drone)

Post by xavierd »

05-08-10: Abandoned due to lack of interest. Use MARS instead.

---

Simple script. binds 1 hotkey which when pressed with a crate/astronaut targetted, checks that the ship and freight drone can carry it, and if so sends a freight drone to scoop it up + bring it back.

http://www.xai-corp.net/en/node/3515

Requirements:
at least 1 Freight drone
1 free hotkey
Cargo Lifesupport System on playership for astronaut retrieval

Installation:
Drop both scripts into your scripts folder, activate script editor and save/reload. Then set the hotkey for Salvage Drone in control settings.

Current limitations (intended):
Will not launch drone at a crate that the player ship cannot carry
Only collects single crate per launched drone

To do:
Move hardcoded strings to t-file.
Switch placeholder log entries with bettyspeak.
Support multiple launches.
Check for fastest available drone able to carry target

Feedback very much appreciated

Changelog:
v1.4:
-Corrected install instructions
-Fixed target type check allowing launches against non-crate/non-astronaut targets

v1.3:
-Added bettyspeak to most commands
-Implement astronaut collection

v1.2: another rewrite, mainly to clean up and comment code
-implement rough drone recovery code, pleast test on different ship sizes

v1.1:
-implement object existence checks
-should now end properly once job done
-drone will now seek nearest dockable in-sector station if playership is no longer flying in drone sector

v1:
-initial release
Last edited by xavierd on Thu, 5. Aug 10, 13:36, edited 18 times in total.
Gorium
Posts: 204
Joined: Sat, 13. Jun 09, 22:19
x3tc

Post by Gorium »

Not playing for the moment, but very interested in this script. Will surely employ once you get some feedback on it, and I get to the game again (soon I hope...).
kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen »

isn't that already a script called MARS doing this?
xavierd
Posts: 800
Joined: Tue, 6. Nov 07, 18:01

Post by xavierd »

kelmen wrote:isn't that already a script called MARS doing this?
No idea. Thought MARS was a turret script? This is just something i put together while learning to script.
Treelor
Posts: 315
Joined: Mon, 5. May 08, 01:25
x4

Post by Treelor »

MARS Goblins are reprogrammed fighter-drones capable of a multitude of tasks - including loot collection. However, they have the same limitation as your script. They cannot collect more than one crate per drone. If you make the freight drone go around and pick up all the crates at once until its cargo is full and *then* return to the mothership, you'd have my download and I'd even run this parallel to MARS.
xavierd
Posts: 800
Joined: Tue, 6. Nov 07, 18:01

Post by xavierd »

Treelor wrote:If you make the freight drone go around and pick up all the crates at once until its cargo is full and *then* return to the mothership
maybe in a future version, but unlikely at present
Last edited by xavierd on Sat, 1. May 10, 20:10, edited 1 time in total.
User avatar
Alee Enn
Posts: 2575
Joined: Sat, 28. Mar 09, 16:03
x4

Post by Alee Enn »

Is the download link broken ?
All I get when I click on the link is "ERROR - This file has been removed from the server, because the file has not been accessed in a long time."

Alien
Formerly "Alien Tech Inc."
xavierd
Posts: 800
Joined: Tue, 6. Nov 07, 18:01

Post by xavierd »

yeah sorry folks, the link is dead and i don't have my copy anymore.

i'll work on a new copy
Last edited by xavierd on Fri, 30. Apr 10, 23:12, edited 1 time in total.
User avatar
Killjaeden
Posts: 5366
Joined: Sun, 3. Sep 06, 18:19
x3tc

Post by Killjaeden »

However, they have the same limitation as your script. They cannot collect more than one crate per drone
Because it's faster/more efficient to start multiple drones that all collect a ware instead of a single slowly collecting them.
[ external image ]
X-Tended TC Mod Team Veteran.
Modeller of X3AP Split Acinonyx, Split Drake, Argon Lotan, Teladi Tern. My current work:
Image
xavierd
Posts: 800
Joined: Tue, 6. Nov 07, 18:01

Post by xavierd »

Version 1.3 up, see OP for details
xavierd
Posts: 800
Joined: Tue, 6. Nov 07, 18:01

Post by xavierd »

over 1500 views now, has anybody tested this yet?
The-Last-Communist
Posts: 405
Joined: Sun, 21. Feb 10, 13:51

Post by The-Last-Communist »

im going to test this later , gr8 idea!
Splits , for the better things in life...
xavierd
Posts: 800
Joined: Tue, 6. Nov 07, 18:01

Post by xavierd »

New version up, see OP for details.

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