From 51b846fcfb5d152469cf88e4c8b3bbfa8daf9786 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 3 Oct 2023 15:00:39 +0200 Subject: [PATCH 1/5] imagefirst --- last_stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/last_stats.php b/last_stats.php index 8458376..3688bb9 100644 --- a/last_stats.php +++ b/last_stats.php @@ -101,7 +101,7 @@ error_reporting(E_ALL); $matches $wins $deaths - $change Change Indicator + Change Indicator $change "; } From 93980bef8fefefbbc4b11cc452cd30a7e29ccf24 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 3 Oct 2023 15:01:33 +0200 Subject: [PATCH 2/5] size --- last_stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/last_stats.php b/last_stats.php index 3688bb9..cc8bdf4 100644 --- a/last_stats.php +++ b/last_stats.php @@ -101,7 +101,7 @@ error_reporting(E_ALL); $matches $wins $deaths - Change Indicator $change + Change Indicator $change "; } From 037732e42a772555740b21cf427e393265f965d2 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 3 Oct 2023 15:02:14 +0200 Subject: [PATCH 3/5] 17 --- last_stats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/last_stats.php b/last_stats.php index cc8bdf4..5e29166 100644 --- a/last_stats.php +++ b/last_stats.php @@ -101,7 +101,7 @@ error_reporting(E_ALL); $matches $wins $deaths - Change Indicator $change + Change Indicator $change "; } From eea1ae706718ec569d3cf5b418d7cb4569ff31e9 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 3 Oct 2023 15:04:11 +0200 Subject: [PATCH 4/5] height --- last_stats.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/last_stats.php b/last_stats.php index 5e29166..642d5db 100644 --- a/last_stats.php +++ b/last_stats.php @@ -101,7 +101,8 @@ error_reporting(E_ALL); $matches $wins $deaths - Change Indicator $change + Change Indicator $change + "; } From 41969557f99b65e7eec8ea71edd21e36bce384c2 Mon Sep 17 00:00:00 2001 From: Lanta Date: Tue, 3 Oct 2023 15:43:13 +0200 Subject: [PATCH 5/5] debug --- update/matchparser.ps1 | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 00e22b4..a3319e0 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -120,10 +120,12 @@ foreach ($player in $all_player_matches.playername) { $player_wins = ($all_player_matches | where-object { $_.playername -eq $player } | ForEach-Object { $_.player_matches } | where-object { $_.stats.winPlace -eq 1 }).count $winratio = ($player_wins / $player_matches) * 100 $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) - + $change = get-change -winratio_old $winratio_old -winratio $winratio + write-output 'all' write-output "Calculating for player $player" write-output "new winratio $winratio" write-output "Old winratio $winratio_old" + write-output $change $playerstats_all += [PSCustomObject]@{ @@ -136,7 +138,7 @@ foreach ($player in $all_player_matches.playername) { KD_ALL = $kills / $deaths winratio = $winratio wins = $player_wins - change = get-change -winratio_old $winratio_old -winratio $winratio + change = $change } } @@ -154,6 +156,13 @@ foreach ($player in $all_player_matches.playername) { $player_wins = ($all_player_matches | where-object { $_.playername -eq $player } | ForEach-Object { $_.player_matches } | where-object { $_.stats.winPlace -eq 1 } | Where-Object { $_.matchType -eq 'event' -and $_.gameMode -eq 'ibr' }).count $winratio = ($player_wins / $player_matches) * 100 $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) + $change = get-change -winratio_old $winratio_old -winratio $winratio + + write-output 'event' + write-output "Calculating for player $player" + write-output "new winratio $winratio" + write-output "Old winratio $winratio_old" + write-output $change $playerstats_event_ibr += [PSCustomObject]@{ playername = $player @@ -165,7 +174,7 @@ foreach ($player in $all_player_matches.playername) { KD_ALL = $kills / $deaths winratio = ($player_wins / $player_matches) * 100 wins = $player_wins - change = get-change -winratio_old $winratio_old -winratio $winratio + change = $change } } $playerstats_event_ibr = $playerstats_event_ibr | Sort-Object winratio -Descending @@ -181,6 +190,14 @@ foreach ($player in $all_player_matches.playername) { $player_wins = ($all_player_matches | where-object { $_.playername -eq $player } | ForEach-Object { $_.player_matches } | where-object { $_.stats.winPlace -eq 1 } | Where-Object { $_.matchType -eq 'airoyale' }).count $winratio = ($player_wins / $player_matches) * 100 $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) + $change = get-change -winratio_old $winratio_old -winratio $winratio + + write-output 'airoyale' + write-output "Calculating for player $player" + write-output "new winratio $winratio" + write-output "Old winratio $winratio_old" + write-output $change + $playerstats_airoyale += [PSCustomObject]@{ playername = $player @@ -192,7 +209,7 @@ foreach ($player in $all_player_matches.playername) { KD_ALL = $kills / $deaths winratio = ($player_wins / $player_matches) * 100 wins = $player_wins - change = get-change -winratio_old $winratio_old -winratio $winratio + change = $change } } $playerstats_airoyale = $playerstats_airoyale | Sort-Object winratio -Descending @@ -207,6 +224,12 @@ foreach ($player in $all_player_matches.playername) { $player_wins = ($all_player_matches | where-object { $_.playername -eq $player } | ForEach-Object { $_.player_matches } | where-object { $_.stats.winPlace -eq 1 } | Where-Object { $_.matchType -eq 'official' }).count $winratio = ($player_wins / $player_matches) * 100 $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) + $change = get-change -winratio_old $winratio_old -winratio $winratio + write-output 'official' + write-output "Calculating for player $player" + write-output "new winratio $winratio" + write-output "Old winratio $winratio_old" + write-output $change $playerstats_official += [PSCustomObject]@{ playername = $player @@ -218,7 +241,7 @@ foreach ($player in $all_player_matches.playername) { KD_ALL = $kills / $deaths winratio = ($player_wins / $player_matches) * 100 wins = $player_wins - change = get-change -winratio_old $winratio_old -winratio $winratio + change = $change } } $playerstats_official = $playerstats_official | Sort-Object winratio -Descending