Rise of the Triad: Dark War

From LANCommander
Revision as of 00:49, 22 February 2024 by DoctorDalek (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
The Developers of Incredible PowerMobila Interactiveicculus.org
Publishers
Apogee SoftwareMobila InteractiveFormGenU.S. Gold
Release Date
Windows: February 17, 1995
Genres
Shooter
View at PCGamingWiki

Actions

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

Install Script

$ProfilePath = $env:userprofile
Copy-Item -Path "$InstallDirectory\Saved Games\Nightdive Studios" -Destination "$ProfilePath\Saved Games\Nightdive Studios" -Recurse

# 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 '^seta v_width (.+)' -Substitution "seta v_width ""$($Display.Bounds.Width)""" -FilePath "$ProfilePath\Saved Games\Nightdive Studios\Rise of the Triad - Ludicrous Edition\kexengine.cfg"
Write-ReplaceContentInFile -Pattern '^seta v_height (.+)' -Substitution "seta v_height ""$($Display.Bounds.Height)""" -FilePath "$ProfilePath\Saved Games\Nightdive Studios\Rise of the Triad - Ludicrous Edition\kexengine.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_fov (.+)' -Substitution "seta r_fov ""100""" -FilePath "$ProfilePath\Saved Games\Nightdive Studios\Rise of the Triad - Ludicrous Edition\kexengine.cfg"

Uninstall Script

$ProfilePath = $env:userprofile
Remove-Item -Path "$ProfilePath\Saved Games\Nightdive Studios\Rise of the Triad - Ludicrous Edition" -Recurse -Force