cmake/bozo_engine.json pins BozoEngine 0.6.0 by version and SHA-256, and
cmake/bozo_engine_fetch.cmake (TMB_Recomp's and SoulCaliburIII_Recomp's
scheme) downloads and checks the release's archive into BozoEngine/ when
configuring. BOZO_ENGINE_DIR still selects a local engine checkout. The
mesh pack reads the engine's tools from the tree the build uses, and
bench_run.sh fetches the release when the lock tool is missing.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The port builds on BozoEngine only; nothing in CMakeLists.txt used the PS2Recomp submodule. Removed: the submodule,
the scripts of the earlier build (analyze, recomp, build_tools, build_runtime, iop_recomp, overlays, run, stage_dlls,
fork_tests, bench_lock, ghidra, play) and its config (recomp/jc2_slus20309.toml). The README describes the BozoEngine
build; the notes and comments no longer name it. recomp/ghidra/jc2_functions.csv stays as committed (its Ghidra
export script came from the submodule).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The PS2Recomp fork is replaced by BozoEngine (submodule BozoEngine, branch
jc2/native-irx-host until its changes are merged). The build makes everything
from the player's game/ files at build time:
- tools/jc2_bozo_prepare.py: SLUS_203.09 with its code spans as sections (the
VU1 microcode at 0x4D8800-0x4E3768 left out: 0 untranslated words) and the
Ghidra map as explicit entries; bozo-recomp makes 75,380 functions.
- recomp/jc2_symbols.txt: the SDK names BozoEngine answers, 663 matched by
bozo_symbolmap.py against DC's and TMB's executables, 45 reviewed
(sceMcMkdir is sceMcOpen(..., 0x40); InitAlarm, SetAlarm, iSetAlarm,
sceSifLoadModule, sceSifLoadStartModule read here).
- tools/jc2_bozo_audio.py: LIBSD, MODMIDI, MODHSYN, UAMAN, IMODEMAN, M2IOPSYS,
M2SOUND and M2IMODE compiled offline to native C++ at their console bases.
- runtime/jc2_port.cpp: the frame wait (0x15B400) ends the native frame;
sceIpuInit is answered as done; the game's EE RPC servers (0x10001 for
M2SOUND, 0x10003 for M2IMODE, registered by its own sceSifRegisterRpc) become
native EE services that run the game's handlers at once.
- jc2-headless: 600 frames, 0 unknown device accesses (the DMA kicks and a GS
register write remain, to go with the native draws). No window yet.
The PS2Recomp submodule and its scripts stay until the BozoEngine build draws.
Notes: docs/RECOMP_NOTES.md, "BozoEngine bring-up".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The owner's save showed as "Unregistered": the slot list wants sceMcGetDir entry
slot+6 to be the 141940-byte save, as a card lists by creation order. Boot 127:
"Load Successful". scripts/play.sh passes JC2_TRACE_SCRIPT; JC2_TRACE_SAVE logs
the save CRC checks. Notes: the open Mahbu scene stop and the half-line shake.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The earlier frame end slept the EE executor through FramePacer::frameEnd() and starved JC2's lower-priority
threads (black frames). Now the main thread waits with EeScheduler::waitExternal and a host thread wakes it at
the deadline, after charging the real EE cycles and presenting. Boot 82: 57-60 fps, menus, movies, first scene.
PS2Recomp: jc2/native with native/renderer 50597c6.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
SC_A005's static initializer (0x964080) was never recompiled: the extractor cut
each module at text + data, dropping the constructor table that follows them, so
the first scene's message window was never built. tools/wrap_overlay.py wraps
VP2S's wrap_elf.py with JC2's text end. README: first in-game screenshots.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first scene waits in its script on command 0xCB, which ends on a three-way cursor or a memory-card slot status;
the game finds no save and keeps polling the card. PS2X_IOP_NATIVE_CHECK only checks TMB's code (VP2S), so the
native IOP modules are checked by behaviour, not by it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- tools/find_overlays.py: the 1383 'MWo3' overlays in CDDATA.000 (load slots 0x940000, 0x963000, ...).
- scripts/overlays.sh: per module VP2S_Recomp's wrap_elf.py (ELF at the load address), tools/overlay_functions.py
(function map without Ghidra) and ps2_recomp in module mode (64-byte guard: the module header with its name),
JOBS at a time, into generated/overlays/ (headers also in one include folder); CMake object library jc2_overlays.
1368 build; 15 SC_* modules with a constructor table are left for later.
- tools/overlay_main_targets.py: 99 main-ELF functions reached only through pointers or from the overlays (Ghidra
missed them; boot 46 stopped at 0x194FB0), added to entry_points.
- scripts/iop_recomp.sh: all 13 IRX (none leaves code to the interpreter).
- tools/sync_tree.py --keep iop,overlays: scripts/recomp.sh no longer deletes them (boot 47 lost both).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- scripts/run.sh: PS2X_GS_RENDERER=native (no GS emulation; intro movie, title and 3D demo draw) and
PS2X_IOP_WALLCLOCK=1 (IOP time on the PC clock), with the SPU2 wall clock and native IOP modules.
- PS2Recomp jc2/native: GSNativeBackend writes the 0..1 depth to gl_FragDepth (JC2's movie sprite, Z 1 over a
Z 0 clear tested GREATER, was dropped); native/gs-backend present stride; TTA's native GS request, unknown PSM
and per-module PS2X_IOP_NATIVE.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- PS2Recomp on jc2/native (native/renderer + native/gs-backend + main + JC2 fixes): main's reserveMainThreadStack
keeps the invocation stacks off JC2's main stack, so main reaches its scene loop; sceGsSetDefDispEnv takes the
interlace/frame mode from libgraph's parameters (the intro and menu were zoomed/cropped); a GCC build fix.
- Sound: PS2X_SPU2_WALLCLOCK=1 by default (the default SPU2 path gave white noise); the six sound/system IOP
modules recompiled to native C++ (scripts/iop_recomp.sh -> generated/iop, CMake object library) and run with
PS2X_IOP_NATIVE=1 by default, checked against the interpreter.
- scripts/bench_run.sh: --alone for the two-slot lock, and set +euo pipefail around the lock tool.
- tools/gs_trace_dump.py: decodes a PS2X_GS_RECORD trace and rebuilds uploaded images.
- runtime/jc2_overrides.cpp: bring-up traces (JC2_TRACE_GS, JC2_TRACE_CALLS, JC2_WATCH, JC2_GUARD).
- docs/RECOMP_NOTES.md: boots 11-33.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
- recomp: sceCdDiskReady@0x00124910 stubbed. The analyzer missed this libcdvd function; it binds
cdvdfsv RPC 0x8000059A and retries forever, since nothing serves it before the game loads any
IOP module (boot 2). Boot 3 then reads CDDATA.LOC and waits in WaitSema for the loader thread.
- scripts: bench_lock.sh / bench_run.sh use the fork's PS2Recomp/tools/bench_lock.sh (submodule
at e2cfeff), with takes and releases announced through a local hook.
- runtime: JC2_OVERLAY_DUMP=<dir> saves each distinct code overlay image loaded at 0x940000, to
recompile them as fork overlay modules.
- README follows TMB's; notes: boots 2-3, the overlay plan, room findings to check later.
- Inlined-stub scan (FFOP's recompiler bug): 0 in JC2.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
PS2Recomp submodule (boubou666/PS2Recomp main c0b08a0), the TLOTR-style scripts (extract, tools,
Ghidra headless map of the stripped ELF, analyzer, recomp, runtime build, run, bench lock), the
analyzer TOML (244 SDK stubs, 40 jump tables), the Ghidra function map and an override skeleton.
SLUS_203.09 is one segment of code and data: Ghidra also labels the data, and the first recompile
had 69,751 unhandled instructions, all in it. tools/filter_ghidra_map.py drops the map entries in
the data spans (code is 0x100000-0x4E3E80 and 0x6B2B00-0x6B9310, the static constructors); the
recompile is then clean: 72,296 functions, 0 errors, 9 VU1 microcode fragments.
Boot 1 stopped on the first static constructor (0x6B2B00), which an earlier filter range had
dropped as data; fixed here. The bench lock now announces its takes and releases through a local
hook.
Co-Authored-By: Claude Opus 5.5 <[email protected]>