OpenAllies recreates Axis & Allies (2004), the real-time strategy game by TimeGate Studios, in Rust with the Bevy engine.
The goal is a game so close to the original that a player can barely tell the difference. Every system follows the original game's own code (AA.exe) and every number comes from the original rules data. Menus, HUD, maps, models, animations and texts are read from the original game files on your own installed copy. No art, sound, video, maps or game data from the original are included in this repository.
Important
OpenAllies is a work in progress. You can play custom battles against the computer, try the campaign missions and the World War II strategic game, watch films recorded by the original game, and record your own. Multiplayer works between copies of OpenAllies over a LAN, a direct address, or online through Epic Online Services. The editor and saved battles are still missing, and most recorded games do not yet replay exactly as they happened. See Project status and Matching the original.
- Goals
- How it is built
- Project status
- Matching the original
- Architecture
- Building and running
- Repository layout
- Contributing
- License
- Legal
| Faithful | The same rules, numbers and behaviour as the original: combat, movement, AI, economy, maps and the interface work as AA.exe does. |
| Original assets | Art, audio, video, maps and rules data are read from your installed game. |
| Every platform | The finished game is planned for Windows (x64 and ARM64), macOS (Apple Silicon and Intel) and Linux. Bevy and the rest of the code are cross-platform; today's test builds are Windows x64 only. |
| 64-bit and fast | No 32-bit address-space ceiling. The exact ports cost more than the earlier approximations: 150 real regiments take about 5 ms a tick and 2,000 moving men 23 to 45 ms, against the game's 62.5 ms tick. |
| No engine limits | Fixed-size engine arrays, pools and caps become growable. Gameplay rules, like configured unit caps, keep their original defaults. |
| Byte for byte | The target is a game that matches the original exactly. Systems move onto exact ports of the original code one by one, staying playable throughout, and recorded games of the original prove how far each has come. |
Each system is written from the original game's code and data:
- Read the original. The game's functions are studied from its code and translated exactly into the
aa-*crates of this workspace, each proven against the original code running in the Unicorn emulator. - Run on the ports. The playable game (
aa-play) moves onto those exact ports system by system, and is playable at every step. Every number comes from the original rules files; nothing the original does not have is added. Original addresses are cited in the code. - Use the original look. The original menus and HUD are built from the original layout files by the ported UI engine (
aa-ui) and drawn in Bevy. Models, animations, terrain transitions and textures are the original files. - Compare with the original. Behaviour is checked against the running original game: screenshots, unit speeds, damage, recruit times, AI timelines. The strictest test is a recorded film of the original: its checkpoints show exactly where the two games first differ.
The rules for the exact ports are in docs/NATIVE-PORT-RULES.md.
Legend: ✅ working, 🚧 in progress, ⏳ not started.
| Area | Status | Notes |
|---|---|---|
| Original menus, setup screen, loading screen | ✅ | Main menu with the original video, Single Player, the Custom staging screen, Random Map and scenario dialogs |
| Random map generator | ✅ | Exact on the standard data: all 12 maps compared equal the original's world. Mods with their own random map folder are not exact yet |
| Original maps | ✅ | All 80 original maps load |
| In-game HUD | ✅ | Economy bar, unit panel, action buttons, minimap, message log, game menu, tooltips, the panel for a group of units |
| Camera, selection, orders | ✅ | The original camera; click, box and double-click selection; right-click move and attack; guard, retreat, explore and group orders; right-drag to set a move's facing |
| Economy, recruiting, research, supply | ✅ | Income and upkeep, recruit queues, truck deployment, supply zones, city capture |
| Fog of war | ✅ | The original's zones on every building, regiment and city, on the map and the minimap |
| Movement and pathfinding | 🚧 | Units and regiments run on exact ports: the ground step and the unit and regiment Minds, with regiments on the original route solver. Lone units still use a simpler route, and collisions are still being matched |
| Combat and morale | 🚧 | Fights run on the unit and regiment Minds and the exact Performer: damage rules, zones of control, morale, routing, entrenchment and experience. Results are close to the original's, not yet the same |
| Computer opponent | 🚧 | The original AI generals, goal engine and recruit planner, giving the original's kinds of orders. Its decisions are not yet the original's, and its early army is a little smaller |
| Unit banners and selection marks | ✅ | The original banner model and decals, health bars |
| Rendering | ✅ | Bevy: original models, animations, terrain transitions, the original's lighting and shadows, the ground's detail textures, and buildings flattening the ground under them |
| Effects | 🚧 | Building ground patches, waving flags and many weapon effects |
| Sound and music | 🚧 | Sounds in battle, menu music and button sounds. Not all building sounds yet |
| Films: watching | 🚧 | The full film screens: list, viewing any side, speed, end of film, scoring and replay. Most films drift from what really happened partway through: see Matching the original |
| Films: recording | ✅ | Battles record films in the original's format, and the original game can open them |
| Campaign missions | 🚧 | Mission list, saved progress, scripts, scripted cameras, movies, debriefing. Tutorial 1 runs through its first fight. Not all missions have been played through |
| World War II | 🚧 | The strategic map, buying armies, fighting battles and returning to the map, saves, politics. The original's own saved campaigns load too. Some tooltips are not built |
| Multiplayer | 🚧 | LAN with a game list, Join Direct by address or host name, and online play through Epic Online Services (optional eos feature). Tested between two copies on one PC: both players' orders cross, the worlds stay identical, and the films replay. Not yet tried between two PCs. A joiner without the map gets it in the original's way, but only if it joined before the map was chosen, and a battle on a received custom map does not load yet. No host migration. The original can join our staging screen but cannot launch with us |
| Saved games | 🚧 | Saved worlds load well enough to start films of saved games. The save writer re-encodes every one of the original's saves exactly, but does not yet write a live battle, so Save and Load are still grey |
| Editor | 🚧 | Only the start: a port plan (research/phase8-editor/README.txt) and the map file writer, which rebuilds every shipped map byte for byte. No editor screens yet |
| Windows ARM64, macOS, Linux | ⏳ | Planned for the finished game; today Windows x64 only |
Each system lists the behaviours still to be compared with the original game; dated progress notes live in HANDOFF.txt and docs/.
The original game records every battle as a film: only the players' orders, plus a checkpoint of its random number stream every 17 game ticks. A film plays back correctly only if the game produces exactly the same results from those orders. So replaying the original's films is the hardest test there is: a checkpoint matches only if every earlier random draw happened in the same order.
Where this stands on 10 November 2026:
| Test | Result |
|---|---|
| A 2-against-2 Berlin film, matching checkpoints in order | 266 of 266: the whole film replays exactly, up from 32 at the start of November and 140 in Development 24. This film has almost no fighting |
| Real recorded films that open | 52 of 62. The other 10 refuse with the original's own messages (9 made by another version of the game, 1 never finished) |
| Real films with no mismatch | At least 6: a short Market Garden game played by a person, and 5 random-map films, 4 to their natural end and 1 over its first 4,000 ticks. 3 of them are on modded data. Other short random-map films still drift early |
| A longer Berlin game played by a person | 94 of 271, exact for its first 3,380 ticks, about 3.5 minutes |
| Films recorded by OpenAllies, replayed in OpenAllies | Every checkpoint: 204 of 204 and 240 of 240 in the runs checked, with real fighting |
| Random map generator | 12 of 12 maps compared equal the original's world: every object, both height layers, tiles and the final random state |
| Films we record, opened in the original | The original opens them. A Berlin game between computers, recorded by OpenAllies, plays in the original with every checkpoint in sync: 117 of 117 in the latest run |
| Fighting, 4 films with real battles: units reaching zero health, ours against the original | 8 / 27, 82 / 107, 94 / 119, 129 / 133. These numbers move a lot with small fixes, because the games have already drifted apart before the fighting starts. The first film is far off |
Next: the remaining movement differences, which decide most of the Berlin film, then the computer's orders and exact fights. Details and the ordered list of causes are in research/byte-exact/PARITY-CENSUS.md and research/byte-exact/FILM-PLAYBACK.md.
A Cargo workspace of focused crates, roughly bottom to top:
| Crate | Purpose |
|---|---|
aa-formats, aa-assets, aa-resources |
Readers for the original archives and formats (including the Gamebryo NIF reader); asset access |
aa-rules |
The original TGI rules language and the native data-loading order |
aa-mapworld |
Original map loading |
aa-play |
The playable battle: game data, maps, custom setup, economy, recruiting, supply, movement, combat, morale, the computer opponent, the random map generator |
aa-bevy |
The game application on Bevy 0.19: menus and HUD, camera, selection and orders, battle drawing, effects. It is its own Cargo workspace (see below) |
aa-ui |
Port of the original UI engine, driven by the original layout files |
aa-animation |
Original model animation playback |
aa-numeric, aa-trig |
Exact x87 arithmetic and the original's trigonometry (for the exact ports) |
aa-world, aa-simulation, aa-runtime |
The exact-port world: native update queues, scheduling, the authoritative world |
aa-actors, aa-body, aa-combat, aa-movement, aa-navigation, aa-spatial, aa-heightfield, aa-zones, aa-mind, aa-economy, aa-production, aa-triggers |
Exact ports of the original systems, the reference for aa-play |
aa-orders, aa-transfer, aa-netcode |
Player commands and the multiplayer protocol |
aa-eos |
Online play through Epic Online Services: sign-in, lobbies and a datagram link; the SDK is loaded at run time. Its own Cargo workspace |
aa-metagame |
The World War II strategic mode |
aa-editor |
The editor, from its first piece: the map file writer and the original's zlib 1.1.4 deflater |
aa-parity |
Films: reading, playing and recording them, and comparing a replay with the original |
aa-client |
The earlier wgpu client and asset viewer |
Requirements
- Today: Windows 10 or 11, x64, with a Vulkan or DirectX 12 graphics driver. Windows on ARM, macOS and Linux are planned for the finished game
- A recent stable Rust toolchain (Rust 2024 edition,
rust-version = "1.88") - Your own installed copy of Axis & Allies (2004)
git clone https://github.com/haskbasirat/OpenAllies.git
cd OpenAllies
cargo build --release --manifest-path crates/aa-bevy/Cargo.tomlOnline play through Epic Online Services is an optional feature, --features eos. It needs Epic's SDK library beside the program and the product's settings at run time, none of which are in this repository; see crates/aa-eos/README.md. Without it, LAN and direct address play work as they are.
aa-bevy is a separate Cargo workspace on purpose: Bevy's shader tooling enables a feature of a shared dependency that breaks the older wgpu client when both are built together. The rest of the workspace builds with cargo build --release.
Note
The game reads the original data from your installed game and from a local folder prepared from it (the extracted original assets and converted models and textures). None of that data is in this repository, and a single setup tool that prepares it from a game installation is still to come. Until then, running from a fresh clone needs that local preparation first.
Run the game logic tests (the real-data tests need AA_GAME_ROOT pointing at your installed game):
cargo test -p aa-play --releasecrates/ the Rust workspace
docs/ design notes, porting rules, progress records, screenshots
research/ oracle scripts (Python + Unicorn), notes and per-area findings
HANDOFF.txt running continuation log for developers
- Find the original behaviour in the game's code and data, and cite the native addresses.
- Follow the original's steps, rules and order; take every number from the original data.
- Never add features or interface elements the original does not have.
- List what still has to be compared with the running original.
- Never commit files taken from the original game.
- Agree to the Contributor Agreement: the project's owner owns accepted contributions and can relicense them.
OpenAllies is licensed under the Mozilla Public License 2.0. See LICENSE for the full text.
This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
That notice applies to every source file in this repository. Versions published before this change were released under the GNU General Public License, version 3 or later, and remain available under it.
Contributions are accepted under the Contributor Agreement.
The license covers the OpenAllies source code only. It does not cover the original game, whose files you need from your own copy.
OpenAllies is an independent, non-commercial fan project. It is not affiliated with, endorsed by or sponsored by Hasbro, Wizards of the Coast, Avalon Hill, Atari or TimeGate Studios. Axis & Allies is a trademark of its respective owner. The original game was developed by TimeGate Studios and published by Atari in 2004.
This repository contains no original game files: no art, audio, video, maps, rules data, executables or recordings of the original program's behaviour. The screenshots show OpenAllies running with the original game's assets from a legally owned copy. To use OpenAllies you need your own legally obtained copy of the original game.





