Dungeon Keeper

From LANCommander
Revision as of 02:09, 6 January 2024 by DoctorDalek (talk | contribs) (Created new page for Dungeon Keeper)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Developers
Bullfrog Productions
Publishers
Electronic Arts
Release Date
Windows: June 26, 1997
Genres
Real Time Strategy (RTS)Strategy
View at PCGamingWiki

Actions

Name Path Arguments Working Directory Primary
Run Configuration Tool {InstallDir}\launcher.exe False
Play {InstallDir}\keeperfx.exe True

Install Script

# 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 -Regex '^INGAME_RES=(.+)' -Replacement "INGAME_RES=$($Display.Bounds.Width)x$($Display.Bounds.Height)x32" -FilePath "$InstallDirectory\keeperfx.cfg"

Name Change Script

$bytes = ConvertTo-StringBytes -Input "$NewPlayerAlias" -MaxLength 19

Edit-PatchBinary -FilePath "$InstallDirectory\save\fxconfig.net" -Offset 0x14 -Data $bytes