Skip to content

About

An independent reimplementation of a classic 1999 dungeon-management game, Dungeon Keeper 2. First a behaviour spec researched from the original and checked by tests, then a deterministic C#/.NET simulation with a Godot front end. Original game files are required and not included.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

3,158 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Netherhold — Dungeon Keeper 2 Remake & Reimplementation

Netherhold is an open-source, work-in-progress Dungeon Keeper 2 remake and reimplementation in C#/.NET, with a Godot presentation layer. The project aims to reproduce the original 1999 game's observable behavior while keeping its deterministic simulation independent of the renderer.

Unlike a finished, standalone game, Netherhold is a research and development project focused on gameplay fidelity and compatibility with the original game. It requires your own Dungeon Keeper 2 installation for original game content; original game files are not distributed with this repository.

This is a development and research project, not a finished replacement for the original game. Campaign compatibility, gameplay fidelity and the Godot presentation are still being verified. See the current state and remaining work and the implementation plan.

Build and test

Install the .NET SDK selected by global.json (.NET 10 or a newer SDK allowed by its roll-forward policy), then run these commands from the repository root:

dotnet restore DK2.slnx
dotnet build DK2.slnx --no-restore --configuration Release
dotnet test DK2.slnx --no-build --configuration Release

The solution builds without the Godot editor or an original DK2 installation. Tests that need the original game report as skipped when its data is unavailable; a green run with skips does not verify those integration paths. CI builds and tests on Linux and Windows without a DK2 installation.

Use an original DK2 installation

Playing campaign content in Godot and running scenarios with the headless harness require your own original game files. Set DK2_DIR to the installation directory containing DKII.EXE and Data/:

$env:DK2_DIR = 'C:\Games\Dungeon Keeper 2'

On a POSIX shell, use export DK2_DIR='/path/to/Dungeon Keeper 2' instead. The setting is authoritative: an invalid path disables install discovery rather than falling back to another installation. To require install-dependent tests to fail instead of skip when data is missing, also set DK2_REQUIRE_INSTALL=1.

Original game assets, converted assets and fonts are not bundled. Keep the game installation outside this checkout; see reference material and third-party notices.

Run a headless scenario

After building, list the available scenarios or run the synthetic determinism smoke scenario:

dotnet run --project src/DK2.Harness -c Release --no-build -- list
dotnet run --project src/DK2.Harness -c Release --no-build -- run scenarios/smoke/determinism_flat_map.yaml

The run command currently loads the original game database even for a synthetic map, so it requires DK2_DIR. Reports, events and per-tick hashes go under build/scenario-runs/. The scenario guide describes the format and what each experiment can establish.

Run the Godot presentation

Use the .NET editor pinned by godot-version.json. On Windows, set up the editor and open the project:

powershell -File godot/setup.ps1
powershell -File godot/editor.ps1

The launcher accepts your original DK2 install. The Godot guide covers controls, exports and the optional local replacement font.

Project structure and contributing

Before changing behavior, research the original binary and shipped data rather than guessing. Keep gameplay deterministic and integer-based, route asset access through the asset abstraction, and record confirmed facts separately from inferences and unknowns. Install the local documentation hook once per clone with git config core.hooksPath .githooks.

License

Project source is licensed under GPL-3.0-or-later. Dependencies and referenced projects retain their own terms; see THIRD-PARTY-NOTICES.md. The project license does not grant redistribution rights to original DK2 files.

This repository contains no original DK2 game files. Everything the game needs is read at run time from your own installation (DK2_DIR). Dungeon Keeper is a trademark of its owner; this project is not affiliated with or endorsed by Electronic Arts or Bullfrog Productions.

About

An independent reimplementation of a classic 1999 dungeon-management game, Dungeon Keeper 2. First a behaviour spec researched from the original and checked by tests, then a deterministic C#/.NET simulation with a Godot front end. Original game files are required and not included.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages