libScePlayGo: since #5494, High on Life (PPSA15388) aborts at startup on chunk ID 1; a setting to answer unlisted ids, fix branch ready #6205

Closed
opened 2026-10-15 02:54:37 +00:00 by Tamalero · 6 comments
Tamalero commented 2026-10-15 02:54:37 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Tamalero on 2026-10-15T02:54:37Z.


Since #5494, a dump with neither playgo-chunk.dat nor playgo-scenario.json throws on the first nonzero chunk id. High on Life is one of those dumps. On main it now aborts during startup, before its first logo:

terminate called after throwing an instance of 'std::runtime_error'
  what():  scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked

Before #5494 it got SCE_PLAYGO_ERROR_BAD_CHUNK_ID and ran, with the "damaged save" symptom from #5487. With #5494's earlier opt-in, APS5_PLAYGO_ASSUME_UNLISTED_CHUNKS_INSTALLED=1, it loaded its saves and played. The merged version dropped that opt-in, so there's no way to run this dump on main now.

I understand the stop is deliberate, since an incomplete dump can't say which chunks exist. The two known titles need opposite answers, though:

  • High on Life asks scePlayGoGetLocus about ids 0–999 and needs them reported installed (#5487).
  • Sifu (PPSA03001) walks ids until the first error and needs BAD_CHUNK_ID to end the walk (#4491).

So no single default fits both. That's why my branch keeps the stop and lets the user answer for their dump.

Title: High on Life (PPSA15388), dump without PlayGo files.
Where it stops: at startup, on main 8cd937e29. Linux, RTX 4090. 1 of 1 runs.

Fix

Branch: https://github.com/Tamalero/AnyPS5/tree/fix/playgo-unlisted-chunks-setting (one commit on 760ffa683).

  • APS5_PLAYGO_UNLISTED_CHUNKS=installed: ids of a dump without PlayGo metadata are reported installed (LOCAL_FAST).
  • APS5_PLAYGO_UNLISTED_CHUNKS=absent: they return SCE_PLAYGO_ERROR_BAD_CHUNK_ID, the behaviour from before #5494.
  • Unset: the #5494 stop stays, and its message now names the setting. Any other value throws.
  • Dumps with playgo-chunk.dat, playgo-chunkdefs.xml or playgo-scenario.json are unaffected.

GuestPlayGo runs three more layouts in their own processes: installed, absent, and an invalid value. The existing no-file checks now also require the setting's name in the message.

Details and tests
  • High on Life, relinked against the branch, with APS5_PLAYGO_UNLISTED_CHUNKS=installed: it starts and plays its logos at 60 FPS with no PlayGo error. On main it aborts at the same point. Linux (CachyOS), RTX 4090, Release.
  • guest_playgo passes. With Export.cpp from main and the new tests it fails (negative check). tools/check_conventions.py --base origin/main passes.
  • Not tested: Windows (the test sets the variable with _putenv_s there), Sifu itself (I don't have it; absent is the pre-#5494 path that #4491 measured on it).
  • Ratchet & Clank (PPSA01474) also has no PlayGo files but didn't hit the stop on main; Octopath Traveler 0 (PPSA28495) has no PlayGo files either; I haven't rerun it on main.
  • I have fewer than 10 merged PRs, so this is an issue with the branch rather than a PR. Related: #5494, #5487, #4491.

Tested and written by Claude (AI assistant) on a contributor's machine.

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5859254709 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6205). Originally posted by [Tamalero](https://github.com/Tamalero) on 2026-10-15T02:54:37Z. --- Since #5494, a dump with neither `playgo-chunk.dat` nor `playgo-scenario.json` throws on the first nonzero chunk id. High on Life is one of those dumps. On `main` it now aborts during startup, before its first logo: ``` terminate called after throwing an instance of 'std::runtime_error' what(): scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked ``` Before #5494 it got `SCE_PLAYGO_ERROR_BAD_CHUNK_ID` and ran, with the "damaged save" symptom from #5487. With #5494's earlier opt-in, `APS5_PLAYGO_ASSUME_UNLISTED_CHUNKS_INSTALLED=1`, it loaded its saves and played. The merged version dropped that opt-in, so there's no way to run this dump on `main` now. I understand the stop is deliberate, since an incomplete dump can't say which chunks exist. The two known titles need opposite answers, though: - **High on Life** asks `scePlayGoGetLocus` about ids 0–999 and needs them reported **installed** (#5487). - **Sifu (PPSA03001)** walks ids until the first error and needs **`BAD_CHUNK_ID`** to end the walk (#4491). So no single default fits both. That's why my branch keeps the stop and lets the user answer for their dump. **Title:** High on Life (PPSA15388), dump without PlayGo files. **Where it stops:** at startup, on `main` `8cd937e29`. Linux, RTX 4090. 1 of 1 runs. ### Fix Branch: https://github.com/Tamalero/AnyPS5/tree/fix/playgo-unlisted-chunks-setting (one commit on `760ffa683`). - `APS5_PLAYGO_UNLISTED_CHUNKS=installed`: ids of a dump without PlayGo metadata are reported installed (`LOCAL_FAST`). - `APS5_PLAYGO_UNLISTED_CHUNKS=absent`: they return `SCE_PLAYGO_ERROR_BAD_CHUNK_ID`, the behaviour from before #5494. - Unset: the #5494 stop stays, and its message now names the setting. Any other value throws. - Dumps with `playgo-chunk.dat`, `playgo-chunkdefs.xml` or `playgo-scenario.json` are unaffected. `GuestPlayGo` runs three more layouts in their own processes: `installed`, `absent`, and an invalid value. The existing no-file checks now also require the setting's name in the message. <details><summary>Details and tests</summary> - High on Life, relinked against the branch, with `APS5_PLAYGO_UNLISTED_CHUNKS=installed`: it starts and plays its logos at 60 FPS with no PlayGo error. On `main` it aborts at the same point. Linux (CachyOS), RTX 4090, Release. - `guest_playgo` passes. With `Export.cpp` from `main` and the new tests it fails (negative check). `tools/check_conventions.py --base origin/main` passes. - Not tested: Windows (the test sets the variable with `_putenv_s` there), Sifu itself (I don't have it; `absent` is the pre-#5494 path that #4491 measured on it). - Ratchet & Clank (PPSA01474) also has no PlayGo files but didn't hit the stop on `main`; Octopath Traveler 0 (PPSA28495) has no PlayGo files either; I haven't rerun it on `main`. - I have fewer than 10 merged PRs, so this is an issue with the branch rather than a PR. Related: #5494, #5487, #4491. </details> *Tested and written by Claude (AI assistant) on a contributor's machine.*
xXPBSXx commented 2026-10-15 04:19:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-15T04:19:48Z.


Another dump in this class: Kena: Bridge of Spirits (PPSA01746, UE4). Its sce_sys has no playgo-chunk.dat and no playgo-scenario.json (Games\PPSA01746\sce_sys: about, ext_info.dat, icon0/pic0/pic1/pic2, keystone, nptitle.dat, param.json, pfs-version.dat, snd0.at9, trophy2, uds), and on main it stops at startup on the throw this issue describes:

what():  scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked

(PPSA01746_rX/run_054952.err line 103, followed by FATAL: abort() (SIGABRT) at line 104; main a077a88df5bc4ec26a3049aa721ac37ec8f02305 + #5778 e9c98900e7c6c466381a3d99ed8d558b6d9f053f.)

With a local change that makes IsKnownChunk return false instead of throwing (so the chunk id is answered with SCE_PLAYGO_ERROR_BAD_CHUNK_ID, the behaviour before #5494; not part of any PR), the same tree ran the full 300 s requested without any exception: PPSA01746_rX/run_060509.err has 114 lines, no what(), no FATAL. I did not test the other answer (reporting the chunks as installed), so I do not know whether Kena also runs with it; and I did not check a picture. So Kena is, like Sifu, a title that is not stopped by BAD_CHUNK_ID, which is consistent with a setting that lets the user choose the answer per dump.

Tested. Windows 10 (19045), MinGW-w64 GCC 15.2, Release, NVIDIA GeForce RTX 4080 SUPER. Merge tree 5cba9b0321cdfd3453d73c4eada70caa26c8c30b = main a077a88df5bc4ec26a3049aa721ac37ec8f02305 + #5778, plus the local one-line change above; ninja -j 8 libs exit 0 (script times 06:03:15 to 06:04:40); run_title.ps1, one game at a time; script times 06:05:08 to 06:16:33 (includes the wait for the run mutex), 300 s requested, one run. Title executable PPSA01746_rX/app.exe, a hardlink of PPSA01746_rH/app.exe; relinker commit and command not recorded in my notes. Without the PlayGo change (tree without the local edit): run_054952.err, script times 05:49:50 to 05:59:55, the throw above. Not tested: Linux, other GPUs, the "installed" answer, a picture.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6184320908 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6205#issuecomment-6184320908). Originally posted by [xXPBSXx](https://github.com/xXPBSXx) on 2026-10-15T04:19:48Z. --- Another dump in this class: Kena: Bridge of Spirits (PPSA01746, UE4). Its `sce_sys` has no `playgo-chunk.dat` and no `playgo-scenario.json` (`Games\PPSA01746\sce_sys`: about, ext_info.dat, icon0/pic0/pic1/pic2, keystone, nptitle.dat, param.json, pfs-version.dat, snd0.at9, trophy2, uds), and on `main` it stops at startup on the throw this issue describes: ``` what(): scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked ``` (`PPSA01746_rX/run_054952.err` line 103, followed by `FATAL: abort() (SIGABRT)` at line 104; `main` `a077a88df5bc4ec26a3049aa721ac37ec8f02305` + #5778 `e9c98900e7c6c466381a3d99ed8d558b6d9f053f`.) With a local change that makes `IsKnownChunk` return `false` instead of throwing (so the chunk id is answered with `SCE_PLAYGO_ERROR_BAD_CHUNK_ID`, the behaviour before #5494; not part of any PR), the same tree ran the full 300 s requested without any exception: `PPSA01746_rX/run_060509.err` has 114 lines, no `what()`, no `FATAL`. I did not test the other answer (reporting the chunks as installed), so I do not know whether Kena also runs with it; and I did not check a picture. So Kena is, like Sifu, a title that is not stopped by `BAD_CHUNK_ID`, which is consistent with a setting that lets the user choose the answer per dump. **Tested.** Windows 10 (19045), MinGW-w64 GCC 15.2, Release, NVIDIA GeForce RTX 4080 SUPER. Merge tree `5cba9b0321cdfd3453d73c4eada70caa26c8c30b` = `main` `a077a88df5bc4ec26a3049aa721ac37ec8f02305` + #5778, plus the local one-line change above; `ninja -j 8 libs` exit 0 (script times 06:03:15 to 06:04:40); `run_title.ps1`, one game at a time; script times 06:05:08 to 06:16:33 (includes the wait for the run mutex), 300 s requested, one run. Title executable `PPSA01746_rX/app.exe`, a hardlink of `PPSA01746_rH/app.exe`; relinker commit and command not recorded in my notes. Without the PlayGo change (tree without the local edit): `run_054952.err`, script times 05:49:50 to 05:59:55, the throw above. Not tested: Linux, other GPUs, the "installed" answer, a picture. AI-assisted (Claude Code).
johnmaia commented 2026-10-15 16:26:45 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-15T16:26:45Z.


Another one: Disney Epic Mickey: Rebrushed (PPSA15657, UE4). Its sce_sys has no PlayGo file either (about, disc_info.dat, icon0/pic0/pic1/pic2, keystone, nptitle.dat, param.json, pfs-version.dat, trophy2, uds; no playgo-chunkdefs.xml at the root). On main 0029e62f9 (Windows 11, RTX 4080) it stops at startup, before the first frame:

what():  scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked

Before #5494, with SCE_PLAYGO_ERROR_BAD_CHUNK_ID as the answer, this title booted, loaded its save and played its first level on Linux and Windows across many runs (for example main d8888df9b on 10-14). So for this title the pre-#5494 default was enough. I haven't logged which chunk ids it asks for.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6196983467 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6205#issuecomment-6196983467). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-15T16:26:45Z. --- Another one: Disney Epic Mickey: Rebrushed (PPSA15657, UE4). Its `sce_sys` has no PlayGo file either (about, disc_info.dat, icon0/pic0/pic1/pic2, keystone, nptitle.dat, param.json, pfs-version.dat, trophy2, uds; no `playgo-chunkdefs.xml` at the root). On `main` 0029e62f9 (Windows 11, RTX 4080) it stops at startup, before the first frame: ``` what(): scePlayGo: sce_sys/playgo-chunk.dat and sce_sys/playgo-scenario.json are missing, so chunk ID 1 cannot be checked ``` Before #5494, with `SCE_PLAYGO_ERROR_BAD_CHUNK_ID` as the answer, this title booted, loaded its save and played its first level on Linux and Windows across many runs (for example `main` d8888df9b on 10-14). So for this title the pre-#5494 default was enough. I haven't logged which chunk ids it asks for. AI-assisted: yes (Claude Code)
johnmaia commented 2026-10-15 17:02:15 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by johnmaia on 2026-10-15T17:02:15Z.


Follow-up for PPSA15657: with #6236 and APS5_PLAYGO_UNLISTED_CHUNKS=absent, Epic Mickey: Rebrushed runs again on main 0029e62f9 (Windows, RTX 4080): title, save load and about 5 minutes in its first level. absent (SCE_PLAYGO_ERROR_BAD_CHUNK_ID, the pre-#5494 answer) is enough for this title. Details on #6236.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6197687395 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6205#issuecomment-6197687395). Originally posted by [johnmaia](https://github.com/johnmaia) on 2026-10-15T17:02:15Z. --- Follow-up for PPSA15657: with #6236 and `APS5_PLAYGO_UNLISTED_CHUNKS=absent`, Epic Mickey: Rebrushed runs again on `main` 0029e62f9 (Windows, RTX 4080): title, save load and about 5 minutes in its first level. `absent` (`SCE_PLAYGO_ERROR_BAD_CHUNK_ID`, the pre-#5494 answer) is enough for this title. Details on #6236. AI-assisted: yes (Claude Code)
billythemenace2 commented 2026-10-15 18:37:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by billythemenace2 on 2026-10-15T18:37:10Z.


Sackboy: A Big Adventure (PPSA01289, UE4, no PlayGo files) is another title for this list: it needs absent, and installed makes Unreal run out of memory at startup. Details and logs are on #6236.

AI-assisted (Claude Code).

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6199511803 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6205#issuecomment-6199511803). Originally posted by [billythemenace2](https://github.com/billythemenace2) on 2026-10-15T18:37:10Z. --- Sackboy: A Big Adventure (PPSA01289, UE4, no PlayGo files) is another title for this list: it needs `absent`, and `installed` makes Unreal run out of memory at startup. Details and logs are on #6236. AI-assisted (Claude Code).
MarcZX10 commented 2026-10-17 16:33:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-17T16:33:46Z.


The configurable behavior described here is already on current main through #6236. I verified that libScePlayGo/Export.cpp reads APS5_PLAYGO_UNLISTED_CHUNKS, and GuestPlayGo.cpp covers the installed, absent, and invalid-value cases. The open issue appears resolved by that merge; please close it if you consider the title reports addressed.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6236726906 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6205#issuecomment-6236726906). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-17T16:33:46Z. --- The configurable behavior described here is already on current `main` through [#6236](https://github.com/boykopovar/AnyPS5/pull/6236). I verified that `libScePlayGo/Export.cpp` reads `APS5_PLAYGO_UNLISTED_CHUNKS`, and `GuestPlayGo.cpp` covers the `installed`, `absent`, and invalid-value cases. The open issue appears resolved by that merge; please close it if you consider the title reports addressed.
oneandonlydean commented 2026-10-18 02:55:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-18T02:55:42Z.


Fixed by #6236 (e751dd205): APS5_PLAYGO_UNLISTED_CHUNKS lets the user answer unlisted chunks. Closing.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6244938098 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/6205#issuecomment-6244938098). Originally posted by [oneandonlydean](https://github.com/oneandonlydean) on 2026-10-18T02:55:42Z. --- Fixed by #6236 (e751dd205): APS5_PLAYGO_UNLISTED_CHUNKS lets the user answer unlisted chunks. Closing.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#6205
No description provided.