From 06d02961833d4f79d6756e8d148777bc02a451da Mon Sep 17 00:00:00 2001 From: gr00tie Date: Mon, 6 Nov 2023 10:28:16 +0100 Subject: [PATCH 1/3] Update head.php font change --- includes/head.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/head.php b/includes/head.php index 1d033e5..be1b571 100644 --- a/includes/head.php +++ b/includes/head.php @@ -8,8 +8,8 @@ - + - \ No newline at end of file + From 6f0c671000a763b536c0773f58eb467a81afd25b Mon Sep 17 00:00:00 2001 From: gr00tie Date: Mon, 6 Nov 2023 10:29:20 +0100 Subject: [PATCH 2/3] Update styles.css --- includes/styles.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/styles.css b/includes/styles.css index 794135a..85055a8 100644 --- a/includes/styles.css +++ b/includes/styles.css @@ -182,7 +182,7 @@ tr:hover { /* Hacker theme styles */ body { - font-family: 'Dosis', monospace; + font-family: 'Noto Sans', monospace; background: #0f0f0f; /* Dark background for hacker aesthetic */ color: #e69109; /* Bright green text, reminiscent of old terminals */ } From 1c50a6ca591aacfcd4c074a452fbc0c67726787f Mon Sep 17 00:00:00 2001 From: Lanta Date: Mon, 6 Nov 2023 11:25:56 +0100 Subject: [PATCH 3/3] new matchparser --- update/matchparser.ps1 | 42 +++++++++++++++++++++++------------------- 1 file changed, 23 insertions(+), 19 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 66a20ac..651d7bc 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -84,35 +84,39 @@ foreach ($player in $all_player_matches) { $j++ write-output "$($player.player_matches.count)/ $j" - - $telemetryfile = "$scriptroot/../data/telemetry_cache/$($match.telemetry_url.split("/")[-1])" - if (!(test-path -Path $telemetryfile)) { - write-output "Saving $telemetryfile" - $telemetry_content = (Invoke-WebRequest -Uri $match.telemetry_url).content - $telemetry_content | out-file $telemetryfile - $telemetry = $telemetry_content | ConvertFrom-Json - } - else { - write-output "Getting from cache $telemetryfile" - $telemetry = get-content $telemetryfile | convertfrom-json - } + if (!(Test-Path -path "$scriptroot/../data/killstats/$($match.id)_$player_name.json" )) { + $telemetryfile = "$scriptroot/../data/telemetry_cache/$($match.telemetry_url.split("/")[-1])" + if (!(test-path -Path $telemetryfile)) { + write-output "Saving $telemetryfile" + $telemetry_content = (Invoke-WebRequest -Uri $match.telemetry_url).content + $telemetry_content | out-file $telemetryfile + $telemetry = $telemetry_content | ConvertFrom-Json + } + else { + write-output "Getting from cache $telemetryfile" + $telemetry = get-content $telemetryfile | convertfrom-json + } - write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)" - $killstat = get-killstats -player_name $player_name -telemetry ($telemetry | where-object { $_._T -eq 'LOGPLAYERKILLV2' }) -gameMode $match.gameMode -matchType $match.matchType - $killstats += $killstat - if ($true) { + write-output "Analyzing for player $player_name telemetry: $($match.telemetry_url)" + $killstat = get-killstats -player_name $player_name -telemetry ($telemetry | where-object { $_._T -eq 'LOGPLAYERKILLV2' }) -gameMode $match.gameMode -matchType $match.matchType + + $savekillstats = @{ matchid = $match.id created = $match.createdAt stats = $killstat + winplace = (($all_player_matches | where-object { $_.playername -eq $player_name } ).player_matches | where-object {$_.id -eq $match.id}).stats.winplace } - $savekillstats | ConvertTo-Json | out-file "$scriptroot/../data/killstats/$($match.id).json" + $savekillstats | ConvertTo-Json | out-file "$scriptroot/../data/killstats/$($match.id)_$player_name.json" + $killstats += $killstat + } else{ + write-output "match $($match.id) already in cache" + $killstats += (get-content "$scriptroot/../data/killstats/$($match.id)_$player_name.json" | ConvertFrom-Json).stats } - } + } } - $playerstats_all = @() foreach ($player in $all_player_matches.playername) { if ($null -eq $player) {