{
  "added_at": "2026-11-09",
  "category": "reconstruction-cases",
  "class": "game",
  "description_en": "Psychonauts decompiles the PC game's modified Lua 4.0 scripts and portions of its 32-bit x86 engine into source checked by per-function byte comparisons. Its tools extract scripts from a user-owned game copy, rebuild them with a patched Lua compiler, and compare engine objects with Psychonauts.exe. The author reports all script functions matching and the engine still early in progress.",
  "description_zh": "Psychonauts 项目将 PC 版游戏修改过的 Lua 4.0 脚本及部分 32 位 x86 引擎反编译为源码，并逐函数比较重新编译的字节。工具从用户自备游戏提取脚本，以修改版 Lua 编译器重建，并将引擎目标文件与 Psychonauts.exe 对照。作者报告脚本函数全部匹配，引擎仍处早期阶段。",
  "entry_url": "https://awesomerea.org/resources/psychonauts-decomp-case/",
  "entry_url_zh": "https://awesomerea.org/zh/resources/psychonauts-decomp-case/",
  "evidence_class": 2,
  "evidence_status": "observed",
  "evidence_url": "https://github.com/DrDecki/psychonauts-decomp/blob/358267b1061cc3aff2be812afcc8dd058d3c5144/README.md",
  "group": "cases",
  "id": "psychonauts-decomp-case",
  "json_url": "https://awesomerea.org/resources/psychonauts-decomp-case/record.json",
  "kind": "case-study",
  "markdown_url": "https://awesomerea.org/resources/psychonauts-decomp-case/index.md",
  "markdown_url_zh": "https://awesomerea.org/zh/resources/psychonauts-decomp-case/index.md",
  "name": "Psychonauts: matching Lua scripts and PC engine functions",
  "name_zh": "Psychonauts：逐字节匹配 Lua 脚本与 PC 引擎函数",
  "reconstruction_method": "matching-decompilation",
  "record_type": "resource",
  "relationship": "independent-reconstruction",
  "requirement_facets": [
    "prerequisites",
    "prerequisites",
    "limits",
    "license"
  ],
  "requirements": [
    "A personal copy of the current Steam version of Psychonauts.",
    "Linux or WSL, Python 3 and gcc; engine matching also needs pefile, capstone and Visual C++ 2008 without a service pack.",
    "The author reports 106607 of 106607 script functions and 3375 of 10930 engine functions matching.",
    "MIT license."
  ],
  "requirements_zh": [
    "需要自备当前 Steam 版 Psychonauts。",
    "需要 Linux 或 WSL、Python 3 和 gcc；引擎匹配还需 pefile、capstone 及未安装补丁包的 Visual C++ 2008。",
    "作者报告 106607 个脚本函数全部匹配，引擎函数有 3375 个匹配，总数为 10930 个。",
    "MIT 许可证。"
  ],
  "scope": "unknown",
  "targets": [
    "game"
  ],
  "url": "https://github.com/DrDecki/psychonauts-decomp",
  "verification": "source-reviewed",
  "verified_at": "2026-11-06"
}
