Codename: Panzers - Phase One

From LANCommander
Revision as of 02:05, 6 January 2024 by DoctorDalek (talk | contribs) (Fixes to deprecated PowerShell scripts)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Release Date
Windows: September 30, 2004
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\PANZERS.exe True

Install Script

# Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height
$Display = Get-PrimaryDisplay

$X = $Display.Bounds.Width
$Y = $Display.Bounds.Height

Write-ReplaceContentInFile -Pattern 'FullScreenWidth = (.+)' -Substitution "FullScreenWidth = $X" -FilePath "$InstallDirectory\options.ini"
Write-ReplaceContentInFile -Pattern 'FullScreenHeight = (.+)' -Substitution "FullScreenHeight = $Y" -FilePath "$InstallDirectory\options.ini"
Write-ReplaceContentInFile -Pattern 'FullScreen = (.+)' -Substitution "FullScreen = 1" -FilePath "$InstallDirectory\options.ini"

Name Change Script

Write-ReplaceContentInFile -Pattern '^Player name = (.+)' -Substitution "Player name = $NewPlayerAlias" -FilePath "$InstallDirectory\options.ini"