{
  "api_version": "1.0.0",
  "slug": "legacy-of-goku-2-gba-coop-decomp-claude",
  "url": "https://reversedwithai.com/p/legacy-of-goku-2-gba-coop-decomp-claude",
  "markdown_url": "https://reversedwithai.com/p/legacy-of-goku-2-gba-coop-decomp-claude.md",
  "json_url": "https://reversedwithai.com/p/legacy-of-goku-2-gba-coop-decomp-claude.json",
  "title": "Reverse engineered The Legacy of Goku II (GBA) to add two-player co-op and netplay, with Claude",
  "tagline": "A second player for a GBA Dragon Ball game, patched in from a decompilation.",
  "summary": "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.",
  "target": {
    "name": "Dragon Ball Z: The Legacy of Goku II (GBA, USA)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "Game Boy Advance",
  "models": [
    "Claude Opus 5.5"
  ],
  "tools": [
    "Ghidra",
    "mGBA"
  ],
  "outcome": "partial",
  "outcome_label": "Partial",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": "yes",
    "repro_steps": "yes",
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Ryan Hood",
    "url": "https://github.com/ryanhood10"
  },
  "sources": {
    "repository": "https://github.com/ryanhood10/LegacyOfHercule",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/ryanhood10/LegacyOfHercule"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/legacy-of-goku-2-gba-coop-decomp-claude.webp",
    "credit": "Image: GitHub (ryanhood10/LegacyOfHercule)"
  },
  "commit_history": {
    "commits": 683,
    "ai_commits": 649,
    "ai_days": 18,
    "first_ai_commit": "2026-10-16",
    "last_ai_commit": "2026-11-13",
    "credited_models": [
      {
        "name": "Claude Opus 5.5",
        "commits": 438
      },
      {
        "name": "Claude Fable 5.1",
        "commits": 209
      },
      {
        "name": "Claude Fable 5.2",
        "commits": 2
      }
    ]
  },
  "added_at": "2026-10-18T08:05:24.848369+00:00",
  "updated_at": "2026-10-18T08:05:24.848369+00:00",
  "sources_reviewed_at": "2026-10-18T08:05:24.848369+00:00",
  "reviewed_by": "editor",
  "human_notes": null,
  "reproduce": null,
  "body_md": "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.\n\n## Under the hood\n\nA 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.\n\n## Playing it\n\nIt 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.\n\nYou 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.\n\nSources:\n- https://github.com/ryanhood10/LegacyOfHercule",
  "ai_use_excerpts": null
}
