Codename: Panzers - Phase One

From LANCommander
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"