Space Engineers

Space Engineers

Not enough ratings
Ansible Dispatcher Script (Decommissioned)
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.064 KB
10 Oct, 2015 @ 11:11am
21 Nov, 2015 @ 9:11am
3 Change Notes ( view )

Subscribe to download
Ansible Dispatcher Script (Decommissioned)

Description
This Script Is No Longer Working As Sensor API Has Been Reworked

This is the multiple target version of the Ansible Marker Script.

This script reads in a group of sensors, then the sensors are sent out by drone swarms to detect multiple targets (merge block etc). Script then reads and stores up to 20 (can specify more than 20) targets. Once the lock switch is flipped, it outputs the position of the largest 10 ships (can specify more than 10) continously to the predefined Text Panel.

This is a vanilla script. No mods are required.


Required Setup

- A group of sensors grouped as "AN_SENSORS". These must be on the same grid as the script before triggering. Once script is triggered, these can be merge block detached and sent to the targets.
- A block named "ACTION_LOCK" for acting as a lock switch (usually Camera is used). When turned on, script will output the position of the largest set of targets to the Text Panels. Then off to cut output.
- A set of Text Panels with name starting with "CMD_TARGET_" (CMD_TARGET_1, CMD_TARGET_2 and so on). The number MUST be in sequence (no skipping) and AT LEAST the same amount as maxTargetsToLock. (If maxTargetsToLock is 10, you must have CMD_TARGET_1 up to CMD_TARGET_10). These will be the output panel for the target information.
- (Optional) A Text Panel named "TARGET_INFO_PANEL" to act as the status display panel (Displays number of tracked targets, locked targets and sensors).
- (Optional) A block named "ACTION_CHANGE" for acting as a change sensor switch. When triggered, it will re-extract all the sensors on same grid as the script (to reset to a new set of drones when old ones are destroyed).
- (Optional) A block named "ACTION_RESET" for acting as a reset switch. When triggered, all tracked and locked targets are removed and re-detected (sensors remain as the old set).
- (Optional) A block named "ACTION_INJECT_CMD" for acting as an inject command switch. When triggered, it will write the strInjectedCommand to all the Text Panels.


User Configurable Parameters

maxTargetsToTrack - Maximum number of targets to track. Note that small floating wreackage are also counted. (def: 30)
maxTargetsToLock - Maximum number of targets to lock and output position. When the lock switch is triggered, the largest targets (by grid size) will be selected and output to the Text Panel continously. (def: 10)

strInjectedCommand - The text to write to all the Text Panel when inject command switch is flipped.


Script Usage

1) The script is triggered in a Timer Loop.
2) A swarm of drones with sensors (default: "AN_SENSORS" group) on each of them are on the same grid as the script. These are the detection sensors.
3) The drone swarm is then sent out to detect enemy targets. (Another script called Bumblebee Script can be used to control this swarm)
4) The script then adds all targets detected by the sensors and tracks them.
5) The lock switch is triggered and the script selects the set of largest ships from the tracked target list and outputs all their positions continously to CMD_TARGET_* Text Panels. Format is [T:<X>:<Y>:<Z>], where <X>, <Y> and <Z> are the target's coordinates.
6) The appropriate recipient, such as the Cruise Missile Script, will choose and read from these set of Text Panels.


Demo Worlds And Other Links

The following demonstration world and blueprint uses the Ansible Dispatcher Script:
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=533481166
http://gtm.steamproxy.vip/sharedfiles/filedetails/?id=533479304

See video for the script in action.
See video attached for the script in action.
1 Comments
Clyde 7 13 Oct, 2015 @ 9:39pm 
This is incredible