0xreversed/with.ai
Games and modsResearchSource available
Target: Battlefield 2142

ekwoka/Battlefield-2142-Decomp

by ekwoka Repository0 views
Platform
macOS
Outcome
Research

Evidence at a glance

Based on the linked sources. The author's reported result and independent confirmation are separate checks.

AI involvement
Reported models: Claude. Tools: Ghidra, CMake, Ninja, SDL3, OpenAL Soft. The writeup below describes the work attributed to AI.
Reported result
Research. This is the directory's source-based outcome classification.
Independent confirmation
Not reported.
Human work and limitations
The project explicitly credits Claude Opus 5.5 as a co-author for recent commits related to physics, AI, and game systems. The README notes that while some modules are functional, the project is not yet a fully playable game.

Original sources

What was done

This project aims to decompile Battlefield 2142 into maintainable C++ for native execution on macOS. It utilizes Ghidra for analysis and targets OpenSpy for networking, with ongoing work on engine modules, physics, and AI systems.

The Battlefield-2142-Decomp project is a research effort to decompile the 2006 title Battlefield 2142 (patch 1.51) into maintainable C++ code. The primary goal is native execution on macOS, specifically targeting Apple Silicon, while maintaining compatibility for potential Windows or Linux ports. The project uses cross-platform libraries like SDL3 and OpenAL Soft rather than platform-specific APIs. Networking is implemented by following OpenSpy's published source and patches. The repository contains no original game code or assets; users must provide their own retail installation. The project is in an early stage, with modules such as Memory.dll and BF2142Audio.dll rewritten and tested. Recent development, supported by Claude Opus 5.5, has focused on decoding remaining systems including physics, explosions, AI navigation, and animation. While the project has achieved significant progress in rendering and system-level rewrites, it remains a work in progress with many of the executable's functions still to be rewritten.

Reproduce it

setup
cmake -S . -B build/native -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined"