Español · English · Português · Français · Deutsch · Русский
Battlefield 1942 on a new engine. OpenBF1942-Plus is an independent reimplementation of Refractor 1, the engine of Battlefield 1942, written from scratch: it reads the game's own files from your installation and runs them on modern systems. The goal is to play with and against the original game: original clients on our server, our client on original servers.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
El Alamein, Omaha Beach, Midway, Stalingrad and Guadalcanal, drawn by OpenBF1942-Plus from the retail game files. Vehicles and teammates are driven by its bots.
- All 78 levels of Battlefield 1942, Road to Rome and Secret Weapons of WWII load and render: terrain, buildings, trees, water, sky, fog and lighting from each level's own settings.
- Five game modes against bots: conquest, capture the flag, team deathmatch, co-op and objective, each on the levels that ship it, with tickets, time limits, rounds and map rotation. Teams are filled evenly up to 64 players, and the dead come back in spawn waves.
- Infantry: the five kits with magazines and reloads, pistols, grenades, mines, explosive packs and medic packs, supply depots, crouch and prone, ladders, swimming and parachutes, in first and third person with the game's animations.
- Vehicles: cars, tanks, aircraft and boats to drive, with seats for gunners and passengers, landing gear, guns with limited ammunition rearmed at vehicle depots, and wrecks. Destroyed ones come back, and the player can land a boatload of bots by lowering the ramp.
- Bots with a plan: each team picks a strategy from the level's own AI scripts and sends its bots to attack or defend areas, a simplified version of the original's strategic AI (conquest and co-op). They follow each level's path-finding maps, crew tanks and landing craft, man ship guns, fly and bomb, throw grenades, lay mines and fall back to their pistols.
- Rules read from the original's server: capture and ticket rates, respawn waves, friendly fire, weapon spread on foot and on vehicles, vehicle respawn times and gravity; what could not be read is marked as a guess in the documentation.
- Your own controls: keys, mouse axes, sensitivity and inversion come from your Battlefield 1942 profile; the mouse flies aircraft, as in the original.
- Effects, sound and HUD from the game's own data: muzzle flashes, explosions, impacts, smoke and fire on damaged vehicles, burning wrecks, dust, exhaust and wakes; weapons, engines, footsteps, voices, radio and ambient sound; a HUD laid out as the original's (health and magazine, tickets, minimap, kill messages, radio buttons, vehicle panels).
- Compared with the original client at the same spots on Berlin and El Alamein: buildings, haze, sky, vehicles and sand within about 15 %; the HUD measured on captures of the original.
- Network research: two sessions between an original client and server recorded; transport, server query, master server, 51 game events and 97 % of object updates decoded (network.md).
Note
Early prototype. Only parts have been tried by a person and many values are still guesses: vehicle handling in particular is not calibrated against the original. There are no menus, no multiplayer yet, bots still get stuck (some vehicles fall off bridges), and Berlin's streets are still darker than in the original.
Important
No game content is included — bring your own data. This repository is source code only: no executables, archives, maps, models, textures or sounds. The engine reads them from a copy of Battlefield 1942 that you legally own, referred to here as <BF1942_DIR>.
There are no ready-to-run builds yet: build the engine (see Building) and point it at your Battlefield 1942 folder, the one with Mods/:
build/obf_mapview "<BF1942_DIR>" bf1942 El_Alamein --play 2 # conquest on team 2, assault kit
build/obf_mapview "<BF1942_DIR>" bf1942 Omaha_Beach --play 2 --mode coop # co-op with the strategic AI
build/obf_mapview "<BF1942_DIR>" bf1942 Wake # free camera
build/obf_mapview "<BF1942_DIR>" bf1942 El_Alamein --drive Willy # a vehicle in front of the camera
build/obf_sim "<BF1942_DIR>" bf1942 El_Alamein --play 2 --sim 600 # headless: 10 minutes of conquest, printed| Controls | |
|---|---|
| Move, look | WASD, mouse (captured; F10 frees it), shift walks, space jumps (falling: opens the parachute) |
| Weapons | left mouse fires, R reloads, 1–9 kit weapons, G detonates explosive packs; in a vehicle the right mouse button (or keypad 0) drops bombs or fires the coaxial gun |
| Posture, view | left ctrl crouches, Z lies down, V first / third person |
| Vehicles | E gets in / out, 1–8 change seat, WASD drives, mouse aims turrets |
| Radio | F1–F7 opens a menu, then F1–F7 sends a message; F8 shows or hides the radio buttons |
| Aircraft | W / S throttle, mouse or arrows pitch and roll, A / D rudder |
| Landing craft | arrow up lowers the ramp (ashore, the bots get out), arrow down raises it |
| Free camera | right mouse looks, WASD / QE move, shift fast; C shows collision meshes; Esc quits |
These are the defaults; on foot, in vehicles and in aircraft the keys of your game profile are used.
The order, with the reasons and exit checks, is in docs/roadmap/roadmap.md:
- Consolidate (done): the game as a library, a renderer and thin executables; CI.
- Network protocol research (two sessions recorded, most of the traffic decoded): alongside the steps below.
- AI (navigation and strategic AI in place; bots still get stuck in places), audio (most sounds in), HUD (laid out as the original; a few pieces open).
- Complete soldiers and weapons (mostly done), vehicle crews (land, sea and pilots done), effects (particles and burning wrecks done).
- Fidelity: measure the original and calibrate.
- Game modes (done: the five modes, time limit, rotation), menus.
- Network: our own server and client, then play together with the original.
- Rendering, distribution (Windows and Linux builds, widescreen, mods).
Every kind of help counts: trying it and reporting what is wrong, comparing against the original game, or code. The technical documentation, in English, starts at docs/README.md: file formats, architecture decisions and known debt. AGENTS.md is the entry point for AI coding agents.
C++17, CMake, SDL2, OpenGL 3.3 (libepoxy) and Jolt Physics, which CMake downloads on the first configure. On Debian or Ubuntu:
sudo apt install cmake g++ git libsdl2-dev libepoxy-dev
cmake -S . -B build && cmake --build build -j
ctest --test-dir build
# -> build/obf_mapview (window), build/obf_sim (headless)On Windows: MSVC (Visual Studio 2019 Build Tools or later) with vcpkg; the exact commands are in SYSTEM_SUMMARY.
Python tools
Readers for the game's formats, Python 3 standard library only.
python3 tools/rfa.py list "<BF1942_DIR>/Mods/bf1942/Archives/ai.rfa"
python3 tools/rfa.py extract "<BF1942_DIR>/Mods/bf1942/Archives/ai.rfa" out/
python3 tools/con.py "<BF1942_DIR>" bf1942 Wake # load a level, print a summary
python3 tools/sm.py "<BF1942_DIR>" bf1942 standardMesh/willy_hul_m1 out/jeep # OBJ + textures
python3 -m unittest discover tools # tests
python3 tools/check_docs.py # documentation checksWhat is where
| Path | Contents |
|---|---|
engine |
The C++ engine: archives, scripts, meshes, terrain, animation, physics, game rules, AI, audio, HUD, renderer, and the executables |
tools |
Python readers for the formats, the documentation checker and their tests |
docs/formats |
The file and network format specifications |
docs/architecture |
Layers, boundaries and the architecture decisions (ADRs) |
docs/roadmap |
The roadmap and the known debt |
docs/ai |
The memory layer for AI agents |
- Who maintains this: OpenGamePlus. I like old games, and I want to keep playing Battlefield 1942 with friends on today's systems, with an open engine the community can keep alive.
- How the work is done: I work with Claude Code, Anthropic's coding assistant. The code and documentation, this README and its translations included, are written with its help. Commits made this way carry a
Co-Authored-By: Claudeline in their message, so they can be identified in the history withgit log. - Original code: no code of the original engine is copied into this repository. The engine is written from the game's data files, from observing the original game run, and from facts read in third-party research, including published decompilations of the Linux dedicated server and the Mac client, read for facts and never copied (references).
- What it is not: it is not an official project and is not affiliated with Electronic Arts or DICE. It contains no game files.
This is an independent reimplementation of the Refractor 1 engine. It is not affiliated with, authorized by, sponsored by, or endorsed by Electronic Arts Inc., EA Digital Illusions CE (DICE), or any of their affiliates.
"Battlefield" and "Battlefield 1942" are trademarks of Electronic Arts Inc. They are used in this repository only for identification and interoperability, to describe what the engine runs. No claim is made to those marks.
This project does not provide or help obtain copyrighted game data. To use it with real game content, you must supply data files from a copy of Battlefield 1942 that you legally own.
If you are a rights holder and believe something here should not be distributed, please open an issue or contact the maintainer and it will be addressed promptly.
The screenshots show content of Battlefield 1942, property of Electronic Arts Inc., for identification only.
GNU Affero General Public License v3.0. Whoever distributes the engine, or runs a modified version as a network server for others, must offer its source under the same license. Third-party libraries keep theirs: SDL2 (zlib), libepoxy (MIT) and Jolt Physics (MIT).
- Jolt Physics, SDL and libepoxy
- Electronic Arts / DICE, for the game





