ReDMCSB means ‘Reverse engineered Dungeon Master and Chaos Strikes Back’. It contains the source code of all versions of both games except the Super NES console versions: Atari ST, Amiga, Apple IIGS, FM-Towns, X68000, PC-98 and PC. This is not the original source code as written by the FTL Games developers but the result of reverse engineering directly from the executables found on the original floppy disks and compact discs. However this source code is extremely accurate because the resulting executables are either identical to the originals or very similar with minor differences mostly explained because the exact versions of compilers and tools that were used originally could not be found.
The source code contains (for the most part, this is a work-in-progress):
Meaningful and consistent names for all functions and their parameters, global and local variables, constants and macros.
Comments.
Conditional compilation directives allowing compilation of each version from the same source code. They also provide easy identification of the differences between versions
Conditional compilation directives allowing compilation without the copy protection. They also provide easy identification of all code related to the copy protection.
ReDMCSB contains 6 toolchains to build all executables, consisting of emulators, compilers, linkers, some other tools and scripts to provide a fully automated build process. The build process is designed to run on Windows only as it relies on emulators running on Windows, PowerShell scripts, and it was only tested on Windows 10/11 64 bits.
It relies on Windows versions of several emulators and PowerShell scripts that have never been tested outside of Windows.
ReDMCSB
ReDMCSB can build 146 executables for all programs in the 36 different versions of Dungeon Master or Chaos Strikes Back listed below (including the programs on the Chaos Strikes Back Utility Disk). See ReDMCSB.xlsx in the archive for the full list of executables and game versions:
Dungeon Master for Atari ST 1.0a English (no version visible in dialog boxes)
Dungeon Master for Atari ST 1.0b English (version ‘1.0’ visible in dialog boxes)
Dungeon Master for Atari ST 1.1 English
Dungeon Master for Atari ST 1.2 English
Dungeon Master for Atari ST 1.2 German
Dungeon Master for Atari ST 1.3a French (version 1.3 visible in dialog boxes)
Dungeon Master for Atari ST 1.3b French (variant, version 1.3 also visible in dialog boxes, the only difference is one bug fix for BUG0_56, see Bugs And Changes)
Chaos Strikes Back for Atari ST 2.0 English
Chaos Strikes Back for Atari ST 2.1 English
Dungeon Master Demo for Apple IIGS 1.4 English
Dungeon Master for Apple IIGS 2.0 English
Dungeon Master for Apple IIGS 2.1 English
Dungeon Master Demo for Amiga 2.0 English
Dungeon Master for Amiga 2.0 English
Dungeon Master for Amiga 2.0 French
Dungeon Master for Amiga 2.0 German
Dungeon Master for Amiga 2.1 English
Dungeon Master for Amiga 2.2 English
Dungeon Master for Amiga 2.2 German
Chaos Strikes Back for Amiga 3.1 English
Chaos Strikes Back for Amiga 3.1 English, French, German
Chaos Strikes Back for Amiga 3.3 English, French, German
Chaos Strikes Back for Amiga 3.5 English
Chaos Strikes Back for Amiga 3.5 English, French, German
Dungeon Master for Amiga 3.6 English, French, German
Dungeon Master for FM-Towns 2.0 English
Dungeon Master for FM-Towns 2.0 Japanese
Chaos Strikes Back for FM-Towns 3.1 English
Chaos Strikes Back for FM-Towns 3.1 Japanese
Dungeon Master for PC-98 2.0a Japanese (version 2.0 visible in dialog boxes, contains DMSTART3.EXE)
Dungeon Master for PC-98 2.0b Japanese (variant, version 2.0 also visible in dialog boxes, contains DMSTART4.EXE)
Chaos Strikes Back for PC-98 3.1 Japanese
Dungeon Master for X68000 3.0 Japanese
Chaos Strikes Back for X68000 3.1 Japanese
Dungeon Master for PC 3.4 English
Dungeon Master for PC 3.4 English, French, German
You can discuss about ReDMCSB in its forum topic. ReDMCSB was mentionned by Doug Bell answering a question in Quora.
The package does not contain as much documentation as I would like because it is very time consuming to write accurate documentation, but you will find:
a detailed description of the software side of the copy protection. This was written for Release 1 that contained only the Atari ST source code, but many parts remain valid for Amiga and Apple IIGS versions.
Download the package, and check the Documentation folder for more information.
Downloads
Work in progress 2021-02-06: Latest release with source code for Apple IIGS, Amiga, FM-Towns, X68000, PC-9801 and PC versions, as well as full automation of build process.