[SCRIPT] GTS: Group Targeting System | v1.01 | 12 Oct 06

The place to discuss scripting and game modifications for X³: Reunion.

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

Post Reply
User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

[SCRIPT] GTS: Group Targeting System | v1.01 | 12 Oct 06

Post by Serial Kicked » Wed, 11. Oct 06, 06:51


======================
[Script] Group Targeting System
======================

French Topic

Idea from Admiral Tigerclaw

This script adds 3 keyboard shortcuts to make dogfight against ships in formation more fun. You do not any additional software to use those, atm. You can set the keys in the "Controls" menu / "Interface" panel / "Extensions" (at the bottom).
  • GTS: Target Threat - If the currently targeted ship fly in formation, the key will now aim the strongest ship of this formation. If nothing (or a station) is targeted it will first search for the nearest enemy ship. If no enemy ship is found it will try with the nearest ship.
  • GTS: Target Next - will target the next ship in the selected formation.
  • GTS: Missile Assault - will launch a missile against each ship of the selected formation. It will use the currently selected missile, and will wait 2 seconds between each missile.
These commands are mainly designed to deal with Kha'ak clusters and pirate groups.


:arrow: Compatibility:
  • This script should run on any version of X³ Reunion, but as usual it's better to have the latest version. It should be compatible with all other mods and plugins and no restart is needed. When uninstalling, check the readme file for shortcut removal instructions.
:arrow: Downloads:
Enjoy ! :mrgreen:
Last edited by Serial Kicked on Sun, 27. Apr 14, 08:47, edited 8 times in total.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Wed, 11. Oct 06, 06:52

Commands used : none

Textfile used : 8518

Supported languages : English, French

Changelog

Code: Select all

v1.01
 (*) Should correct bugs with the 'Next target' keyboard shortcut 

v1.00 - Official Release
Last edited by Serial Kicked on Thu, 12. Oct 06, 13:11, edited 1 time in total.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

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

Post by Jaga_Telesin » Wed, 11. Oct 06, 06:56

Very nice SK, now I won't have to manually target and launch against each ship in a cluster, and can terrorize squads of pirates easily. Will give this a go tomorrow!

User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Wed, 11. Oct 06, 12:38

Thanks :)

Sorry, but i've included version of a file in the archive preventing the script from targeting friendly ships. Please, redownload the file.
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo » Wed, 11. Oct 06, 12:43

SK, I'll try this new one, but, the first version had a problem retargetting enemy ships, once you've sent out missiles to all enemies. For some reason, I could not lock onto an enemy using your hot keys (biggest threat, or next), after the multiple missile key was used (which, by the way, works very well). Seems like, once you've locked on to someone, and lose that lock, you can't get it back.

I'll play with this new version. Love the idea. Will most definitely be a must have addition.

EDIT: Let me rephrase this. There is an issue with this latest version. when you are approaching an enemy group, and hit the "biggest threat" hotkey, it will target the largest threat. You can send multiple missiles at the entire group, two seconds at a time. Works great. But once you destroy the "biggest threat", and your scanner locks onto an asteroid instead of the next enemy, you cannot lock back onto anyone in that enemy group using the "next enemy" or "biggest enemy" hotkey. This can be a problem....
Last edited by russbo on Wed, 11. Oct 06, 13:00, edited 1 time in total.

User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Wed, 11. Oct 06, 12:58

I can't reproduce the bug with the current version, so i guess it's corrected aswell :)
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo » Wed, 11. Oct 06, 13:01

SK, try it in Farnham's legend, near asteroids. Once I kill the "biggest threat", and my ship targets an asteroid, I can't use that hotkey to lock onto anyone in that group. I don't understand it. using Egosoft's "next enemy" key works fine however.

EDIT: the issue seems to be with your "next enemy" hotkey. I don't use it, and the other two work just fine. I'm using the standard Egosoft "next enemy" key without any problem in its place. Again, if you destroy the "biggest threat" and you inadvertently lock on to an asteroid, you can't use the biggest threat hotkey, or your next enemy hotkey, to lock onto anyone in that group.

The multiple missile thing is neat, but, I've noticed that it will send out mulitple missiles to all ten enemies in a sector, even though you only see one in the group, and even though it's 50 km away. Something to keep in mind.

User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Wed, 11. Oct 06, 13:37

First just to be sure it's a bug and not a misundertanding of the script functions here's exactly how it should work:

- Pressing the "Target Threat" (example: key B) command should

1. If no selected ship, search for nearest enemy else nearest other ship
2. Check if the ship is in a formation
3. If YES record the ship-list of this formation
4. Check for the strongest ship of the formation (not always the wing leader)
5. Select it in the crosshair.

- The "Target Next" (example : key N) should:

1. load the recorded ship-list and the currently targeted ship
2. Select the next ship from the ship-list in the crosshair

target.next won't do anything if all the ship in the list have been destroyed. Or if there's only one ship in this list.

- The "Missile Assault" (example: key M) should:

1. load the recorded ship list
2. fire one missile on each escort ship and two on the leader


Now, as an exemple:

- if you see a bunch of pirate ships following each other (1 Pirate Nova, and 2 Buzzards). Selecting any of them then pressing should select the stronger ship of the formation (Nova). [N] should cycle between ships of the formation (Nova-> Buzzard-> Buzzard-> Nova-> ...). Pressing again should reset your selection to the Nova. [M] should fire a missile on each ship and 2 on the Nova (no matter what ship is currently selected).

- The same idea should also work with exploded khaak clusters, as long as they fly in formation (not tested).

I'll test again but i'm pretty sure it works right atm.

By the way, it's right, no distance check before launching missiles. I may add one in the next update (and maybe some sounds also). :)
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo » Wed, 11. Oct 06, 14:20

Fully understand how it works. And it works as you have described.

However, the target list must get disrupted, or put away, or something, IF, you destroy one of the targets, and your ship locks onto something else outside of the target list, ie, an asteroid, a gate, etc. You then cannot use your keys to lock onto anything, in that target list, again.

You have to use the standard Egosoft "next enemy" key (whatever you chose that to be), to lock onto an enemy that was in the initial target list.

You can lock onto enemies, using your script keys, that were not in the initial target list, ie, enemies in another part of the sector.

As I see it, when the target list is created, it can only be used once, and if you for some reason, lock onto something outside the list, the list is then unusable by your script keys. I don't understand why this is, but you should, as you've created these target lists with your script.

I don't think that it's something in my game. My game is working fairly flawlessly, with XTM, and over forty scripts. All work well together without conflicts. Not sure if this script is conflicting with any other script though. I don't know how to look for that, other than Cycrow's script installer. According to that program, this script does not conflict with anything I have running.

Hope this helps.

User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Thu, 12. Oct 06, 13:14

1.01 (12 Oct 06) released, added various failsafe checks, updated a file that wasn't supposed to still be here. It seems that the script works flawlessly. And the "target next" will now select a new group (like target threat) if the whole selected wing is dead or now OOS instead of doing nothing in this particular case.


Cheers.

I know that missile timing isn't perfect, so avoid to use big 'area of effect' missiles yet ;)
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

russbo
Posts: 862
Joined: Sat, 12. Nov 05, 21:53
x4

Post by russbo » Sun, 15. Oct 06, 07:47

SK, it works very well.

Noticed something interesting about the missiles, really kind of beneficial, actually. If you have three enemies, and you kill two of them, using the "multiple missile" key will sometimes send out three missiles at the remaining enemy.

I love that.... :)

MarkusXL
Posts: 219
Joined: Thu, 5. Nov 09, 19:44
x3tc

Post by MarkusXL » Sat, 30. Jan 10, 15:37

Sorry to bump,

but both the download links in the first post are broken - 404.

User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked » Thu, 4. Feb 10, 10:52

X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station

Post Reply

Return to “X³: Reunion - Scripts and Modding”