Duke Nukem 3D: Difference between revisions

From LANCommander
(Created new page for Duke Nukem 3D)
 
No edit summary
 
Line 5: Line 5:
{{Game.InfoBox.Developer|3D Realms}}
{{Game.InfoBox.Developer|3D Realms}}
|Publishers =
|Publishers =
{{Game.InfoBox.Developer|3D Realms}}{{Game.InfoBox.Developer|MacSoft Games}}{{Game.InfoBox.Developer|FormGen}}{{Game.InfoBox.Developer|U.S. Gold}}
{{Game.InfoBox.Publisher|3D Realms}}{{Game.InfoBox.Publisher|MacSoft Games}}{{Game.InfoBox.Publisher|FormGen}}{{Game.InfoBox.Publisher|U.S. Gold}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|January 29, 1996}}
{{Game.InfoBox.ReleaseDate|Windows|January 29, 1996}}

Latest revision as of 00:42, 22 February 2024

Developers
3D Realms
Publishers
3D RealmsMacSoft GamesFormGenU.S. Gold
Release Date
Windows: January 29, 1996
Genres
PuzzleShooter
View at PCGamingWiki

Actions

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

Install Script

# Define the path to the dukegdx.ini file
$configPath = "$InstallDirectory\DukeGDX\dukegdx.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\DukeGDX\" -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\DukeGDX\dukegdx.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"