Redivivus Decompiles Diablo 2 1.14d to C++ Source Code

Redivivus (redivivus.app, backed by github.com/jaenster/redivivus) is an open-source decompilation project that recovers Diablo II: Lord of Destruction patch 1.14d as C++17 source code and builds a working d2.exe—reaching 85.0% byte-identical functions (12,671 of 14,900) against the shipped executable. Rather than writing a clean-room reimplementation from scratch, the project takes apart the original binary function by function, reconstructs code via Ghidra and ghidra-reconstruct, and opens its Ghidra databases to AI coding agents over a read-only MCP server.

Quick answer: Redivivus decompiles the monolithic Diablo II 1.14d Game.exe into C++17 modules (including D2Client, D2Game, D2Common, Storm, and Fog) and compiles a playable single-player d2.exe that has already completed a full start-to-finish playthrough. Battle.net does not work yet, certain areas can still crash, and users must supply their own 1.14 game data—while contributors can inspect or propose symbol/type fixes through Ghidra MCP and the proposals workflow.

Table of Contents

  1. What Redivivus is—and how the pipeline works
  2. Byte-matching progress, build setup, and MCP workflow
  3. Where it shines vs. where the caveats bite
  4. What is still unknown or unverified?
  5. What should players and reverse engineers actually do?
  6. Frequently Asked Questions
  7. Key takeaways

What Redivivus is—and how the pipeline works

Because patch 1.14 linked the client, game server, and core libraries such as D2Common, Storm, and Fog into a single Game.exe, Redivivus targets that executable and organizes the recovered C++17 source by module name. Every translation unit compiles under strict C++17 (without -fpermissive) and links with zero undefined symbols.

Instead of hand-editing output blindly after a crash, the project routes fixes back to their source: analyzing crashes in Ghidra (covering 1.14d Windows and Mac databases), running ghidra-reconstruct via ghidra-mcp to parse decompiler output into a C++ syntax tree and strip decompiler artifacts, and regenerating the tree.

Byte-matching progress, build setup, and MCP workflow

As of commit 949b2f8, Redivivus pairs measurable byte-matching metrics with an agent-friendly reverse-engineering loop built around https://ghidra.redivivus.app/mcp.

  • Byte-Matching Metrics: 12,671 of 14,900 functions (85.0% by count, including 3,205 hand-written functions) are byte-identical to 1.14d when compiled with Visual C++ 2005 SP1 (with C runtime and compiler-generated exception code excluded), representing 66.13% of whole-function code bytes and 99.17% of initialized data bytes.
  • Building & Running: Builds with CMake, Ninja, and i686-w64-mingw32-g++ (plus Windows and Linux CI checks) into d2.exe, which runs alongside your own 1.14 installation (for example via d2.exe -w) without bundling game data.
  • Agent & Proposal Workflow: Compatible MCP clients (such as Claude Code, Codex, Cursor, or Copilot) can query the read-only MCP server using tools like near_misses and match_diff against win and mac Ghidra programs, then submit name, type, or prototype proposals on redivivus.app/proposals.

Where it shines vs. where the caveats bite

Completing a full single-player playthrough with 85% byte-identical functions and an open MCP database is a major technical feat, though unfinished subsystems and platform limits remain clear.

Area What Works Well Trade-Offs & Caveats
Playability & Networking Menus, character creation, and single-player progression work—with a full playthrough completed. Battle.net does not work yet, and some areas still experience crashes.
Byte Accuracy & Code Quality Strict C++17 build, zero undefined symbols, 85.0% byte-identical functions, and 99.17% identical initialized data. 66.13% code-byte match by whole functions; reconstructed functions can still read like decompiler output.
64-Bit & OS Portability Windows and Linux CI builds; accessible Ghidra MCP tooling and GitHub proposal attribution. Produces a 32-bit Windows d2.exe today; 64-bit linking is incomplete (7 pointer-width casts left from 7,955) and native Linux is not started.

What is still unknown or unverified?

While the site publishes exact function counts, byte-match percentages, and known issues, timelines for remaining work and full edge-case coverage across all game states are still evolving.

  • Timeline for Battle.net & Crash-Free Areas: When remaining area crashes will be resolved and when or how online/Battle.net support will be addressed.
  • 64-Bit & Native Linux Completion: How quickly the remaining pointer-width cast cleanup and 64-bit/Linux milestones progress as contributors and agents submit proposals.

What should players and reverse engineers actually do?

If you own a copy of Diablo II: Lord of Destruction 1.14d and want to test a source-built single-player client or contribute to decompilation, start from redivivus.app and github.com/jaenster/redivivus. Place d2.exe in your own 1.14 folder rather than looking for copyrighted game files in the repository, and review known issues before diving into specific acts or areas.

If you need official Battle.net multiplayer or a finished, crash-free 64-bit/native Linux port today, keep using your standard setup while tracking Redivivus's progress.

Frequently Asked Questions

What is Redivivus?

Redivivus (redivivus.app) is an open-source decompilation project that reconstructs Diablo II: Lord of Destruction patch 1.14d into C++17 source code and builds a runnable d2.exe client.

Is Diablo II 1.14d playable through Redivivus right now?

Yes for single player—menus, character creation, and a full start-to-finish playthrough work—though some areas still crash and Battle.net is not supported yet.

Does Redivivus include Diablo II game files?

No. The repository contains no Blizzard game data; you run the built d2.exe from your own Diablo II: Lord of Destruction 1.14 installation.

How can developers or AI agents contribute to Redivivus?

Agents speaking MCP can connect to https://ghidra.redivivus.app/mcp (using GitHub sign-in) to inspect Ghidra databases and find near-miss functions, while contributors can submit symbol/type proposals on redivivus.app/proposals or PRs and issues on GitHub.

Key takeaways

  • C++17 Decompilation of 1.14d: Recovers the monolithic 1.14d Game.exe into modular C++17 source that compiles with zero undefined symbols.
  • 85.0% Byte-Identical Functions: 12,671 of 14,900 functions match 1.14d byte-for-byte when built with Visual C++ 2005 SP1, alongside 99.17% identical initialized data bytes.
  • Single-Player Works, Limits Remain: Full single-player playthroughs work, while Battle.net is unimplemented, some areas still crash, and 64-bit/native Linux builds are unfinished.
  • Ghidra + MCP Loop: Uses Ghidra, ghidra-reconstruct, and a read-only MCP server so users and AI agents can analyze functions and propose fixes.

Conclusion

Redivivus stands out as a technically transparent Diablo II 1.14d decompilation effort, pairing measurable byte-matching metrics and a working single-player build with an open Ghidra MCP workflow for community contributions. Follow indiekings.com for more reverse-engineering, preservation, and PC gaming coverage.

Share