RatAttack: Updated RATSIGNAL parsing to correctly handle new format for landmark systems.

This commit is contained in:
alterNERDtive 2021-02-08 18:56:47 +01:00
parent d512b5edbc
commit 205f90870b
2 changed files with 5 additions and 1 deletions

View file

@ -8,6 +8,10 @@
but you wont get spammed in voice every time the format changes before an
update to the profiles is out.
### Fixed
* Updated RATSIGNAL parsing to correctly handle new format for landmark systems.
-----
# 4.0.2 (2021-02-04)

View file

@ -18,7 +18,7 @@ namespace RatAttack
private static alterNERDtive.util.PipeServer<Ratsignal>? ratsignalPipe;
private static readonly Regex RatsignalRegex = new Regex(
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (None|""(?<system>.+)"" \(((?<systemInfo>.*[0-9,\.]+ LY from .*|Not found in galaxy database|Valid system name))\)(?<permit> \x037\(((?<permitName>.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? - Language: .+ \(\x02Case #(?<number>\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$"
@"^RATSIGNAL - CMDR (?<cmdr>.+) - Reported System: (None|""(?<system>.+)"" \(((?<systemInfo>.*([0-9,\.]+ LY from .*|Not found in galaxy database|Valid system name)?))\)(?<permit> \x037\(((?<permitName>.*) )?Permit Required\)\x03)?) - Platform: \x03(6|3|12)(?<platform>(PC|Xbox|Playstation))\x03 - O2: (\x034)?(?<oxygen>(NOT )?OK)\x03? - Language: .+ \(\x02Case #(?<number>\d+)\x02\) \((PC|XB|PS)_SIGNAL\)\v*$"
);
private static VoiceAttackLog Log