2022-05-19 11:39:09 +02:00
|
|
|
|
# RatAttack
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
## Getting Case Data From IRC
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 17:56:21 +01:00
|
|
|
|
You can setup your IRC client to pass incoming RATSIGNALS to VoiceAttack by
|
|
|
|
|
calling the `RatAttack-cli.exe` helper tool with the RATSIGNAL as first argument
|
|
|
|
|
and an optional boolean as second argument that triggers a TTS case
|
|
|
|
|
announcement. You can find it under your VoiceAttack “Apps” folder,
|
|
|
|
|
`\alterNERDtive\RatAttack-cli.exe`.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-03-10 13:36:42 +01:00
|
|
|
|
**Note**: If you are running VoiceAttack as admin, you need to run your IRC
|
|
|
|
|
client as admin, too! Otherwise they cannot communicate. In general you want to
|
|
|
|
|
run both with normal privileges.
|
|
|
|
|
|
2021-01-21 15:42:00 +01:00
|
|
|
|
This has two purposes:
|
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
1. Announcing a new incoming case (if passing `true` as second argument).
|
|
|
|
|
1. Storing case data and making it available to VoiceAttack, e.g. for copying
|
2021-01-25 17:56:21 +01:00
|
|
|
|
the client’s system into the clipboard.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
For my AdiIRC, it looks like this (obviously change the path, please):
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
```adiirc
|
2021-05-02 16:01:57 +02:00
|
|
|
|
on *:TEXT:*RATSIGNAL*(??_SIGNAL):#fuelrats:{
|
2021-01-25 12:04:28 +01:00
|
|
|
|
if ( $away ) {
|
|
|
|
|
/run -h "X:\path\to\VoiceAttack\Apps\alterNERDtive\RatAttack-cli.exe" " $+ $replace($1-,","") $+ " false
|
|
|
|
|
}
|
|
|
|
|
else {
|
|
|
|
|
/run -h "X:\path\to\VoiceAttack\Apps\alterNERDtive\RatAttack-cli.exe" " $+ $replace($1-,","") $+ " true
|
|
|
|
|
}
|
2021-01-21 15:42:00 +01:00
|
|
|
|
}
|
|
|
|
|
```
|
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
If I am away it will just add the new case to the list. If I am not away, it
|
|
|
|
|
will announce it using TTS.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
The “replace” part handles the fact that announcements now put the system in
|
|
|
|
|
quotes. They have to be escaped as double quotes (`""`) to create a correct
|
|
|
|
|
command invocation.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
You get the gist; if not and you don’t know how to do the same thing for your
|
|
|
|
|
IRC client, either switch to AdiIRC or bribe me to make an example for yours.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-03-10 13:36:42 +01:00
|
|
|
|
mIRC is a straight forward copy & paste job from Adi to mIRC (“Tools” → “Script
|
|
|
|
|
Editor” → “Remote”). Make sure you do not strip colour codes from incoming
|
|
|
|
|
messages!
|
|
|
|
|
|
|
|
|
|
Note for Hexchat users: Hexchat doesn’t seem to have a simple way of doing this.
|
|
|
|
|
If you figure it out, I’ll gladly add instructions here.
|
|
|
|
|
|
|
|
|
|
Keep in mind that if you are not on duty (see below) you will _not_ get case
|
|
|
|
|
announcements.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
## Announcing Your Nearest CMDR
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 17:56:21 +01:00
|
|
|
|
In case you have more than one CMDR registered as a Fuel Rat you can have
|
2021-01-25 12:04:28 +01:00
|
|
|
|
VoiceAttack announce the nearest one to a case and the distance. You will have
|
|
|
|
|
to go through a couple steps to set that up:
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
1. Have all CMDRs on EDSM.
|
|
|
|
|
1. Have all profiles on EDSM set to _public_ including your flight log (which
|
|
|
|
|
includes the current location).
|
|
|
|
|
1. Set the CMDR names you want to use (“customize setting set fuel rat
|
|
|
|
|
commanders”).
|
|
|
|
|
1. Enable the nearest CMDR announcements (“customize setting enable nearest
|
|
|
|
|
commander to fuel rat case”).
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
You can use this for a single CMDR, too. A less convoluted setup for announcing
|
|
|
|
|
the distance to your location in that case is on the list™ but does not have an
|
|
|
|
|
ETA yet.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-08-26 14:51:11 +02:00
|
|
|
|
Currently there is no way to specify a platform for each CMDR separately.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 14:34:14 +01:00
|
|
|
|
## Sending Text to FuelRats IRC
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 14:34:14 +01:00
|
|
|
|
The profile will attempt to send calls to “\#fuelrats”, and you can send
|
|
|
|
|
messages from ingame chat to “\#fuelrats” and “\#ratchat”.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 14:34:14 +01:00
|
|
|
|
That will send text to windows with “\#fuelrats” and “\#ratchat” in
|
2021-01-21 15:42:00 +01:00
|
|
|
|
their title, respectively. If your IRC client does not do that, you will have to
|
|
|
|
|
change the “target” window of the `RatAttack.sendToFuelrats` and
|
|
|
|
|
`RatAttack.sendToRatchat` commands to reflect the actual window titles on your
|
|
|
|
|
system. I will look into making this more elegant to change in the future.
|
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
## Settings
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
Toggles:
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
* `auto close fuel rat case`: Automatically close a rat case when sending
|
|
|
|
|
“fuel+” via voice command or ingame chat. Default: false.
|
2022-05-19 11:39:09 +02:00
|
|
|
|
* `auto copy rat case system` : Automatically copy the client’s system to the
|
|
|
|
|
clipboard when you open a rat case. Default: true.
|
2021-01-25 12:04:28 +01:00
|
|
|
|
* `fuel rat call confirmation`: Only make calls in #fuelrats after vocal
|
|
|
|
|
confirmation to prevent mistakes. Default: true.
|
2021-01-25 17:56:21 +01:00
|
|
|
|
* `fuel rat duty`: On duty, receiving case announcements via TTS. Default: true.
|
2021-01-25 12:04:28 +01:00
|
|
|
|
* `nearest commander to fuel rat case`: Announce the nearest commander to
|
|
|
|
|
incoming rat cases. Default: false.
|
|
|
|
|
* `platform for fuel rat case`: Announce the platform for incoming rat cases.
|
|
|
|
|
Default: false.
|
2021-02-12 12:10:39 +01:00
|
|
|
|
* `system information for fuel rat case`: System information provided by Mecha.
|
|
|
|
|
Default: true.
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
Other Settings:
|
2021-01-21 15:42:00 +01:00
|
|
|
|
|
2021-01-25 12:04:28 +01:00
|
|
|
|
* `fuel rat commanders`: All your CMDRs that are ready to take rat cases. Use
|
|
|
|
|
‘;’ as separator, e.g. “Bud Spencer;Terrence Hill”. Default: "".
|
|
|
|
|
* `fuel rat platforms`: The platform(s) you want to get case announcements for
|
2021-02-12 12:10:39 +01:00
|
|
|
|
(PC, Xbox, Playstation). Use ‘;’ as separator, e.g. “PC;Xbox”. Default: "PC".
|