Redneck Rampage Rides Again

From LANCommander
Revision as of 21:54, 8 January 2024 by DoctorDalek (talk | contribs) (Created new page for Redneck Rampage Rides Again)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Xatrix Entertainment
Publishers
Interplay
Release Date
Windows: May 31, 1998
Genres
AdventureShooter
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Play {InstallDir}\RedneckAgainGDX\RedneckAgainGDX.bat True

Install Script

# Define the path to the redneckagaingdx.ini file
$configPath = "$InstallDirectory\RedneckAgainGDX\redneckagaingdx.ini"

# 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 '^Path = (.+)' -Substitution "Path = $InstallDirectory\RedneckAgainGDX\" -FilePath "$configPath"
Write-ReplaceContentInFile -Pattern '^SoundBank = (.+)' -Substitution "Path = $InstallDirectory\SC-55.SoundFont.v1.2b.sf2" -FilePath "$configPath"
Write-ReplaceContentInFile -Pattern '^ScreenWidth = (.+)' -Substitution "ScreenWidth = $($Display.Bounds.Width)" -FilePath "$configPath"
Write-ReplaceContentInFile -Pattern '^ScreenHeight = (.+)' -Substitution "ScreenHeight = $($Display.Bounds.Height)" -FilePath "$configPath"
Write-ReplaceContentInFile -Pattern '^Fullscreen = (.+)' -Substitution "Fullscreen = 1" -FilePath "$configPath"

Name Change Script

# Define the path to the bloodgdx.ini file
$configPath = "$InstallDirectory\RedneckAgainGDX\redneckagaingdx.ini"

# Use regex to replace text within a file. Quotes are escaped by double quoting ("")
Write-ReplaceContentInFile -Pattern '^Player(.+)' -Substitution "Player_name = $NewPlayerAlias" -FilePath "$configPath"