The Elder Scrolls III · Game of the Year Edition · v1.6.1820

Morrowind Decompilation

A matching decompilation of Morrowind: its C++ is rebuilt one function at a time until Visual C++ 6.0 compiles it to exactly the same bytes as the original Morrowind.exe. No game files are included. You bring your own copy.

Progress

-
of the game's code matches the original, byte for byte
Functions matched
-
Bytes matched
-
Source units
-
Last updated
-

Scoreboard

#ContributorFunctionsBytesShareAssisted by

Verified matches only. Each function is credited to whoever committed its entry in build/units.json; AI assistance comes from Co-Authored-By lines in those commits. Updated on every push.

Matched code over time

By code section

SectionFunctionsMatchedBytesMatched bytes%

Function boundaries come from a first-pass scan of the executable and will be refined as work proceeds. Bytes are the honest measure: function counts flatter, because small functions are easy.

How it works

  1. Pick a function. build/function_index.json lists all ~29,800 functions by address and size.
  2. Write C++ that does what the assembly does, in a source file under src/, and list it with its address in build/units.json.
  3. Compile and compare. tools/build_and_match.py compiles it with Visual C++ 6.0 (natively or under Wine) and checks every byte and every call, data reference and import against your Morrowind.exe.
  4. Iterate with tools/diff_function.py until the code is identical, then open a pull request.
export MW_IMAGE=/path/to/Morrowind.exe      # your own copy, v1.6.1820
export MW_MSVC_ROOT=/path/to/VC98           # Visual C++ 6.0
python3 tools/check_image.py
python3 tools/diff_function.py 0x00401040
python3 tools/build_and_match.py

Questions

Is this OpenMW?

No. OpenMW is a new engine written from scratch. This project reconstructs the original engine's own code so that it compiles to the original binary. The two complement each other.

Can I play Morrowind from this?

Not yet, and never without your own copy. The repository contains only new source code written by contributors, with no game data, assets or executables.

Which copy of the game do I need?

Morrowind.exe version 1.6.1820, the Game of the Year release (Tribunal and Bloodmoon). The Steam copy is accepted. Other copies are accepted once their fingerprint is verified; see tools/check_image.py.

Why Visual C++ 6.0?

Morrowind was built with it (linker 6.0, MSVCRT and MSVCP60 runtime). Byte-identical output is only possible with the original compiler.