A work-in-progress decompilation of Danganronpa: Trigger Happy Havoc.
This repository does not contain any game assets or machine code. An existing copy of the game is required.
The short-term goal is not to FULLY finish this decomp, its mostly here to understand how danganronpa ticks
Long-term i would like to finish this.
Progress website: https://pucas01.github.io/DISTRUST/
Supported versions:
DR1_us.exe: Steam release, English (SHA-1e7881c959012c2d565070218b7f6c0d4795f21af)
- Install Python and add it to
%PATH%. - Download ninja and add it to
%PATH%.- Quick install via pip:
pip install ninja
- Quick install via pip:
- Install 7-Zip and add it to
%PATH%.- Quick install:
winget install 7zip.7zip
- Quick install:
- Install ninja, CMake, 7-Zip (
p7zip-fullon Debian and Ubuntu,7zipon Arch), Python 3 and a C++ compiler (GCC or Clang).
Not supported as of now.
-
Clone the repository with its submodules:
git clone --recurse-submodules <repository url>
-
Copy your game's
DR1_us.exetoorig/. -
Configure:
python3 configure.py
The first run downloads the Visual Studio 2012 compiler files (about 3 GB) and builds wibo on Linux. See Toolchain.
-
Build:
ninja
This compiles every file that contains a rewritten function and checks each one against the original. Run
ninja reportfor a summary, orVERBOSE=1 ninja reportto also print the bytes of any mismatch. To compile the stub files as well, runninja all.
Once the initial build succeeds, an objdiff.json should exist in the project root.
Download the latest release from encounter/objdiff. Under project settings, set Project directory. The configuration should be loaded automatically.
Select an object from the left sidebar to begin diffing. Changes to the project will rebuild automatically: changes to source files, headers or anything in config/.
To get a progress report from the command line, pass the relocation option so that wrong globals and call targets count against a match:
objdiff-cli report generate -c functionRelocDiffs=name_address -o build/report.json- Getting Started: project layout and how to rewrite a function.
- Toolchain: the compiler, its flags, and wibo.
Thanks to decompals for wibo and encounter for objdiff.
Danganronpa belongs to Spike Chunsoft.