trophy: track _UpdateTrophyProgress UDS events (Octopath Traveler II) #2104
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!2104
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/2104/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?
@Alexey-Izilianov on GitHub · 2026-11-04 08:58 UTC · original
Alexey-Izilianov:trophy-uds-reported-progress→main· +263 −22 · 4 files · 2 commits · merged 2026-11-04 12:21 UTCOctopath Traveler II (PPSA09809) reports trophy progress through
_UpdateTrophyProgress, which previously fell through without updating or unlocking trophies. Fixes the remaining trophy gap in #1617._trophy_idand_trophy_progressproperties. Reject missing or incorrectly typed properties before changing state.Validation: focused
trophy_system_testsbuilt and passed on Linux with clang++. Coverage includes zero, partial progress, reload, lower reports, target/unlock persistence, platinum, guests, and missing/negative/wrong-type properties with no state changes. The new type-validation regression fails on the original implementation. In-game behavior remains unverified.@coderabbitai[bot] on GitHub · 2026-11-04 09:04 UTC · original · edited 2026-11-04 12:22 UTC
Walkthrough
The change adds persistent reported progress for eligible progressive trophies. UDS progress events validate trophy IDs and values, update progress for non-guest users, and record an unlock when progress reaches its target. Locked progressive trophy information combines reported progress with linked maximum-stat progress. Tests cover progress updates, persistence, event validation, and unlock notifications.
Suggested reviewers:
nmzikChange: Bug fix
Merge Risk:
Low · up to
178d2Reported progress can be lost after a temporary save failure and restart. Retrying unsaved progress would protect it.
Pre-merge checks:
4 ·
1
_UpdateTrophyProgressUDS events for trophy progress in Octopath Traveler II.Full details: Description check
Explanation
The description directly explains the trophy progress changes, validation rules, persistence behavior, unlock handling, guest behavior, testing, and known verification limits. It matches the changeset.
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 12 functions across 4 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
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
@coderabbitai[bot] on GitHub · 2026-11-04 09:04 UTC · original · reviewed
56fee20a-42e3-4a70-991b-b1bbe5f6166dReviewing files that changed from the base of the PR and between
65fd1f61b9and1559ac78e7.src/common/trophies.cppsrc/common/trophies.hsrc/libs/libTrophy.cpptests/TrophySystemTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
@ -733,0 +745,4 @@LibNpTrophy2::RecordTrophyUnlock(*state, *trophy_id, true);} else if (changed &&!LibNpTrophy2::Trophies::SaveUnlockData(state->path, state->unlocks)) {LOGF("[Trophy] could not save trophy progress to %s\n",@coderabbitai[bot] on GitHub · 2026-11-04 12:19 UTC · original
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 5135
Script executed:
Repository: KytyPS5/KytyPS5
Length of output: 3350
Keep reported progress that fails to save, so a later report or flush can persist it.
When
SaveUnlockDatafails in the_UpdateTrophyProgressbranch, the handler logs the failure and returns success. The reported value remains only ing_states. The game receives no error. A repeated report of the same value setschangedto false, so the handler does not retry the save. No exit-time flush of trophy state exists in the inspected code. The file keeps the older progress value until a later save of the same state, such as an unlock, a stat change, or a higher progress report, writes the cached value. Progress reported during a temporary write failure can be lost after restart if no later save occurs.Track the unsaved state in
TrophyState. Set the flag when the progress save fails, and clear it after a successful save. On each progress report, retry the save when the flag is set, even ifchangedis false.@coderabbitai[bot] on GitHub · 2026-11-04 12:19 UTC · original · reviewed
Actionable comments posted: 1
8f04fbb2-d240-49dc-ab37-18c310b933c6Reviewing files that changed from the base of the PR and between
1559ac78e7and 178d22c0b8450abcc92ef52b3733aae89b05d1d9.src/common/trophies.cppsrc/libs/libTrophy.cpptests/TrophySystemTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.