Repository navigation
Home
A work-in-progress reimplementation of Dungeon Keeper 2 in C#, with a Godot presentation layer. The goal is to reproduce the original game's observable behaviour, with the simulation kept independent of the renderer.
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.
This wiki is a guide, not the source of truth. The authoritative documents live in the repository under
docs/, where they are versioned and checked with the code. Each wiki page links to them.
-
The original binary is the primary source. Behaviour is researched in
DKII.EXEwith Ghidra and in the shipped data files before it is implemented. It is not reconstructed from memory of play. - Every claim carries a confidence level: CONFIRMED (seen in the running game), STRONGLY INFERRED (read in the binary or the shipped data), HYPOTHESIS or UNKNOWN; function records add DISPUTED (Glossary).
- The simulation is deterministic. It runs on integer ticks (4 per second, DK2's own rate), uses fixed-point maths and a seeded random source, and takes every balance number from the original game database.
- Godot presents the game. Gameplay rules and simulation state live in the shared C# projects.
| You are… | Start with | Then |
|---|---|---|
| Curious about the project | Charter: what it is for, and what "faithful" means | Status Matrix for how far each system has got, or a system page such as Imps and Tile Work |
| A C# contributor | Solution Map and Determinism | Build and test, then the contributor rules |
| A reverse engineer | Legal and Clean Room: what may and may not cross from the binary | KB Coverage and Open Questions, and the method |
| A Godot developer | Godot presentation | Run the Godot presentation and the architecture |
| A maintainer | Current state (HANDOFF) | Decisions by System, Simulation Read-Write Matrix and the plan |
Words you may not know are in the Glossary. Each system has a page in the same shape (see the System Page Template): Imps and Tile Work, Navigation and Doors and Traps so far.
- The .NET SDK selected by
global.json(.NET 10). - Optional: the .NET Godot editor pin for the presentation.
- Optional: your own original DK2 installation, pointed to by
DK2_DIR, for campaign content, the headless harness and the install-dependent tests. Without it the solution still builds, and those tests are reported as skipped.
Project source is licensed under GPL-3.0-or-later. The repository contains no original DK2 game files. Everything the game needs is read at run time from your own installation. Dungeon Keeper is a trademark of its owner. This project is not affiliated with or endorsed by Electronic Arts or Bullfrog Productions. See THIRD-PARTY-NOTICES.md.
Getting started
About
Systems
Overview
Generated
- Status Matrix
- Decisions by System
- Research by System
- Open Questions
- KB Coverage
- Simulation Read-Write Matrix
Research
Contributing