2019-08-06 17:01:42 +02:00
|
|
|
|
# SpanshAttack #
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:27:23 +02:00
|
|
|
|
This profile uses the
|
|
|
|
|
[ED-NeutronRouter](https://github.com/sc-pulgan/ED-NeutronRouter) plugin to plot
|
|
|
|
|
neutron jumps using [spansh](https://spansh.co.uk/plotter). It fully does
|
|
|
|
|
everything you need from within the game and VoiceAttack, you won’t have to
|
|
|
|
|
visit the site at any point.
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
## Settings ##
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:27:23 +02:00
|
|
|
|
Because Elite’s keyboard handling is … weird you’ll have to set the key to use
|
|
|
|
|
for pasting text into Elite:Dangerous. If you are using a “standard” QWERT[YZ]
|
|
|
|
|
layout, you don’t have to do anything; if you are using something different, you
|
|
|
|
|
have to set it to the symbol that’s on the physical button that has `v` on
|
|
|
|
|
QWERT[YZ]. E.g. for Neo2, set it to `p`.
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:27:23 +02:00
|
|
|
|
For other settings, see the [Configuration Variables](#Configuration-Variables)
|
|
|
|
|
section.
|
|
|
|
|
|
|
|
|
|
The last “setting” in the not-so-strict sense of the word is the
|
2019-08-06 16:37:51 +02:00
|
|
|
|
`SpanshAttack.getShipRange` command. Any ship listed in there will automatically
|
|
|
|
|
have its jump range used instead of VA prompting you for it. Since, again, VA
|
|
|
|
|
will execute the first matching command found, you can create this command in
|
|
|
|
|
your own profile when you are using SpanshAttack by including it.
|
|
|
|
|
|
2019-08-06 17:27:23 +02:00
|
|
|
|
The ED-NeutronRouter plugin is technically supposed to read the current jump
|
|
|
|
|
range from EDDI; sadly a) it’s
|
|
|
|
|
[bugged](https://github.com/sc-pulgan/ED-NeutronRouter/issues/3) right now, and
|
|
|
|
|
b) EDDI is storing the _maximum_ distance for your ship instead of the current
|
|
|
|
|
/ full on fuel one.
|
|
|
|
|
|
|
|
|
|
## Importing the Profile ##
|
|
|
|
|
|
2019-10-10 12:14:57 +02:00
|
|
|
|
When importing the profile, be sure to
|
2019-08-06 17:27:23 +02:00
|
|
|
|
|
|
|
|
|
* Run the startup command. You will need to have a startup command in your
|
|
|
|
|
profile (= one that is run on profile loading) and call `SpanshAttack.startup`
|
|
|
|
|
from that one.
|
|
|
|
|
* Set configuration options. In the same startup command of yours, overwrite all
|
|
|
|
|
configuration variables you want changed; _after_ the `SpanshAttack.startup`
|
|
|
|
|
call. See [below](#Configuration-Variables).
|
|
|
|
|
* Make sure all EDDI events that SpanshAttack needs are correctly handled. For
|
2019-10-10 07:26:43 +02:00
|
|
|
|
all events used in Spanshattack that you already have handlers for in your
|
2019-08-06 17:27:23 +02:00
|
|
|
|
profile, you’ll have to include a call to `SpanshAttack.<event name>`. E.g.
|
|
|
|
|
for “EDDI Jumped”, call `SpanshAttack.EDDI Jumped` by name from your `((EDDI
|
|
|
|
|
Jumped))` command.
|
|
|
|
|
* Initialise the [bindED](https://forum.voiceattack.com/SMF?topic=564.0) plugin
|
|
|
|
|
correctly to read your Elite keybinds. Do that in your main profile’s startup
|
|
|
|
|
command to only have it run once.
|
|
|
|
|
* (Optional) Have a `SpanshAttack.getShipRange` command in your profile to
|
|
|
|
|
overwrite the default one with your ship’s ranges. See the default command for
|
|
|
|
|
pointers.
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
## Usage ##
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
### Plotting a Route ###
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
|
|
|
|
1. _Target_ the system you want to be routed to (target, do not plot to it).
|
2019-08-06 17:27:23 +02:00
|
|
|
|
1. Either exit the galaxy map or make sure you are on its first tab (or
|
|
|
|
|
auto-plotting will break).
|
2019-08-06 16:37:51 +02:00
|
|
|
|
1. Trigger the `SpanshAttack.plotRoute` command either by voice (`plot neutron
|
|
|
|
|
[course;route;trip]`) or calling it from another command
|
|
|
|
|
1. (if ship not listed in `SpanshAttack.getShipRange`) Enter your ship’s jump
|
|
|
|
|
range when prompted.
|
|
|
|
|
1. Wait for the route to be calculated. The command will automatically open the
|
|
|
|
|
galaxy map and jump to the first waypoint on your route.
|
|
|
|
|
1. Either target the first waypoint or plot to it.
|
|
|
|
|
1. Start jumping!
|
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
### Neutron Jumping ###
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:27:23 +02:00
|
|
|
|
With standard settings, just supercharge off a neutron cone. You should
|
2019-08-06 16:37:51 +02:00
|
|
|
|
automatically be taken to the galaxy map with the next waypoint selected.
|
|
|
|
|
|
|
|
|
|
In case you have disabled auto-plotting to the next waypoint, manually invoke
|
|
|
|
|
the `SpanshAttack.targetNextNeutronWaypoint` command by voice (`[target;] next
|
|
|
|
|
neutron [waypoint; way point]` or calling it from another command.
|
|
|
|
|
|
|
|
|
|
Additionally, you can use the `SpanshAttack.getNextNeutronWaypoint`
|
|
|
|
|
/ `[get;copy] next neutron [waypoint;way point]` command to copy the next
|
|
|
|
|
neutron waypoint to the clipboard.
|
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
#### Manual Re-Plot ####
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
|
|
|
|
Trigger the `SpanshAttack.replotRoute` command either by voice (`replot neutron
|
|
|
|
|
[course;route;trip]`) or calling it from another command. This will start
|
|
|
|
|
a re-plot of the current route with the same target system and jump range.
|
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
### Refueling ###
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
|
|
|
|
Whenever you refuel off a scoopable star, the profile will automatically
|
2019-10-10 07:37:04 +02:00
|
|
|
|
throttle back up to 100% speed. Unless you have disabled it in your
|
|
|
|
|
configuration, you will also automatically target the next system on your route
|
|
|
|
|
and jump to it once you leave fuel scoop range.
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
### Clearing a Route ###
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
|
|
|
|
When you reach your target system, the neutron route will automatically be
|
|
|
|
|
cleared. If you want to prematurely end your trip, call the
|
|
|
|
|
`SpanshAttack.clearRoute` / `clear neutron [course;route;trip]` command.
|
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
## Other Commands ##
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-26 21:00:21 +02:00
|
|
|
|
### Announcing Jumps Left ###
|
|
|
|
|
|
|
|
|
|
You can have VoiceAttack tell you the amount of jumps left on the current route
|
2019-08-27 23:24:10 +02:00
|
|
|
|
by invoking `SpanshAttack.announceJumpsLeft` or saying
|
2019-08-26 21:00:21 +02:00
|
|
|
|
`how many [neutron;] jumps [are;] left?`.
|
|
|
|
|
|
|
|
|
|
**Note**: Because it’s pretty much impossible to calculate a 100% accurate value
|
|
|
|
|
for the total jumps left, it will just tell you the jump count _from the current
|
|
|
|
|
neutron waypoint_.
|
|
|
|
|
|
2019-08-27 23:24:10 +02:00
|
|
|
|
### Announce elapsed time on the trip ###
|
|
|
|
|
|
|
|
|
|
SpanshAttack keeps track of your start time, even if you have the option to time
|
|
|
|
|
your trip turned off. This way you can get the time you’ve been jumping with the
|
|
|
|
|
`SpanshAttack.announceTripTime` or
|
|
|
|
|
`how long have i been [jumping;on this trip;on this neutron trip]?` commands.
|
|
|
|
|
|
2019-08-26 21:00:21 +02:00
|
|
|
|
### Helper Functions ###
|
|
|
|
|
|
2019-08-06 16:37:51 +02:00
|
|
|
|
The profile contains a lot of helper functions that get called by the
|
|
|
|
|
aforementionde commands. Have a look around, maybe learn something about
|
|
|
|
|
VoiceAttack :)
|
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
## Exposed Variables ##
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
|
|
|
|
The following Variables are _global_ and thus readable (and writeable! please
|
|
|
|
|
don’t unless it’s a config variable …) from other profiles:
|
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
### Configuration Variables ###
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
|
|
|
|
These are set in `SpanshAttack.startup` and can be overriden from your profile
|
|
|
|
|
if you have imported SpanshAttack.
|
|
|
|
|
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `Elite.pasteKey` (string): the key used for pasting into Elite. On QWERTY this
|
2019-08-06 16:37:51 +02:00
|
|
|
|
is `v`. Default: `v`.
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `SpanshAttack.timeTrip` (boolean): whether to automatically tell you at the
|
|
|
|
|
end of a trip how long it to you to get there. Default: false.
|
|
|
|
|
* `SpanshAttack.announceWaypoints` (boolean): whether to announce each waypoint
|
|
|
|
|
of the neutron route. Default: true.
|
|
|
|
|
* `SpanshAttack.announceJumpsLeft` (string): `;`-separated list of remaining
|
|
|
|
|
jumps to announce when said amounts are reached. Right now only works if they
|
|
|
|
|
are _exactly_ reached when supercharging off a neutron. Note the extra `;` at
|
|
|
|
|
the beginning and end of the string. Default: `;1;3;5;10;15;20;30;50;75;100;`
|
2019-10-10 07:37:04 +02:00
|
|
|
|
* `SpanshAttack.autoJumpAfterScooping` (boolean): whether to automatically jump
|
|
|
|
|
after fuel scooping (and moving out of scoop range). Default: true.
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `SpanshAttack.autoPlot` (boolean): whether to automatically plot to the next
|
2019-08-06 16:37:51 +02:00
|
|
|
|
waypoint on supercharging. Default: true.
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `SpanshAttack.clearOnShutdown` (boolean): whether or not to automtically clear
|
2019-10-10 06:44:30 +02:00
|
|
|
|
an active neutron route on Elite client shutdown. Default: true.
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `SpanshAttack.copyWaypointToClipboard` (boolean): whether to copy the next
|
2019-08-06 16:37:51 +02:00
|
|
|
|
waypoint into the Windows clipboard for use in other programs. Default: false.
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `SpanshAttack.useEddiForVoice` (boolean): whether to use EDDI over VA’s
|
|
|
|
|
builtin `say` command. Default: false.
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
2019-08-06 17:01:42 +02:00
|
|
|
|
### Other Variables ###
|
2019-08-06 16:37:51 +02:00
|
|
|
|
|
|
|
|
|
These variables can be used to get information about the current neutron route.
|
|
|
|
|
Please do not set them manually and / or from outside the SpanshAttack profile.
|
|
|
|
|
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `SpanshAttack.targetSystem` (string): the target system for the current
|
2019-08-06 16:37:51 +02:00
|
|
|
|
neutron route
|
2019-10-10 07:28:10 +02:00
|
|
|
|
* `SpanshAttack.nextNeutronWaypoint` (string): the next waypoint on the current
|
|
|
|
|
neutron route
|
|
|
|
|
* `SpanshAttack.neutronJumpMode` (boolean): neutron jump mode active/inactive
|
|
|
|
|
* `SpanshAttack.jumpRange` (decimal): the current ship’s jump range
|