Codename: Panzers - Phase One: Difference between revisions
DoctorDalek (talk | contribs) m (DoctorDalek moved page Games/Codename: Panzers - Phase One to Codename: Panzers - Phase One without leaving a redirect) |
DoctorDalek (talk | contribs) (Fixes to deprecated PowerShell scripts) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
[[Category:Games]] | [[Category:Games]] | ||
{{InfoBox | {{Game.InfoBox | ||
|Cover = cover.jpg | |Cover = cover.jpg | ||
|Developers = | |||
|Publishers = | |||
|Release Date = | |Release Date = | ||
{{InfoBox | {{Game.InfoBox.ReleaseDate|Windows|September 30, 2004}} | ||
| PCGamingWiki = Codename:_Panzers_-_Phase_One | |Genres = | ||
|PCGamingWiki = Codename:_Panzers_-_Phase_One}} | |||
{{Game.ActionBox | |||
|Actions = | |||
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\PANZERS.exe|Arguments = |WorkingDirectory = |Primary = True}} | |||
}} | }} | ||
= | |||
{{Game.Scripts.Install | |||
|Name = Install Script | |||
|Description = | |||
|RequiresAdmin = False | |||
|Contents = | |||
<syntaxhighlight lang="powershell" line> | <syntaxhighlight lang="powershell" line> | ||
$ | # Bounds are accessible by $Display.Bounds.Width and $Display.Bounds.Height | ||
$ | $Display = Get-PrimaryDisplay | ||
$X = $Display.Bounds.Width | |||
$Y = $Display.Bounds.Height | |||
Write-ReplaceContentInFile - | 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" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | |||
= | |||
{{Game.Scripts.NameChange | |||
|Name = Name Change Script | |||
|Description = | |||
|RequiresAdmin = False | |||
|Contents = | |||
<syntaxhighlight lang="powershell" line> | <syntaxhighlight lang="powershell" line> | ||
Write-ReplaceContentInFile -Pattern '^Player name = (.+)' -Substitution "Player name = $NewPlayerAlias" -FilePath "$InstallDirectory\options.ini" | |||
Write-ReplaceContentInFile - | |||
</syntaxhighlight> | </syntaxhighlight> | ||
}} |
Latest revision as of 02:05, 6 January 2024
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"