PROOF OF CONCEPT ONLY. NOT MAINTAINED. This repository is published as it is, for someone else to pick up and continue. There is no support, issues are disabled, and no further work is planned by the author. Fork it and carry on.
A PC port runtime for JoJo's Bizarre Adventure: Eyes of Heaven (PS4, CUSA04909 EU, version 1.00) on Windows.
The original PS4 x86-64 game code runs directly on the PC: a loader and HLE runtime in src/ provide the PS4
system libraries, the graphics are translated to Vulkan by a shadPS4-derived layer in gpu/, and a Python launcher
(launcher/, run.py) prepares and starts the game.
Provenance: the code is a copy of a PC port of Uncharted: The Nathan Drake Collection (Mevlock's fork of SuperMedo's
uncharted_pc, v0.3.6.64), which in turn grew out of a Bloodborne port. Its Uncharted-only code (guest code hooks, byte
patches, save and menu tools) is kept but runs only for Uncharted's title ids (the game profile in src/runtime.c);
this game gets the generic runtime.
No game files are included. You need your own legally dumped copy of the game: the decrypted folder with
eboot.bin, sce_sys and sce_module.
Not affiliated with Sony Interactive Entertainment, CyberConnect2 or Bandai Namco. Licence: see LICENSE.
Works in play tests: boot, menus, story fights, saves, pad and keyboard input, trophies.
Known problems:
- A rare silent crash as a fight starts. The game closes without a message while a fight loads; it has not been reproduced under a debugger. See docs/jojo/crash.md.
- Fixed 30 fps. The game's logic is frame-locked: every frame is one 1/30 s game step, so a higher frame rate runs the whole game faster. See docs/jojo/framerate.md.
- No upscalers, frame generation or HDR. The base port's temporal anti-aliasing, FSR 3/4, DLSS, XeSS and frame generation start on scene detection made for Uncharted's shaders, which this game never runs, and it has no motion vectors. HDR output was never tested. The launcher turns all of them off.
- Missing imports. The JPEG and PNG codecs (
libSceJpegDec/Enc,libScePngDec/Enc) and a few NpTrophy calls (icons, group info) are not implemented; see the appendix of docs/jojo/first_look.md andtools/missing.py.
MSYS2 CLANG64 shell with the packages listed in packaging/windows/README.md, then:
git clone --recursive https://github.com/Mevlock/jojo-eoh-pc-poc.git
cd jojo-eoh-pc-poc
BB_PGO=off bash ./build.sh
bash packaging/windows/package.sh
build.sh writes out/bb-probe.exe, out/bb-gpu-capabilities.exe and out/bb-play.exe (plain -O2; there is no
PGO profile for this game, so always pass BB_PGO=off). package.sh freezes the launcher with PyInstaller (it needs
a python.org Windows Python) and writes dist/ps4port-windows/ and dist/ps4port-windows.zip.
The FSR-Vulkan submodule must be checked out with LF line endings or build.sh cannot apply its patches; see
packaging/windows/README.md for the fix on a core.autocrlf=true clone.
GitHub Actions (.github/workflows/build.yml) builds the same way on a v* tag, or by hand, and publishes
jojo-eoh-pc-poc-<tag>-windows.zip as a release.
- Launcher:
PS4Port.exefrom the package, orpython launcher/port_launcher.pyfrom a built source tree. Pick the game folder on the Game page and press PLAY. - Without the launcher:
BB_GAME_DIR=<game folder> python run.py.
Saves, the shader cache and last_run.log go to user/.
Where things are:
src/probe.c: the loader (maps the prepared image, relocations, TLS, the fs to gs rewrite, guest threads).src/runtime*.c: the HLE runtime, one file per area (kernel, memory, threads, event flags, files, save data, trophies, audio, time).runtime_resolveinsrc/runtime.cresolves imports by scoped NID;src/import_names.incmaps NIDs to names (regenerate withtools/import_names.py).src/runtime_unwind.c: the unwinder imports libc.prx needs for C++ exceptions.src/runtime_framerate.c: the game's frame pacing diagnostics.gpu/: the shadPS4-derived GPU layer (Gnm, VideoOut, the Vulkan renderer, the in-game overlay ingpu/shim/).scripts/prepare.py,scripts/link_modules.py: unpack the SELFs and link libc.prx and libSceFios2.prx natively.launcher/port_launcher.py: the Windows launcher (Tkinter);run.pystarts the game from its settings.
Tools:
tools/catch_exit.candtools/catch_play.sh: run the game under a minimal debugger that reports what ends the process (for the silent crash).tools/missing.py GAME_DIR: lists the imports the runtime does not provide yet.tools/stacks.py: every thread's host and guest stack of a runningbb-probe.exe(for hangs).BB_JOJO_FRAME_LOG=1: logs the engine's frames per second and its vsync interval every 5 s.BB_JOJO_VSYNC_INTERVAL=1..4changes the interval (1 = 60 fps at double game speed; a diagnostic only).BB_EVF_TRACE=1: traces every event flag call with the flag's name and the game code that asked.
Notes on this game, in docs/jojo/:
first_look.md (executable, imports, engine, risks),
boot_progress.md, framerate.md,
crash.md, strip_inventory.md (what of the Uncharted port is
kept, gated or removed). The other files in docs/ are technical notes inherited from the base port.
Next steps:
- Find the silent crash at fight start (local crash dumps, the ideas in docs/jojo/crash.md).
- Implement the JPEG/PNG codecs and the missing NpTrophy calls (shadPS4 has references for most).
- Smoother motion at normal game speed: try frame generation at 30 fps once the game has motion vectors and a clean HUD split, or the much larger update/draw split described in docs/jojo/framerate.md.
- Test other releases of the game (US, JP) and version 1.01+; only EU 1.00 was tested.
- Remove the Uncharted-only code that the game profile keeps inert (listed in docs/jojo/strip_inventory.md).