Shogo: Mobile Armor Division

From LANCommander
Revision as of 21:55, 8 January 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Titan ComputerMonolith ProductionsHyperion Entertainment
Publishers
Titan ComputerMicroidsInterplayMonolith Productions
Release Date
Windows: September 30, 1998
Genres
AdventureShooterStrategy
View at PCGamingWiki

Actions

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

Install Script

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

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^"screenwidth" "(.+)"' -Substitution """screenwidth"" ""$($Display.Bounds.Width)""" -FilePath "$InstallDirectory\autoexec.cfg"
Write-ReplaceContentInFile -Pattern '^"screenheight" "(.+)"' -Substitution """screenheight"" ""$($Display.Bounds.Height)""" -FilePath "$InstallDirectory\autoexec.cfg"

Name Change Script

Write-ReplaceContentInFile -Pattern '^"NetPlayerName" "(.+)"' -Substitution """NetPlayerName"" ""$NewPlayerAlias""" -FilePath "$InstallDirectory\autoexec.cfg"