Dungeon Keeper: Difference between revisions

From LANCommander
(Created new page for Dungeon Keeper)
 
No edit summary
 
Line 5: Line 5:
{{Game.InfoBox.Developer|Bullfrog Productions}}
{{Game.InfoBox.Developer|Bullfrog Productions}}
|Publishers =
|Publishers =
{{Game.InfoBox.Developer|Electronic Arts}}
{{Game.InfoBox.Publisher|Electronic Arts}}
|Release Date =
|Release Date =
{{Game.InfoBox.ReleaseDate|Windows|June 26, 1997}}
{{Game.InfoBox.ReleaseDate|Windows|June 26, 1997}}
Line 14: Line 14:
{{Game.ActionBox
{{Game.ActionBox
|Actions =  
|Actions =  
{{Game.ActionBox.Row|Name = Run Configuration Tool|Path = {InstallDir}\launcher.exe|Arguments = |WorkingDirectory = |Primary = False}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\dosbox\dosbox-x.exe|Arguments = ..\GameData\run.bat -c "ipxnet connect {IPXRelayHost} {IPXRelayPort}" -exit|WorkingDirectory = |Primary = True}}
{{Game.ActionBox.Row|Name = Play|Path = {InstallDir}\keeperfx.exe|Arguments = |WorkingDirectory = |Primary = True}}
}}
}}




{{Game.Scripts.Install
|Name = Install Script
|Description =
|RequiresAdmin = False
|Contents =
<syntaxhighlight lang="powershell" line>
# 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"
</syntaxhighlight>
}}
           
{{Game.Scripts.NameChange
{{Game.Scripts.NameChange
|Name = Name Change Script
|Name = Name Change Script
Line 39: Line 24:
|Contents =
|Contents =
<syntaxhighlight lang="powershell" line>
<syntaxhighlight lang="powershell" line>
$bytes = ConvertTo-StringBytes -Input "$NewPlayerAlias" -MaxLength 19
$bytes = ConvertTo-StringBytes -Input "$NewPlayerAlias" -MaxLength 19 -MinLength 19


Edit-PatchBinary -FilePath "$InstallDirectory\save\fxconfig.net" -Offset 0x14 -Data $bytes
Edit-PatchBinary -FilePath "$InstallDirectory\GameData\SAVE\CONFIG.NET" -Offset 0x6E -Data $bytes
</syntaxhighlight>
</syntaxhighlight>
}}
}}

Latest revision as of 00:42, 22 February 2024

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
Play {InstallDir}\dosbox\dosbox-x.exe ..\GameData\run.bat -c "ipxnet connect {IPXRelayHost} {IPXRelayPort}" -exit True

Name Change Script

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

Edit-PatchBinary -FilePath "$InstallDirectory\GameData\SAVE\CONFIG.NET" -Offset 0x6E -Data $bytes