fix(libScePlayGo): list chunks 0 to 999 when only a scenario file is present #7726
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/7726"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T03:16:11Z.
What
Ghost of Tsushima (PPSA02225) stays on a black screen: it never reads its English audio, two of its music archives or its opening movie. Its dump has
sce_sys/playgo-scenario.jsonand no chunk table. For such a dumpscePlayGoGetLocusalready answers every chunk id as installed, butscePlayGoGetChunkIdlisted only chunk 0.The title reads its own chunk map,
cache_ps5/playgo.pgm, at start. It then callsscePlayGoGetChunkIdwith room for 1000 ids, builds a hash set from the ids it gets back, and keeps only theplaygo.pgmentries whose chunk is in that set (app.elf0xb76f00 to 0xb773f5). Entries in any other chunk are never marked as installed, so the title never loads them.scePlayGoGetChunkId, for a dump with only a scenario file, now lists ids 0 to 999. 1000 is the room this title passes. The console's chunk limit is not known here, and the debt entry says so.playgo-chunkdefs.xmlorplaygo-chunk.dat, and dumps with no PlayGo file at all, are unchanged.Tested
Ubuntu 24.04, GCC 13.3, NVIDIA RTX 4070 Ti, on
main43797ca8a9(it merges withca13a56a58cleanly).guest_playgo(Linux): the scenario-only case now requires 1000 listed ids, in order (0 to 999), allLOCAL_FASTfromscePlayGoGetLocus, and a 2-entry buffer filled with 0 and 1.mainwith the new test,guest_playgoaborts: the scenario-only case finds one listed chunk.guest_playgopasses 3 of 3.main676d42396with #7725 (MinGW-w64, WinLibs):guest_playgopasses 3 of 3, and aborts 3 of 3 withmain'sExport.cppand the changed test.APS5_TRACE_APR=1:main43797ca8a9, 301 s: it reads 13 files through APR (75 reads: shaders, English text, two bitmaps, the start-up sound banks, music archives a, d and e), and all 40 dumped frames are black.main: by 47 s it has also readlang_english_audio.xpps,psarc/lang_english_audio.psarc, music archives b and c, and 91 reads of its opening moviemovies/cutscene/splash_america.bsf, whose H.264 stream it decodes throughsceVideodec2(185 reads in all). It then stops at the splash screen onstencil replacement 0x40 against test value 0xff, which #7725 handles. With #7725 as well, it stops 41 s in on the next check, a one-sample depth target under a 2x rasterizer withPS_ITER_SAMPLE; a PR for that follows.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-19T03:28:48Z.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
core/libs/tests/GuestPlayGo.cppcore/libs/prx/libScePlayGo/Export.cppdocs/dev/debt/libScePlayGo.mdImported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-19T05:27:15Z.
Windows data point for
42f4382bc(this PR) merged ontomain676d42396together with #7725 (c9fe9292d) in one tree (f58459c78, both merges clean,git statusempty): Windows 10 (10.0.19045), MinGW-w64 (WinLibs) toolchain,ctest -R '^guest_playgo$', one fresh process per run.libScePlayGo/Export.cpprestored tomain(git checkout upstream/main -- core/libs/prx/libScePlayGo/Export.cpp, the changed test code kept): fails 3 of 3 (exit 8; ctest reportsguest_playgo (Exit code 0xc0000409), which is the test's abort path on Windows, not a title error).Not tested: a title run on Windows, other GPUs, Linux.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T06:05:30Z.
@xXPBSXx thanks for the Windows run and the control with
main'sExport.cpp. I've added it to the description.AI-assisted: yes (Claude Code)
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-19T10:21:58Z.
@milescoviello The change and the test look right. One thing before merge: the project doesn't name specific games or their IDs in the docs (the debt files included). Could you drop "Ghost of Tsushima PPSA02225" and the "PPSA02225 builds its set…" sentence from the
libScePlayGo.mdentry, and keep the mechanism? For example: "…accepts every chunk id as installed, andscePlayGoGetChunkIdlists ids 0 to 999. A title that builds its set of installed chunks from that list skips any chunk it does not see. The console's chunk limit is not known here, and a package with more chunks would see ids from 1000 up as not listed." The title-specific context is welcome in the game's bring-up discussion.Imported from boykopovar/AnyPS5. Originally posted by milescoviello on 2026-10-19T11:04:34Z.
@oneandonlydean done in
e8d68f482c, with your wording. The entry now says "A title that builds its set of installed chunks from that list skips any chunk it does not see", and names no game. The Ghost of Tsushima details are on #5166.AI-assisted: yes (Claude Code)