docs(libSceNpTrophy2): record that the skipped count statistics drive only auto-generated unlock trophies #14935

Merged
JJenkx merged 2 commits from upstream-pr/14935 into main 2026-11-06 21:50:24 +00:00
JJenkx commented 2026-11-02 01:52:57 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by JJenkx on 2026-11-02T01:52:57Z.


What

The "Trophy progress statistics" entry in docs/dev/debt/libSceNpTrophy2.md ends with "(whether a trophy names one is not checked)", about trophies that name a statistic AnyPS5 skips: aggregation count, collection or eachLatest. This PR checks it and records the result in a new entry. The existing entry is unchanged.

Result, over the packages of 96 extracted titles (94 with an affected trophy):

  • 3,082 trophies name an unsupported statistic. Every one names an auto-generated count statistic: definitionGroup autoGenTrophy, statName _autoGenTrophy_NNNN, maxValue 1, with the trophy's comparator ge and target 1.
  • Each such statistic is written only by a rule on _UnlockTrophy whose condition is $._trophy_id == that trophy's own id.
  • None of these trophies is a platinum or has unlockCondition.progressive true (grades B, G and S only), so PostedUnlockRefusal accepts each, and the direct unlock applies.
  • No trophy names a collection, eachLatest or sum statistic.

sceNpUniversalDataSystemPostEvent already turns an _UnlockTrophy event into an unlock directly (the "Trophy events" entry in libSceNpUniversalDataSystem.md). So in these titles, the skipped count rules change no trophy. The [trophy] ... aggregation "count" lines, which appear for almost every title, describe rules whose effect is already covered. A title with a trophy that counts other events would still not progress; none of the 96 has one.

Tested

A read-only Python script over each title's sce_sys/uds/*.ucp and sce_sys/trophy2/*.ucp. It reads the UCP container as ReadUcp does: magic 0xB228C60A, a big-endian table of 0x40-byte entries. It takes:

  • statId and aggregation from stats_definition.json;
  • udsStatId from tropconf.json;
  • the rules that output to each statistic from stats_extraction.json.

udsStatId is a string ("62") and statId a number, so both are compared as integers.

The 94 titles span PPSA01341 to PPSA36257, mostly Unity, UE4 and UE5 titles. 94 of the 96 have at least one such trophy. The script and its output are in the review reply.

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: none (documentation)
  • GPUs tested: n/a (documentation)
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5113740911 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/14935). Originally posted by [JJenkx](https://github.com/JJenkx) on 2026-11-02T01:52:57Z. --- ### What The "Trophy progress statistics" entry in `docs/dev/debt/libSceNpTrophy2.md` ends with "(whether a trophy names one is not checked)", about trophies that name a statistic AnyPS5 skips: aggregation `count`, `collection` or `eachLatest`. This PR checks it and records the result in a new entry. The existing entry is unchanged. **Result, over the packages of 96 extracted titles (94 with an affected trophy):** - 3,082 trophies name an unsupported statistic. Every one names an auto-generated `count` statistic: `definitionGroup` `autoGenTrophy`, `statName` `_autoGenTrophy_NNNN`, `maxValue` 1, with the trophy's comparator `ge` and target 1. - Each such statistic is written only by a rule on `_UnlockTrophy` whose condition is `$._trophy_id ==` that trophy's own id. - None of these trophies is a platinum or has `unlockCondition.progressive` true (grades B, G and S only), so `PostedUnlockRefusal` accepts each, and the direct unlock applies. - No trophy names a `collection`, `eachLatest` or `sum` statistic. `sceNpUniversalDataSystemPostEvent` already turns an `_UnlockTrophy` event into an unlock directly (the "Trophy events" entry in `libSceNpUniversalDataSystem.md`). So in these titles, the skipped `count` rules change no trophy. The `[trophy] ... aggregation "count"` lines, which appear for almost every title, describe rules whose effect is already covered. A title with a trophy that counts other events would still not progress; none of the 96 has one. ### Tested A read-only Python script over each title's `sce_sys/uds/*.ucp` and `sce_sys/trophy2/*.ucp`. It reads the UCP container as `ReadUcp` does: magic `0xB228C60A`, a big-endian table of 0x40-byte entries. It takes: - `statId` and `aggregation` from `stats_definition.json`; - `udsStatId` from `tropconf.json`; - the rules that output to each statistic from `stats_extraction.json`. `udsStatId` is a string ("62") and `statId` a number, so both are compared as integers. The 94 titles span PPSA01341 to PPSA36257, mostly Unity, UE4 and UE5 titles. 94 of the 96 have at least one such trophy. The script and its output are in the review reply. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [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](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/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: none (documentation) - [x] GPUs tested: n/a (documentation) - [x] AI-assisted: yes
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!14935
No description provided.