Skip to content

DiaLight/Flame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flame is a new approach to modifying compiled code Dungeon Keeper 2

Flame recompiles some functions of DKII.EXE into a separate .exe file. Then it merges this file with the original .exe file, replacing the references to the original functions with the references to recompiled functions. Recompiled functions are supplemented with switchable changes that fix some game bugs

Earlier, this project implemented an approach to fully relinking DKII.EXE, which contains false positive references that caused new bugs.

The latest build can be taken from the github actions

How to install:

Additional ddraw.dll and dinput.dll are fixing some graphical bugs and i think improve general stability. I prefer not spending time on fixing something that already fixed by other developers. When report issue please ensure that you are uses these dlls. The Steam version of the game is installed along with these dlls

Build requirements:

How to build:

  • mkdir build && cd build
  • "D:\Program Files\Visual Studio Community\2022\VC\Auxiliary\Build\vcvars32.bat"
  • cmake -DCMAKE_BUILD_TYPE=Release -GNinja -DCMAKE_INSTALL_PREFIX=../install ..
  • cmake --build .
  • cmake --install .
  • copy "..\install\DKII-Flame-<version>.exe" "<Dungeon Keeper2 dir>/DKII-Flame.exe"