[script] broadcast return home

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

Post Reply
seedee
Posts: 78
Joined: Sat, 16. Sep 06, 05:38
x4

[script] broadcast return home

Post by seedee » Tue, 17. Feb 09, 13:36

Greetings,
this is return.home command

DESCRIPTION
Wanna tell all the fighters owned by a certain carrier to return home ?
They're all across the galaxy and there's a ton of them ?
You don't want to search for them one by one (carrier property list is just too long) ?
This script have the answer !


USAGE
This script adds two commands :
one in the Ships "general" command and one in the stations commands
execute it on a carrier or a station to see all of their property return home.
Ships will use their jump drive like any other ship would do if you'd issued the commands yourself : ship will jump if able to AND set to.


DOWNLOAD
megaupload SPK version
megaupload ZIP version
filefront hosted SPK version


TECHNIQUE
languages :
33 - french
44 - english
44 language used if else with spk manager
t-file used :
7905
command slots used :
<t id="1158">COMMAND_RETURN_BASE_STATION</t>
<t id="1255">COMMAND_RETURN_BASE_CARRIER</t>

V1.1
repaired french text files (deleted accentuated chars, replaced with regular ones as X3 TC don't like them)
added loop to check if ship's already docked => if so the ship will do nothing but stay home
added check to know if ship has docking rights => if not i will escort (carrier) or fly to (station)

Hope it will be usefull,
Seedz

edit :
added filefront hosting solution for spk file
Last edited by seedee on Tue, 17. Feb 09, 21:32, edited 2 times in total.

Walterses
Posts: 201
Joined: Sat, 27. Dec 08, 19:20
x3tc

Post by Walterses » Tue, 17. Feb 09, 15:21

does this have any bugs?
Would someone kill those dam fighters all ready? Those flack cannons are giving me a headache :s

seedee
Posts: 78
Joined: Sat, 16. Sep 06, 05:38
x4

Post by seedee » Tue, 17. Feb 09, 20:26

only one i can't get rid of without a really heavy loop test is that ships already docked will want to undock and redock,
won't really matter OOS though

(still working on it, if i can't get a "sexy" way of resolving that i might want to go brute force checking wich could be you know, kinda ressource freak for a big array of owned / docked ships)

edit :
found no way do deal with the "already docked" check without comparing owned ship VS docked ships one by one.
placed a new check to tell if owned ship has docking rights on base, if not, if ship => will escort, if station => will fly to
repaired a text file error with french version (X3 TC don't like "à" "é" "è" :()
currently uploading, files will be ok in 5minutes max

PS : reports on bugs are appreciated if found

IceFire909
Posts: 496
Joined: Mon, 8. Jun 09, 14:40
x4

Post by IceFire909 » Mon, 18. Jan 10, 21:26

The filefront hosted SPK file is broken.
Megaupload still works though.
Incoming Message (4 New Messages)
Your Xenon K has Blue Screen of Death'd.
Your #deca CPU ship has 404'd.
Your Xenon P was docking and has stopped responding.
Your #deca.cefa has limited or no network connectivity.

Kriegmarine
Posts: 9
Joined: Thu, 28. Jan 10, 22:56
x3ap

Post by Kriegmarine » Mon, 1. Feb 10, 06:28

now make a script/hotkey that launches all landed ships w/o going into teh command console. maybe even a script that has all player-owned drones return to the ship it/they were launched from

Figge04
Posts: 55
Joined: Wed, 18. Dec 13, 17:59
x3tc

Post by Figge04 » Thu, 2. Jan 14, 13:37

Links seems down
sounds like a handy little scrpit trough

Post Reply

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