From cc9aa9bbd6c053796b8bfc0978e01f893eeef97e Mon Sep 17 00:00:00 2001 From: stobbelaart Date: Sun, 26 Nov 2023 08:47:10 +0100 Subject: [PATCH 1/3] fix --- update/matchparser.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 7a113e6..358a58f 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -52,10 +52,10 @@ function get-killstats { playername = $player_name humankills = ($kills | where-object { $_.victim.accountId -notlike 'ai.*' }).count kills = $kills.count - deaths = ($attacks | where-object { $_.victim.name -eq $player_name }).count + deaths = ($kills | where-object { $_.victim.name -eq $player_name }).count gameMode = $gameMode matchType = $matchType - dbno = ($attacks | where-object { $_.dBNOMaker.name -eq $player_name }).count + dbno = ($kills | where-object { $_.dBNOMaker.name -eq $player_name }).count HumanDmg = $HumanDmg From a8b429d506315338d5deb6babf9e0451bc59bdc4 Mon Sep 17 00:00:00 2001 From: stobbelaart Date: Sun, 26 Nov 2023 10:32:47 +0100 Subject: [PATCH 2/3] fix --- update/matchparser.ps1 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 358a58f..1a152e3 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -45,14 +45,15 @@ function get-killstats { $matchType, $gameMode ) - - $kills = $telemetry | where-object { $_.killer.name -eq $player_name -and $_._T -eq 'LOGPLAYERKILLV2' } + $LOGPLAYERKILLV2 = $telemetry | where-object { $_._T -eq 'LOGPLAYERKILLV2' } + $kills = $LOGPLAYERKILLV2 | where-object { $_.killer.name -eq $player_name} + $deaths = $LOGPLAYERKILLV2 | where-object { $_.victim.name -eq $player_name -and $_.finisher.name.count -ge 1 } $HumanDmg = $([math]::Round(($telemetry | Where-Object { $_._T -eq 'LOGPLAYERTAKEDAMAGE' -and $_.attacker.name -eq $player_name -and $_.victim.accountId -notlike "ai.*" -and $_.victim.teamId -ne $_.attacker.teamId } | Measure-Object -Property damage -Sum).Sum)) return @{ playername = $player_name humankills = ($kills | where-object { $_.victim.accountId -notlike 'ai.*' }).count kills = $kills.count - deaths = ($kills | where-object { $_.victim.name -eq $player_name }).count + deaths = ($deaths).count gameMode = $gameMode matchType = $matchType dbno = ($kills | where-object { $_.dBNOMaker.name -eq $player_name }).count From db10d2c0674b9d82a9b17ef5ebee66b1b0335e4f Mon Sep 17 00:00:00 2001 From: stobbelaart Date: Sun, 26 Nov 2023 10:35:22 +0100 Subject: [PATCH 3/3] competetive --- latestmatches.php | 1 + 1 file changed, 1 insertion(+) diff --git a/latestmatches.php b/latestmatches.php index 6b14763..e536f49 100644 --- a/latestmatches.php +++ b/latestmatches.php @@ -38,6 +38,7 @@ $ogDescription = "Dive into the detailed match stats of DTCH Clan in PUBG. Explo +
";