mirror of
https://github.com/BubbaGumpShrump/AutoTrackR2.git
synced 2025-05-15 13:55:30 +00:00
Merge branch 'BubbaGumpShrump:default' into default
This commit is contained in:
commit
e5f968633d
7 changed files with 32 additions and 28 deletions
Binary file not shown.
Before ![]() (image error) Size: 68 KiB After ![]() (image error) Size: 297 KiB ![]() ![]() |
BIN
AutoTrackR2/Assets/IP.png
Normal file
BIN
AutoTrackR2/Assets/IP.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 618 KiB |
|
@ -45,6 +45,12 @@
|
||||||
<Resource Include="Assets\Gankhub.png">
|
<Resource Include="Assets\Gankhub.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
|
<Resource Include="Assets\HEX.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Resource>
|
||||||
|
<Resource Include="Assets\IP.png">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</Resource>
|
||||||
<Resource Include="Assets\NMOS.png">
|
<Resource Include="Assets\NMOS.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
|
@ -72,9 +78,6 @@
|
||||||
<Resource Include="Assets\AutoTrackR.png">
|
<Resource Include="Assets\AutoTrackR.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
<Resource Include="Assets\HEX.png">
|
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
|
||||||
</Resource>
|
|
||||||
<Resource Include="Assets\HIT.png">
|
<Resource Include="Assets\HIT.png">
|
||||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
</Resource>
|
</Resource>
|
||||||
|
|
|
@ -77,7 +77,7 @@
|
||||||
<TextBlock Text="Theme:" Foreground="{DynamicResource TextBrush}" FontSize="16" Margin="0,7,0,5"/>
|
<TextBlock Text="Theme:" Foreground="{DynamicResource TextBrush}" FontSize="16" Margin="0,7,0,5"/>
|
||||||
<Slider x:Name="ThemeSlider"
|
<Slider x:Name="ThemeSlider"
|
||||||
Minimum="0"
|
Minimum="0"
|
||||||
Maximum="20"
|
Maximum="21"
|
||||||
Value="0"
|
Value="0"
|
||||||
TickFrequency="1"
|
TickFrequency="1"
|
||||||
IsSnapToTickEnabled="True"
|
IsSnapToTickEnabled="True"
|
||||||
|
|
|
@ -341,6 +341,16 @@ namespace AutoTrackR2
|
||||||
);
|
);
|
||||||
ChangeLogo("/Assets/Gankhub.png");
|
ChangeLogo("/Assets/Gankhub.png");
|
||||||
break;
|
break;
|
||||||
|
case 21: // IronPoint
|
||||||
|
UpdateThemeColors(
|
||||||
|
(Color)ColorConverter.ConvertFromString("#C83300"), // Accent/Border
|
||||||
|
(Color)ColorConverter.ConvertFromString("#2D2D2D"), // Button
|
||||||
|
(Color)ColorConverter.ConvertFromString("#161515"), // Background
|
||||||
|
(Color)ColorConverter.ConvertFromString("#ffffff"), // Text
|
||||||
|
(Color)ColorConverter.ConvertFromString("#aaaaaa") // AltText
|
||||||
|
);
|
||||||
|
ChangeLogo("/Assets/IP.png", (Color)ColorConverter.ConvertFromString("#3F1210"));
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -89,9 +89,9 @@ $prefixes = @(
|
||||||
|
|
||||||
# Define the regex pattern to extract information
|
# Define the regex pattern to extract information
|
||||||
$killPattern = "<Actor Death> CActor::Kill: '(?<EnemyPilot>[^']+)' \[\d+\] in zone '(?<EnemyShip>[^']+)' killed by '(?<Player>[^']+)' \[[^']+\] using '(?<Weapon>[^']+)' \[Class (?<Class>[^\]]+)\] with damage type '(?<DamageType>[^']+)'"
|
$killPattern = "<Actor Death> CActor::Kill: '(?<EnemyPilot>[^']+)' \[\d+\] in zone '(?<EnemyShip>[^']+)' killed by '(?<Player>[^']+)' \[[^']+\] using '(?<Weapon>[^']+)' \[Class (?<Class>[^\]]+)\] with damage type '(?<DamageType>[^']+)'"
|
||||||
$puPattern = '<\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z> \[Notice\] <ContextEstablisherTaskFinished> establisher="CReplicationModel" message="CET completed" taskname="StopLoadingScreen" state=[^ ]+ status="Finished" runningTime=\d+\.\d+ numRuns=\d+ map="megamap" gamerules="SC_Default" sessionId="[a-f0-9\-]+" \[Team_Network\]\[Network\]\[Replication\]\[Loading\]\[Persistence\]'
|
$puPattern = '<\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z> \[Notice\] <ContextEstablisherTaskFinished> establisher="CReplicationModel" message="CET completed" taskname="StopLoadingScreen" state=[^\s()]+\(\d+\) status="Finished" runningTime=\d+\.\d+ numRuns=\d+ map="megamap" gamerules="SC_Default" sessionId="[a-f0-9\-]+" \[Team_Network\]\[Network\]\[Replication\]\[Loading\]\[Persistence\]'
|
||||||
$acPattern = "ArenaCommanderFeature"
|
$loadoutPattern = '<Jump Drive State Changed>.*.adam: (?<ShipName>.*.) in'
|
||||||
$loadoutPattern = '\[InstancedInterior\] OnEntityLeaveZone - InstancedInterior \[(?<InstancedInterior>[^\]]+)\] \[\d+\] -> Entity \[(?<Entity>[^\]]+)\] \[\d+\] -- m_openDoors\[\d+\], m_managerGEID\[(?<ManagerGEID>\d+)\], m_ownerGEID\[(?<OwnerGEID>[^\[]+)\]'
|
$acPattern = "Requesting Mode Change" # "ArenaCommanderFeature"
|
||||||
$shipManPattern = "^(" + ($prefixes -join "|") + ")"
|
$shipManPattern = "^(" + ($prefixes -join "|") + ")"
|
||||||
# $loginPattern = "\[Notice\] <AccountLoginCharacterStatus_Character> Character: createdAt [A-Za-z0-9]+ - updatedAt [A-Za-z0-9]+ - geid [A-Za-z0-9]+ - accountId [A-Za-z0-9]+ - name (?<Player>[A-Za-z0-9_-]+) - state STATE_CURRENT" # KEEP THIS INCASE LEGACY LOGIN IS REMOVED
|
# $loginPattern = "\[Notice\] <AccountLoginCharacterStatus_Character> Character: createdAt [A-Za-z0-9]+ - updatedAt [A-Za-z0-9]+ - geid [A-Za-z0-9]+ - accountId [A-Za-z0-9]+ - name (?<Player>[A-Za-z0-9_-]+) - state STATE_CURRENT" # KEEP THIS INCASE LEGACY LOGIN IS REMOVED
|
||||||
$loginPattern = "\[Notice\] <Legacy login response> \[CIG-net\] User Login Success - Handle\[(?<Player>[A-Za-z0-9_-]+)\]"
|
$loginPattern = "\[Notice\] <Legacy login response> \[CIG-net\] User Login Success - Handle\[(?<Player>[A-Za-z0-9_-]+)\]"
|
||||||
|
@ -148,19 +148,13 @@ Do {
|
||||||
}
|
}
|
||||||
# Get Loadout
|
# Get Loadout
|
||||||
if ($line -match $loadoutPattern) {
|
if ($line -match $loadoutPattern) {
|
||||||
$entity = $matches['Entity']
|
If ($matches['ShipName'] -match $cleanupPattern){
|
||||||
$ownerGEID = $matches['OwnerGEID']
|
|
||||||
|
|
||||||
If ($ownerGEID -eq $global:userName -and $entity -match $shipManPattern) {
|
|
||||||
$tryloadOut = $entity
|
|
||||||
If ($tryloadOut -match $cleanupPattern){
|
|
||||||
if ($null -ne $matches[1]){
|
if ($null -ne $matches[1]){
|
||||||
$global:loadOut = $matches[1]
|
$global:loadOut = $matches[1]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
Write-Output "PlayerShip=$global:loadOut"
|
||||||
}
|
}
|
||||||
Write-Output "PlayerShip=$global:loadOut"
|
|
||||||
|
|
||||||
If ($line -match $versionPattern){
|
If ($line -match $versionPattern){
|
||||||
$global:GameVersion = $matches['gameversion']
|
$global:GameVersion = $matches['gameversion']
|
||||||
|
@ -465,18 +459,15 @@ function Read-LogEntry {
|
||||||
}
|
}
|
||||||
|
|
||||||
#Set loadout
|
#Set loadout
|
||||||
if ($line -match $loadoutPattern) {
|
if ($line -match $loadoutPattern) {
|
||||||
$entity = $matches['Entity']
|
If ($matches['ShipName'] -match $cleanupPattern){
|
||||||
$ownerGEID = $matches['OwnerGEID']
|
if ($null -ne $matches[1]){
|
||||||
|
$global:loadOut = $matches[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Write-Output "PlayerShip=$global:loadOut"
|
||||||
|
}
|
||||||
|
|
||||||
If ($ownerGEID -eq $global:userName -and $entity -match $shipManPattern) {
|
|
||||||
$tryloadOut = $entity
|
|
||||||
If ($tryloadOut -match $cleanupPattern){
|
|
||||||
$global:loadOut = $matches[1]
|
|
||||||
}
|
|
||||||
Write-Output "PlayerShip=$global:loadOut"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace AutoTrackR2
|
||||||
{
|
{
|
||||||
public partial class UpdatePage : UserControl
|
public partial class UpdatePage : UserControl
|
||||||
{
|
{
|
||||||
private string currentVersion = "v2.06-stable";
|
private string currentVersion = "v2.08";
|
||||||
private string latestVersion;
|
private string latestVersion;
|
||||||
|
|
||||||
public UpdatePage()
|
public UpdatePage()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue