Rise of the Triad: Dark War: Difference between revisions

From LANCommander
(Created new page for Rise of the Triad: Dark War)
 
No edit summary
 
Line 31: Line 31:


# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
# 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_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\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\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"
</syntaxhighlight>
</syntaxhighlight>
}}
}}
Line 44: Line 44:
<syntaxhighlight lang="powershell" line>
<syntaxhighlight lang="powershell" line>
$ProfilePath = $env:userprofile
$ProfilePath = $env:userprofile
remove-Item -Path "$ProfilePath\Saved Games\Nightdive Studios" -Recurse -force
Remove-Item -Path "$ProfilePath\Saved Games\Nightdive Studios\Rise of the Triad - Ludicrous Edition" -Recurse -Force
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 00:49, 22 February 2024

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