About this project

This repository hosts a decompilation and reconstruction effort for the original Lord of the Rings: Battle for Middle-Earth (BFME 1) game executable. The stated goal is to recreate the binary byte-for-byte from source code, function by function, so that compiled code can be injected back into the original executable without changing it. A progress visualization tracks how much of the binary has been recreated. The project also lists planned modernization improvements beyond the source recreation, including a network delay fix (marked complete), memory fixes, better crash logs, 60/120 FPS support, multi-CPU support, an AC fix, World Builder source code, and 16-player maps. The repository includes the MSVC 7.1 toolchain and baseline executables directly in git, so a normal clone provides everything needed. Build scripts are provided for Linux, macOS, and Windows, with a pre-commit byte-check hook to verify that reconstructed functions match the retail binary. Contributors are encouraged to use AI agents with a specific prompt to convert functions into byte-exact C++ and submit pull requests containing individually verified functions.