feat(playgo): accept a chunk id list for dumps without metadata #11899

Merged
edubox merged 2 commits from upstream-pr/11899 into main 2026-11-02 12:28:12 +00:00
edubox commented 2026-10-27 12:20:56 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by edubox on 2026-10-27T12:20:56Z.


What

Accept a comma-separated list of installed chunk ids in APS5_PLAYGO_UNLISTED_CHUNKS for dumps without playgo-chunk.dat or playgo-scenario.json. The list plus chunk 0 becomes the chunk table and every other id is absent. This stops the linear id walk of a title such as The Medium (PPSA03718) at the first absent id instead of answering every id as installed, which made UE4 reserve 5,565,054,976 bytes and abort with PS5 Out of Memory.

Tested

Linux (CachyOS), GCC 16.2.1, Release. ctest --test-dir build -R '^guest_playgo$' --output-on-failure passes. Added guest_playgo modes for the list (0,1 and 1), invalid values (0,, 65536, 0,x), a chunk table with the list set (the manifest wins) and a scenario with the list set (the list does not extend the scenario). The Medium PPSA03718 with APS5_PLAYGO_UNLISTED_CHUNKS=0,1 no longer stops with the OOM at startup. The run that reached New Game, wrote its save and ran at about 27 FPS also needed the later TYPE 2 fix; a black frame remains a separate issue.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: PPSA03718 #11898
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5033795253 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11899). Originally posted by [edubox](https://github.com/edubox) on 2026-10-27T12:20:56Z. --- ### What Accept a comma-separated list of installed chunk ids in `APS5_PLAYGO_UNLISTED_CHUNKS` for dumps without `playgo-chunk.dat` or `playgo-scenario.json`. The list plus chunk 0 becomes the chunk table and every other id is absent. This stops the linear id walk of a title such as The Medium (PPSA03718) at the first absent id instead of answering every id as installed, which made UE4 reserve 5,565,054,976 bytes and abort with `PS5 Out of Memory`. ### Tested Linux (CachyOS), GCC 16.2.1, Release. `ctest --test-dir build -R '^guest_playgo$' --output-on-failure` passes. Added `guest_playgo` modes for the list (`0,1` and `1`), invalid values (`0,`, `65536`, `0,x`), a chunk table with the list set (the manifest wins) and a scenario with the list set (the list does not extend the scenario). The Medium PPSA03718 with `APS5_PLAYGO_UNLISTED_CHUNKS=0,1` no longer stops with the OOM at startup. The run that reached New Game, wrote its save and ran at about 27 FPS also needed the later TYPE 2 fix; a black frame remains a separate issue. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's technical debt file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: PPSA03718 #11898 - [x] GPUs tested: n/a - [x] AI-assisted: yes
MarcZX10 commented 2026-10-27 12:40:39 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-27T12:40:39Z.

Review: APPROVED


I reviewed the parser, the precedence with playgo-chunk.dat / playgo-scenario.json, the chunk-0 default, and the tests for valid, malformed, and metadata-present configurations. The explicit list is applied only when both metadata sources are absent, and the tests exercise the documented behavior. Hosted Windows and policy checks pass; Linux product CI is skipped by repository policy, while the PR reports three focused Linux runs. I did not run this locally or on a PS5. I found no actionable issue in the diff.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5667172493 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/11899#pullrequestreview-5667172493). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-27T12:40:39Z. **Review:** APPROVED --- I reviewed the parser, the precedence with `playgo-chunk.dat` / `playgo-scenario.json`, the chunk-0 default, and the tests for valid, malformed, and metadata-present configurations. The explicit list is applied only when both metadata sources are absent, and the tests exercise the documented behavior. Hosted Windows and policy checks pass; Linux product CI is skipped by repository policy, while the PR reports three focused Linux runs. I did not run this locally or on a PS5. I found no actionable issue in the diff.
Sign in to join this conversation.
No reviewers
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!11899
No description provided.