# MMBN-Decomp A collection of decompilation projects for the *Mega Man Battle Network* series. Each game has its own self-contained folder: its decomp, plans, docs, ROM patch and ports. Nothing from the ROMs is in this repository. Everything is built from the player's own dumps, which go in each game's gitignored `roms/` folder. Status as of 2026-11-29. Work order (owner, 2026-11-29): BN4 first, then BN6, BN5, BN3, BN2 and BN1, easiest first (see Roadmap). ## Status at a glance | Project | What | Status | |---|---|---| | [MMBN4-Decomp/](MMBN4-Decomp/README.md) | Battle Network 4 (Red Sun / Blue Moon): *Violet Eclipse* | **Active.** ROM patch done and tested, PC and Wii U ports working, New 3DS port written but not compiled, decomp in progress | | [MMBN6-Decomp/](MMBN6-Decomp/README.md) | Battle Network 6 (Cybeast Gregar / Falzar) | **Planned next.** A bootstrap plan exists; no code, no tools | | `MMBN5-Decomp/` | Battle Network 5 (Team ProtoMan / Team Colonel) | Planned (folder not created yet) | | `MMBN3-Decomp/` | Battle Network 3 (White / Blue) | Planned (folder not created yet) | | `MMBN2-Decomp/` | Battle Network 2 | Planned (folder not created yet) | | [MMBN1-Decomp/](MMBN1-Decomp/README.md) | Battle Network | Planned last. A bootstrap plan exists; no code, no tools | | [MMBN-Principia-Trilogy/](MMBN-Principia-Trilogy/README.md) | BN1, BN2 and BN3 merged into one game on the BN3 engine, ports only | Design outline only; needs the BN1-3 decomps first | ## BN4: Violet Eclipse A definitive edition of BN4 that unites Red Sun and Blue Moon: every Soul, chip and boss in one save ([plan](MMBN4-Decomp/plan/DEFINITIVE-EDITION.md)). | Part | State | Where | |---|---|---| | **ROM patch** | Done: all packages pass in-game on both Red Sun and Blue Moon (Duo Soul, Free Tournament with the 12 Soul Navis, rematch ladders up to SP+, economy and drop changes, Mystery Data additions). Releases are built with `--public`, which leaves out Capcom chip art | [patch/README.md](MMBN4-Decomp/patch/README.md), [player README draft](MMBN4-Decomp/docs/player-readme-draft.md) | | **PC port** | Done through PC-6: an emulation-layer port (embedded mGBA, SDL3), ARM64 and x64 builds | [ports/pc/](MMBN4-Decomp/ports/pc/README.md) | | **Wii U port** | WU-1 to WU-6 verified in Cemu | [ports/wiiu/](MMBN4-Decomp/ports/wiiu/) | | **New 3DS port** | Source written, not compiled yet (needs devkitPro) | [ports/3ds/](MMBN4-Decomp/ports/3ds/) | | **Decomp** | **84.3% of the code region is owned as disassembly** (as of 2026-11-27); Red Sun and Blue Moon both rebuild byte-identical. **Only 63 C functions are matching decompilation.** The other C under `decomp/src/modern/` is portable re-implementation that isn't traced to ROM routines, so it counts as port scaffolding, not decomp progress | [decomp/README.md](MMBN4-Decomp/decomp/README.md), [decomp plan](MMBN4-Decomp/plan/decomp/README.md) | Backlog: [MMBN4-Decomp/TODO.md](MMBN4-Decomp/TODO.md). Current handoff: [docs/handoff-violet-eclipse.md](MMBN4-Decomp/docs/handoff-violet-eclipse.md). Owner decisions waiting: [docs/pending/](MMBN4-Decomp/docs/pending/). ## Roadmap (owner, 2026-11-29) Order: **BN4 → BN6 → BN5 → BN3 → BN2 → BN1**, easiest first, judged by how much of BN4's work carries over. | Step | Game | Why here | Expected effort | |---|---|---|---| | 1 | **BN6** | Same engine family as BN4: the m4a tables are byte-identical, and many routines and tables have BN6 shapes. dism-exe's `bn6f` disassembly exists (no licence: reference only until its authors answer). Two versions, like BN4 | Lowest: mostly BN4's tools re-pointed. [Plan](MMBN6-Decomp/plan/README.md) | | 2 | **BN5** | Between BN4 and BN6 in the same engine line; two versions | Low. More naming of our own than BN6 (less prior art) | | 3 | **BN3** | Older engine (BN1-3 generation): BN4's script, cutscene and NPC formats need rework. Two versions | Medium. The build, compare loop, regen pipeline and m4a handling carry over | | 4 | **BN2** | Older engine, single version | Medium to high | | 5 | **BN1** | Oldest engine, single version, furthest from BN4's formats; a community disassembly (Silenthal/bn1, no licence) exists | Highest relative to our tools. [Plan](MMBN1-Decomp/plan/README.md) | Consequences: - **The shared-tools move** (`AGENTS.md` §4) happens at the start of BN6, as its own step, with BN4's checks re-run. - **BN3, BN2 and BN1 come last**, so their shared older-engine tooling is built once, at BN3, and reused down to BN1. - **The Principia Trilogy needs the BN1-3 decomps**, so it moves to the end of the roadmap. - **BN6 starts only when the owner says so.** BN4's release and decomp work continue until then. ## Planned games - **BN6 (next):** [MMBN6-Decomp/](MMBN6-Decomp/README.md) holds the bootstrap plan. - **BN1 (last):** [MMBN1-Decomp/](MMBN1-Decomp/README.md) holds its bootstrap plan, written when it was next; it stays valid. - **BN5, BN3, BN2:** folders are created when their turn comes. - **Principia Trilogy:** [MMBN-Principia-Trilogy/](MMBN-Principia-Trilogy/README.md) is the owner's idea of one continuous game from BN1-3. It depends on those three decomps, so it starts after them, at the end of the roadmap. ## Repository files | File | Contents | |---|---| | [AGENTS.md](AGENTS.md) | Rules for the AI agents (Claude, Gemini, Codex): repo layout, who owns what, git rules, handoffs | | `CLAUDE.md`, `GEMINI.md` | Per-agent entry points (both import `AGENTS.md`) | Run a game's commands from inside its folder, for example `cd MMBN4-Decomp` then `python patch/build.py --check`.