Intial Commit

This commit is contained in:
2026-10-27 17:12:43 -04:00
parent b29ea9faf3
commit 288ce560f3
75 changed files with 120505 additions and 1 deletions
+18
View File
@@ -0,0 +1,18 @@
[CmdletBinding()]
param(
[string]$WorkshopRoot = 'D:\SteamLibrary\steamapps\workshop\content\108600',
[string]$GameDirectory = 'D:\SteamLibrary\steamapps\common\ProjectZomboid',
[string]$OutputDirectory = (Split-Path -Parent $PSScriptRoot),
[switch]$Install,
[string]$LocalModsDirectory = (Join-Path $env:USERPROFILE 'Zomboid\mods'),
[string]$PythonExecutable = (Join-Path $env:USERPROFILE '.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe')
)
$ErrorActionPreference = 'Stop'
if (!(Test-Path -LiteralPath $PythonExecutable)) {
throw 'Pass -PythonExecutable with a Python 3.10+ interpreter containing Pillow.'
}
$scriptArguments = @((Join-Path $PSScriptRoot 'Match-KnoxViewpoint.py'), '--workshop-root', $WorkshopRoot,
'--game-directory', $GameDirectory, '--output-directory', $OutputDirectory, '--local-mods-directory', $LocalModsDirectory)
if ($Install) { $scriptArguments += '--install' }
& $PythonExecutable @scriptArguments
if ($LASTEXITCODE -ne 0) { throw "Matcher failed with exit code $LASTEXITCODE" }