From b798ff1977fee688f5957d6da5954cde63673e75 Mon Sep 17 00:00:00 2001 From: Lanta Date: Fri, 10 Nov 2023 09:30:01 +0100 Subject: [PATCH 1/8] 10 --- update/get_matches.ps1 | 2 +- update/update_clan_members.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/update/get_matches.ps1 b/update/get_matches.ps1 index 8163ca8..769dbf5 100644 --- a/update/get_matches.ps1 +++ b/update/get_matches.ps1 @@ -31,7 +31,7 @@ if ($fileContent -match "\`$clanmembers\s*=\s*array\(([^)]+)\)") { else { Write-Output "Clan members not found" } -if ($clanMembersArray.count -ge 10 ) { +if ($clanMembersArray.count -gt 10 ) { write-output "Currently not able to process more then 10 players" exit } diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index 1270898..4e69495 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -27,7 +27,7 @@ if ($fileContent -match "\`$clanmembers\s*=\s*array\(([^)]+)\)") { else { Write-Output "Clan members not found" } -if ($clanMembersArray.count -ge 10 ) { +if ($clanMembersArray.count -gt 10 ) { write-output "Currently not able to process more then 10 players" exit } From 114af619308b43fea413c58868338b00b6f07bd9 Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:03:23 +0100 Subject: [PATCH 2/8] fix --- update/matchparser.ps1 | 48 ++++++++++++++++++++-------------- update/update_clan_members.ps1 | 8 ++++-- 2 files changed, 35 insertions(+), 21 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 018e8b1..5c1efc4 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -1,3 +1,4 @@ +Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append . .\..\includes\ps1\lockfile.ps1 new-lock @@ -20,6 +21,19 @@ function Get-Change { return [math]::Round($change, 2) } +function Get-winratio { + param ( + [int]$player_wins, + [int]$player_matches + ) + if ($player_wins -eq 0 -or $player_matches -eq 0) { + $winratio = 0 + } + else { + $winratio = ($player_wins / $player_matches) * 100 + } + return $winratio +} function get-killstats { param ( $player_name, @@ -58,8 +72,8 @@ try { $filesarray += [PSCustomObject]@{name = $file.Name; date = $dateTime } } - try{ $latestFile = ($filesarray | where-object { ($_.date -gt (get-date).AddDays(-2)) -and ($_.date -lt (get-date).AddDays(-1))} | Sort-Object date)[0]} - catch {$latestFile = ($filesarray | sort-object date )[-1]} + try { $latestFile = ($filesarray | where-object { ($_.date -gt (get-date).AddDays(-2)) -and ($_.date -lt (get-date).AddDays(-1)) } | Sort-Object date)[0] } + catch { $latestFile = ($filesarray | sort-object date )[-1] } $latestFile = Get-Item -Path "$scriptroot/../data/archive/$($latestFile.name)" Write-Output "Found file $($latestFile.FullName)" @@ -144,8 +158,8 @@ foreach ($player in $all_player_matches.playername) { $kills = (($killstats.stats | where-object { $_.playername -eq $player }).kills | Measure-Object -sum).sum $dbno = (($killstats.stats | where-object { $_.playername -eq $player }).dbno | Measure-Object -sum).sum $humankills = (($killstats.stats | where-object { $_.playername -eq $player }).humankills | Measure-Object -sum).sum - $player_matches = ($killstats.stats | where-object { $_.playername -eq $player}).count - $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1}).count + $player_matches = ($killstats.stats | where-object { $_.playername -eq $player }).count + $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 }).count $winratio = ($player_wins / $player_matches) * 100 $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio @@ -184,11 +198,8 @@ foreach ($player in $all_player_matches.playername) { $kills = (($killstats.stats | where-object { $_.playername -eq $player -and $_.gameMode -eq 'ibr' -and $_.matchType -eq 'event' }).kills | Measure-Object -sum).sum $dbno = (($killstats.stats | where-object { $_.playername -eq $player -and $_.gameMode -eq 'ibr' -and $_.matchType -eq 'event' }).dbno | Measure-Object -sum).sum $humankills = (($killstats.stats | where-object { $_.playername -eq $player -and $_.gameMode -eq 'ibr' -and $_.matchType -eq 'event' }).humankills | Measure-Object -sum).sum - $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.gameMode -eq 'ibr' -and $_.matchType -eq 'event' }).count - $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.gameMode -eq 'ibr' -and $_.stats.matchType -eq 'event'}).count - - $winratio = ($player_wins / $player_matches) * 100 + $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.gameMode -eq 'ibr' -and $_.stats.matchType -eq 'event' }).count $winratio_old = (($oldstats.Intense | Where-Object { $_.playername -eq $player }).winratio) $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio @@ -206,7 +217,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = ($player_wins / $player_matches) * 100 + winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches wins = $player_wins dbno = $dbno change = $change @@ -225,8 +236,7 @@ foreach ($player in $all_player_matches.playername) { $dbno = (($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'airoyale' }).dbno | Measure-Object -sum).sum $humankills = (($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'airoyale' }).humankills | Measure-Object -sum).sum $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'airoyale' }).count - $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'airoyale'}).count - $winratio = ($player_wins / $player_matches) * 100 + $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'airoyale' }).count $winratio_old = (($oldstats.Casual | Where-Object { $_.playername -eq $player }).winratio) $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio @@ -245,7 +255,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = ($player_wins / $player_matches) * 100 + winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches wins = $player_wins dbno = $dbno change = $change @@ -263,8 +273,7 @@ foreach ($player in $all_player_matches.playername) { $dbno = (($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'official' }).dbno | Measure-Object -sum).sum $humankills = (($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'official' }).humankills | Measure-Object -sum).sum $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'official' }).count - $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'official'}).count - $winratio = ($player_wins / $player_matches) * 100 + $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'official' }).count $winratio_old = (($oldstats.official | Where-Object { $_.playername -eq $player }).winratio) $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio write-output 'official' @@ -281,7 +290,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = ($player_wins / $player_matches) * 100 + winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches wins = $player_wins dbno = $dbno change = $change @@ -301,8 +310,7 @@ foreach ($player in $all_player_matches.playername) { $dbno = (($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'custom' }).dbno | Measure-Object -sum).sum $humankills = (($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'custom' }).humankills | Measure-Object -sum).sum $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'custom' }).count - $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'custom'}).count - $winratio = ($player_wins / $player_matches) * 100 + $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'custom' }).count $winratio_old = (($oldstats.custom | Where-Object { $_.playername -eq $player }).winratio) $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio write-output 'custom' @@ -319,7 +327,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = ($player_wins / $player_matches) * 100 + winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches wins = $player_wins dbno = $dbno change = $change @@ -367,4 +375,6 @@ foreach ($file in $difference) { Remove-Item -Path "$scriptroot/../data/telemetry_cache/$file" } write-output "Operation complete" -remove-lock \ No newline at end of file +remove-lock +$Error +Stop-Transcript \ No newline at end of file diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index 4e69495..cc9c1e6 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -1,4 +1,6 @@ -. .\..\includes\ps1\lockfile.ps1 +Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append + +. .\..\includes\ps1\lockfile.ps1 new-lock if ($PSScriptRoot.length -eq 0) { @@ -125,4 +127,6 @@ $lifetimestats['updated'] = $formattedString $lifetimestats | convertto-json -Depth 100 | out-file "$scriptroot/../data/player_lifetime_data.json" -remove-lock \ No newline at end of file +remove-lock +$Error +Stop-Transcript \ No newline at end of file From ea2d54da7e4a21335d8a529384f0ca35c5e25f4e Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:14:53 +0100 Subject: [PATCH 3/8] extra logging --- includes/ps1/lockfile.ps1 | 6 ++---- update/matchparser.ps1 | 1 + update/update_clan_members.ps1 | 3 ++- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/ps1/lockfile.ps1 b/includes/ps1/lockfile.ps1 index 0e53033..55a3637 100644 --- a/includes/ps1/lockfile.ps1 +++ b/includes/ps1/lockfile.ps1 @@ -1,4 +1,5 @@ function new-lock { + Write-Output 'Setting lock' if ($env:temp) { $lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock' } @@ -10,12 +11,9 @@ function new-lock { Exit } New-Item -ItemType File -Path $lockFile | Out-Null - - - - } function remove-lock { + Write-Output 'Removing lock' if ($env:temp) { $lockFile = Join-Path -Path $env:temp -ChildPath 'lockfile_pubg.lock' } diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 5c1efc4..3fcfb6b 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -1,4 +1,5 @@ Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append +Write-Output 'Running from' . .\..\includes\ps1\lockfile.ps1 new-lock diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index cc9c1e6..f7af516 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -1,5 +1,6 @@ Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append - +Write-Output 'Running from' +Get-Location . .\..\includes\ps1\lockfile.ps1 new-lock From 9fb60f714aa167991d004901112a296d4be253cc Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:22:05 +0100 Subject: [PATCH 4/8] extra logging --- update/matchparser.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 3fcfb6b..0b7443b 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -127,7 +127,9 @@ foreach ($player in $all_player_matches) { stats = $killstat winplace = (($all_player_matches | where-object { $_.playername -eq $player_name } ).player_matches | where-object { $_.id -eq $match.id }).stats.winplace } + Write-Output "Writing to file $scriptroot/../data/killstats/$($match.id)_$player_name.json" $savekillstats | ConvertTo-Json | out-file "$scriptroot/../data/killstats/$($match.id)_$player_name.json" + } else { @@ -145,7 +147,7 @@ foreach ($file in $matchfiles) { $killstats += $json } else { - write-output "Archiveing $($file.name)" + write-output "Archiving $($file.name)" Move-Item -Path $file.FullName -Destination "$scriptroot/../data/killstats/archive" -Force } } @@ -361,8 +363,10 @@ write-output "Writing file" $date = (Get-Date).ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ssZ") $filenameDate = ($date -replace ":", "-") +write-output "writing to file : $scriptroot/../data/archive/$($filenameDate)_player_last_stats.json" ($playerstats | convertto-json) | out-file "$scriptroot/../data/archive/$($filenameDate)_player_last_stats.json" + write-output "Cleaning cache" $files_keep = (($all_player_matches).player_matches.telemetry_url | Select-Object -Unique) | ForEach-Object { $_.split("/")[-1] } From 225b5010bc70cbeb97e8ed3026e893d7d75b6d1d Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:34:10 +0100 Subject: [PATCH 5/8] fix --- update/matchparser.ps1 | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 0b7443b..0c538c0 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -163,9 +163,10 @@ foreach ($player in $all_player_matches.playername) { $humankills = (($killstats.stats | where-object { $_.playername -eq $player }).humankills | Measure-Object -sum).sum $player_matches = ($killstats.stats | where-object { $_.playername -eq $player }).count $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 }).count - $winratio = ($player_wins / $player_matches) * 100 $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) + $winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio + write-output 'all' write-output "Calculating for player $player" write-output "new winratio $winratio" @@ -204,8 +205,9 @@ foreach ($player in $all_player_matches.playername) { $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.gameMode -eq 'ibr' -and $_.matchType -eq 'event' }).count $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.gameMode -eq 'ibr' -and $_.stats.matchType -eq 'event' }).count $winratio_old = (($oldstats.Intense | Where-Object { $_.playername -eq $player }).winratio) + $winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio - + write-output 'event' write-output "Calculating for player $player" write-output "new winratio $winratio" @@ -220,7 +222,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches + winratio = $winratio wins = $player_wins dbno = $dbno change = $change @@ -241,6 +243,7 @@ foreach ($player in $all_player_matches.playername) { $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'airoyale' }).count $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'airoyale' }).count $winratio_old = (($oldstats.Casual | Where-Object { $_.playername -eq $player }).winratio) + $winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio write-output 'airoyale' @@ -258,7 +261,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches + winratio = $winratio wins = $player_wins dbno = $dbno change = $change @@ -278,6 +281,7 @@ foreach ($player in $all_player_matches.playername) { $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'official' }).count $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'official' }).count $winratio_old = (($oldstats.official | Where-Object { $_.playername -eq $player }).winratio) + $winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio write-output 'official' write-output "Calculating for player $player" @@ -293,7 +297,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches + winratio = $winratio wins = $player_wins dbno = $dbno change = $change @@ -315,6 +319,7 @@ foreach ($player in $all_player_matches.playername) { $player_matches = ($killstats.stats | where-object { $_.playername -eq $player -and $_.matchType -eq 'custom' }).count $player_wins = ($killstats | where-object { $_.stats.playername -eq $player -and $_.winplace -eq 1 -and $_.stats.matchType -eq 'custom' }).count $winratio_old = (($oldstats.custom | Where-Object { $_.playername -eq $player }).winratio) + $winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio write-output 'custom' write-output "Calculating for player $player" @@ -330,7 +335,7 @@ foreach ($player in $all_player_matches.playername) { matches = $player_matches KD_H = $humankills / $deaths KD_ALL = $kills / $deaths - winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches + winratio = $winratio wins = $player_wins dbno = $dbno change = $change From 88015d3f1aeb6067f1072df2a351f324ea005a7e Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:42:34 +0100 Subject: [PATCH 6/8] all minimum of 20 matches --- last_stats.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/last_stats.php b/last_stats.php index 82da50d..87993c9 100644 --- a/last_stats.php +++ b/last_stats.php @@ -29,7 +29,11 @@ error_reporting(E_ALL); } echo "
"; - echo "Stats for $key (minimal 8 matches)"; + if($key == 'all'){ + echo "Stats for $key (minimal 20 matches)"; + }else{ + echo "Stats for $key (minimal 8 matches)"; + } echo ""; echo " @@ -52,6 +56,10 @@ error_reporting(E_ALL); if ($player_data['matches'] < 8){ continue; } + if ($key == 'all' && $player_data['matches'] < 20) { + continue; + } + $player_name = $player_data['playername']; $deaths = number_format($player_data['deaths'], 0, ',', ''); $kills = number_format($player_data['kills'], 0, ',', ''); From 7e6652f71a7e842eca4509837d3bb669caaa8270 Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:49:36 +0100 Subject: [PATCH 7/8] loc --- update/matchparser.ps1 | 3 ++- update/update_clan_members.ps1 | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 0c538c0..44c7ad6 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -1,5 +1,6 @@ Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append Write-Output 'Running from' +(Get-Location).path . .\..\includes\ps1\lockfile.ps1 new-lock @@ -166,7 +167,7 @@ foreach ($player in $all_player_matches.playername) { $winratio_old = (($oldstats.all | Where-Object { $_.playername -eq $player }).winratio) $winratio = Get-winratio -player_wins $player_wins -player_matches $player_matches $change = get-change -OldWinRatio $winratio_old -NewWinRatio $winratio - + write-output 'all' write-output "Calculating for player $player" write-output "new winratio $winratio" diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index f7af516..7279ee6 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -1,6 +1,6 @@ Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append Write-Output 'Running from' -Get-Location +(Get-Location).path . .\..\includes\ps1\lockfile.ps1 new-lock From 1d00dd558a51f3792960d861319675bfff799fca Mon Sep 17 00:00:00 2001 From: Lanta Date: Sun, 12 Nov 2023 11:52:06 +0100 Subject: [PATCH 8/8] ss --- update/matchparser.ps1 | 2 +- update/update_clan_members.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/update/matchparser.ps1 b/update/matchparser.ps1 index 44c7ad6..4c5c21f 100644 --- a/update/matchparser.ps1 +++ b/update/matchparser.ps1 @@ -1,7 +1,7 @@ Start-Transcript -Path '/var/log/dtch/matchparser.log' -Append Write-Output 'Running from' (Get-Location).path -. .\..\includes\ps1\lockfile.ps1 +. ./../includes/ps1/lockfile.ps1 new-lock diff --git a/update/update_clan_members.ps1 b/update/update_clan_members.ps1 index 7279ee6..d289b7f 100644 --- a/update/update_clan_members.ps1 +++ b/update/update_clan_members.ps1 @@ -1,7 +1,7 @@ Start-Transcript -Path '/var/log/dtch/update_clan_members.log' -Append Write-Output 'Running from' (Get-Location).path -. .\..\includes\ps1\lockfile.ps1 +. ./../includes/ps1/lockfile.ps1 new-lock if ($PSScriptRoot.length -eq 0) {
Player