{
  "api_version": "1.0.0",
  "slug": "rittai-ninja-katsugeki-tenchu-2-slps-03040-3d46a5d6",
  "url": "https://reversedwithai.com/p/rittai-ninja-katsugeki-tenchu-2-slps-03040-3d46a5d6",
  "markdown_url": "https://reversedwithai.com/p/rittai-ninja-katsugeki-tenchu-2-slps-03040-3d46a5d6.md",
  "json_url": "https://reversedwithai.com/p/rittai-ninja-katsugeki-tenchu-2-slps-03040-3d46a5d6.json",
  "title": "Fuuzetsu/tenchu-2-decomp is a work-in-progress matching decompilation of Rittai Ninja Katsugeki: Tenchu 2",
  "tagline": "A matching decompilation project for the Japanese PlayStation release of Tenchu 2.",
  "summary": "This project aims to produce readable source code for Tenchu 2 (SLPS-03040) that compiles to match the original game's binary output. It is currently unfinished and relies on manual matching of C functions and assembly routines.",
  "target": {
    "name": "Rittai Ninja Katsugeki: Tenchu 2 (SLPS-03040)",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "PlayStation",
  "models": [
    "Codex"
  ],
  "tools": [
    "GCC 2.8.1",
    "maspsx",
    "Nix",
    "Python"
  ],
  "outcome": "research",
  "outcome_label": "Research",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Fuuzetsu",
    "url": null
  },
  "sources": {
    "repository": "https://github.com/Fuuzetsu/tenchu-2-decomp",
    "writeup": null,
    "discussions": [],
    "all": [
      "https://github.com/Fuuzetsu/tenchu-2-decomp"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/curation/3d46a5d6-e99b-4255-a495-f434433ddd6d.webp",
    "credit": "Image: GitHub (Fuuzetsu/tenchu-2-decomp)"
  },
  "commit_history": null,
  "added_at": "2026-11-29T06:00:49.823105+00:00",
  "updated_at": "2026-11-29T06:00:49.823105+00:00",
  "sources_reviewed_at": "2026-11-30T22:09:10.390791+00:00",
  "reviewed_by": "automated",
  "human_notes": "The project uses a Nix-based build system to ensure a reproducible environment. The progress is tracked per-image, and the repository includes a PLAN.md for development status.",
  "reproduce": "./dev.sh python3 tools/extract.py '/path/to/Tenchu 2 (Japan).cue'; ./dev.sh ./Build check-all",
  "body_md": "The [Tenchu 2 (Japan) decompilation](https://raw.githubusercontent.com/fuuzetsu/tenchu-2-decomp/HEAD/README.md) project is a work-in-progress effort to recover readable source code for the PlayStation title Rittai Ninja Katsugeki: Tenchu 2. The project follows the methodology established by the Tenchu 1 decompilation. The build process compiles declared C units with GCC 2.8.1 and maspsx, assembles reviewed handwritten source, links at retail addresses, and compares every output byte. The scope includes gameplay, engine, menus, save, ending, trial, and editor modules, while excluding Sony PsyQ/SDK/CRT implementations. As of November 2026, the project tracks 1,438 matching game C function instances and 62 nonmatching drafts. Some recent commits are authored by the account named codex, including commits describing matched functions such as the bait pursuit AI and trial editor control loop. The project is not finished, and matching remaining code takes priority over humanization. Original behavior, arithmetic order, ABI, and gameplay glitches are preserved. The project does not include game files, and users must supply their own Japanese disc for extraction and verification.",
  "ai_use_excerpts": {
    "checked_at": "2026-11-28T06:31:15.439Z",
    "items": [
      {
        "quote": "Match complete bait pursuit AI",
        "url": "https://github.com/fuuzetsu/tenchu-2-decomp/commits.atom"
      }
    ]
  }
}
