diff --git a/AutoTrackR2/AutoTrackR2.csproj b/AutoTrackR2/AutoTrackR2.csproj index 6c6c944..4909965 100644 --- a/AutoTrackR2/AutoTrackR2.csproj +++ b/AutoTrackR2/AutoTrackR2.csproj @@ -8,6 +8,7 @@ <UseWPF>true</UseWPF> <Configurations>Debug;Release;Test</Configurations> <Platforms>AnyCPU;x64</Platforms> + <ApplicationIcon>AutoTrackR2.ico</ApplicationIcon> </PropertyGroup> <ItemGroup> @@ -24,6 +25,10 @@ <None Remove="KillTrackR_MainScript.ps1" /> </ItemGroup> + <ItemGroup> + <Content Include="AutoTrackR2.ico" /> + </ItemGroup> + <ItemGroup> <Resource Include="Assets\D3VL.png"> <CopyToOutputDirectory>Always</CopyToOutputDirectory> diff --git a/AutoTrackR2/AutoTrackR2.ico b/AutoTrackR2/AutoTrackR2.ico new file mode 100644 index 0000000..05e94a2 Binary files /dev/null and b/AutoTrackR2/AutoTrackR2.ico differ diff --git a/AutoTrackR2/KillTrackR_MainScript.ps1 b/AutoTrackR2/KillTrackR_MainScript.ps1 index 9d34a65..c4cb38b 100644 --- a/AutoTrackR2/KillTrackR_MainScript.ps1 +++ b/AutoTrackR2/KillTrackR_MainScript.ps1 @@ -34,24 +34,30 @@ if ($offlineMode -eq 1){ } else { $offlineMode = $false } +Write-Output "PlayerName=OfflineMode: $offlineMode" if ($videoRecord -eq 1){ $videoRecord = $true } else { $videoRecord = $false } +Write-Output "PlayerName=VideoRecord: $videoRecord" if ($visorWipe -eq 1){ $visorWipe = $true } else { $visorWipe = $false } +Write-Output "PlayerName=VisorWipe: $visorWipe" If (Test-Path $logFilePath) { Write-Output "PlayerName=Logfile found" } else { Write-Output "Logfile not found." } +If ($null -ne $apiUrl){ +Write-output "PlayerName=$apiURL" +} # Ship Manufacturers $prefixes = @( @@ -277,7 +283,7 @@ function Read-LogEntry { # Send to API # Define the data to send - If ($apiUrl -eq $true -and $offlineMode -eq $false){ + If ($null -ne $apiUrl -and $offlineMode -eq $false){ $data = @{ victim_ship = $enemyShip victim = $enemyPilot @@ -286,9 +292,9 @@ function Read-LogEntry { weapon = $weapon method = $damageType loadout_ship = $ship - #gameVersion = $GameVersion - #gameMode = $GameMode - #trackrVersion = $TrackRver + gameVersion = $GameVersion + gameMode = $GameMode + trackrVersion = $TrackRver } # Headers which may or may not be necessary