Map UDS events to trophies from dumped metadata; trophy viewer/overview improvements #1088
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!1088
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1088/head"
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?
@Pipe530 on GitHub · 2026-10-05 23:16 UTC · original
Pipe530:pipe530-trophy-system-improvements→main· +1076 −182 · 16 files · 3 commits · merged 2026-10-06 13:45 UTCTrophy events now use the input property, integer type, stat ID, and comparison recorded in the game’s dumped metadata. Supported extraction is limited to unfiltered, top-level unsigned
latestvalues; other rules are skipped without name matching or guessed counter arithmetic._Trophies/<titleId>/, retaining original UTC unlock timestamps and displaying local dates in the launcher.Validation: emulator and launcher build;
ctest -R '^trophy_system$'passes; all 62 available trophy packages load; real-event target boundaries and toolbar light/dark rendering checked.@coderabbitai[bot] on GitHub · 2026-10-05 23:23 UTC · original · edited 2026-10-06 13:50 UTC
📝 Walkthrough
Walkthrough
The trophy system now parses UDS event mappings, matches event counters to eligible trophies, and saves unlock dates. The launcher adds a game-level trophy overview and per-package trophy details, including progress, grades, earned dates, and hidden-trophy masking. Trophy notifications also receive a visual update, and a dedicated CTest executable covers package parsing, UDS mappings, and unlock persistence.
Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Feature
Merge Risk: 🟡 Moderate · up to
f53bcExisting trophies can appear locked, an unmapped event can incorrectly award a trophy, and the documented test workflow can fail. Resolve these issues before merging.
Security Architecture Review
Security architecture risk: 🔵 Low · up to
f53bcThe identified risk is limited to local trophy history. The new save replacement can lose an existing record if interrupted or if the final rename fails. Moving storage also separates new trophy history from records in the previous location.
Retained concerns
Security review details
Security Blast Radius
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring Coverage
Explanation
Docstring coverage is 6.06% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 66 functions across 9 files. (3 skipped: 3 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
Comment
@coderabbitai helpto get the list of available commands.@ -413,6 +413,12 @@ add_executable(archive_file_tests EXCLUDE_FROM_ALLtarget_link_libraries(archive_file_tests common ZArchive::zarchive)target_include_directories(archive_file_tests PRIVATE ${inc_headers})add_executable(trophy_system_tests EXCLUDE_FROM_ALL@coderabbitai[bot] on GitHub · 2026-10-05 23:23 UTC · original
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Add
trophy_system_teststo thekyty_teststarget.The executable is
EXCLUDE_FROM_ALL. Thekyty_testsaggregate target at Line 684-713 does not list it. A workflow that buildskyty_testsand then runsctestwill failtrophy_systembecause the binary is missing.@ -211,3 +248,3 @@return {};}return root / "_SaveData" / title_id /return root / "_Trophies" / title_id /@coderabbitai[bot] on GitHub · 2026-10-05 23:23 UTC · original
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Migrate or read existing unlock files from
_SaveData.UnlocksPathnow resolves to_Trophies/<title_id>only. Users with unlocks saved under_SaveData/<title_id>from earlier builds will see their trophies as locked. A later unlock then writes a new file that does not contain the earlier unlocks. Add a fallback: if the new file is missing, load the legacy path, and save the result to the new path.@ -264,0 +426,4 @@}}return ids;}@coderabbitai[bot] on GitHub · 2026-10-05 23:23 UTC · original
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 7454
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 41887
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 16408
🏁 Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 5839
Use name matching only when no UDS mappings are available.
When
event_statsis nonempty but lacks the counter event,FindUdsTrophiesstill callsFindUdsTrophy. For example,COOLING__DIVED_FROM_DIVING_BOARDcan match trophy 30 at counter 1. The runtime caller then records and saves the unlock, although the loaded mapping does not associate that event with a stat. Restrict name matching to an empty mapping.Suggested fix
📝 Committable suggestion
@coderabbitai[bot] on GitHub · 2026-10-05 23:23 UTC · original · reviewed
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
e6825413-d396-4b39-bd03-3de4da2e25a6📥 Commits
Reviewing files that changed from the base of the PR and between
cdb64bfd4fand f53bce41c18f30744232d6ea527c31b5abb4a1e2.⛔ Files ignored due to path filters (2)
assets/images/hidden-trophy.pngis excluded by!**/*.pngsrc/launcher/icons/trophy.svgis excluded by!**/*.svg📒 Files selected for processing (12)
CMakeLists.txtsrc/common/trophies.cppsrc/common/trophies.hsrc/graphics/presentation/systemOverlay.cppsrc/launcher/forms/configuration_list_widget.uisrc/launcher/include/configurationListWidget.hsrc/launcher/include/trophyViewerDialog.hsrc/launcher/resources.qrcsrc/launcher/src/configurationListWidget.cppsrc/launcher/src/trophyViewerDialog.cppsrc/libs/libTrophy.cpptests/TrophySystemTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.