<!-- Canonical page: https://reversedwithai.com/p/legacy-of-goku-2-gba-coop-decomp-claude -->
Canonical page: https://reversedwithai.com/p/legacy-of-goku-2-gba-coop-decomp-claude

# Reverse engineered The Legacy of Goku II (GBA) to add two-player co-op and netplay, with Claude

> A second player for a GBA Dragon Ball game, patched in from a decompilation.

Ryan Hood is modding Dragon Ball Z: The Legacy of Goku II with Claude and has patched in a second player with their own HUD, damage and experience, playable locally or over lockstep netplay.

## Key facts

- Target: Dragon Ball Z: The Legacy of Goku II (GBA, USA)
- Category: Games and mods
- Platform: Game Boy Advance
- Models: Claude Opus 5.5
- Tools: Ghidra, mGBA
- Outcome: Partial
- Checks: Source available: yes; Repro steps: yes; Real hardware: not reported; Verified by others: not reported
- Author: [Ryan Hood](https://github.com/ryanhood10)
- Added: 2026-10-18
- Updated: 2026-10-18
- Sources reviewed: 2026-10-18 (editor)

## What was done

LegacyOfHercule is a mod of Dragon Ball Z: The Legacy of Goku II (GBA, USA), not a rebuildable decompilation. It adds shared-screen co-op and a Hercule story mod. Ryan Hood works on it with Claude, and the commits are co-authored by Claude Opus 5.5. The repository has a CLAUDE.md quick-start and a work log written for Claude sessions. The README does not say who wrote what. No ROM data is included or committed.

## Under the hood

A headless Ghidra project is built with the GBA memory map and functions seeded from branch targets and pointer tables, because Ghidra's own code finder did not work on this ROM. Findings go into a ROM map. The co-op code is C compiled for the GBA's ARM7 CPU into a blob placed after the original ROM, and a patch script rewrites vtable slots to call it. mGBA Lua scripts carry the second player's input.

## Playing it

It is a work in progress with no date. The patched ROM adds a second player, Hercule by default, with a separate HUD panel, damage and experience (EXP), a button to switch to another party member, and an optional wide view. With no second pad the game plays as before. Two players on one PC work, and so does lockstep netplay (tested on one PC with two instances): a script keeps two mGBA instances in sync, checks a state hash every second and re-sends a snapshot on desync. A widescreen build on a modified mGBA widens the view as the players separate. Link cable play is untested on hardware, and merging Buu's Fury is a later phase.

You need your own dump of the USA ROM (game code ALFE), Python, Git Bash with the arm-none-eabi-gcc toolchain and make, and mGBA with Lua scripting. Run make to produce build/log2-coop.gba, open it in mGBA, load tools/mgba/coop.lua and run tools/p2_keys.py for player 2.

Sources:
- https://github.com/ryanhood10/LegacyOfHercule

## What the commit history shows

649 of 683 commits in the public repository credit an AI, over 18 days between 2026-10-16 and 2026-11-13. Credited: Claude Opus 5.5 (438), Claude Fable 5.1 (209), Claude Fable 5.2 (2).

Measured by this site from public git history.

## Questions about Dragon Ball Z: The Legacy of Goku II (GBA, USA)

### What is the Dragon Ball Z: The Legacy of Goku II (GBA, USA) project?

Ryan Hood is modding Dragon Ball Z: The Legacy of Goku II with Claude and has patched in a second player with their own HUD, damage and experience, playable locally or over lockstep netplay. It is listed under Games and mods for Game Boy Advance.

### Which AI model was used on Dragon Ball Z: The Legacy of Goku II (GBA, USA)?

The entry names Claude Opus 5.5. The tools named alongside are Ghidra and mGBA.

### Did the AI reverse engineering of Dragon Ball Z: The Legacy of Goku II (GBA, USA) work?

Its author reports that it partly works. Checks recorded: source available yes, repro steps yes.

### Is the source code for Dragon Ball Z: The Legacy of Goku II (GBA, USA) available?

Yes. The code, patches or tooling are public: https://github.com/ryanhood10/LegacyOfHercule. The sources give enough steps to reproduce it.

## Sources

- [Repository](https://github.com/ryanhood10/LegacyOfHercule)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Ryan Hood (2026). Reverse engineered The Legacy of Goku II (GBA) to add two-player co-op and netplay, with Claude. Reversed with AI. https://reversedwithai.com/p/legacy-of-goku-2-gba-coop-decomp-claude
