Skip to content

Building from Source

Innsomatico edited this page Aug 27, 2026 · 1 revision

Building from Source

Requires Python 3 with keystone-engine (plus capstone for analysis tools and unicorn for the verifier), and a Drakkhen US GOG/Steam install providing pristine originals in _backup/original/.

python tools/drakmod.py               # build the modded DRAKM.CC1 + RESI_VGA.6C0
python tools/fragsim.py               # verify every mod subset rebuilds correctly
python tools/verify_startgear.py      # emulate the character creator, dump starting gear
python tools/make_patcher.py          # regenerate install.ps1 / install.py

verify_startgear.py deserves a mention: rather than trusting a reading of the disassembly, it loads the character creator, applies relocations, and actually executes the gear-granting code under Unicorn, reproducing a real freshly-created PERSO.SAV byte-for-byte against the unmodified creator.

The framework's hard-won constraints (dead-space allocation, relocation splicing, the keystone 16-bit traps) are documented in docs/MODDING.md.

Clone this wiki locally