Rise of the Triad: Dark War

From LANCommander
Revision as of 21:54, 8 January 2024 by DoctorDalek (talk | contribs) (Created new page for Rise of the Triad: Dark War)
(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\kexengine.cfg"
Write-ReplaceContentInFile -Pattern '^seta v_height (.+)' -Substitution "seta v_height ""$($Display.Bounds.Height)""" -FilePath "$ProfilePath\Saved Games\Nightdive Studios\kexengine.cfg"
Write-ReplaceContentInFile -Pattern '^seta r_fov (.+)' -Substitution "seta r_fov ""100""" -FilePath "$ProfilePath\Saved Games\Nightdive Studios\kexengine.cfg"

Uninstall Script

$ProfilePath = $env:userprofile
remove-Item -Path "$ProfilePath\Saved Games\Nightdive Studios" -Recurse -force