Skip to content

feat: expose stat-linked achievement progress in expanded achievements#391

Merged
LossyDragon merged 1 commit into
Longi94:masterfrom
VinceBT:up/achievement-progress
Jul 13, 2026
Merged

feat: expose stat-linked achievement progress in expanded achievements#391
LossyDragon merged 1 commit into
Longi94:masterfrom
VinceBT:up/achievement-progress

Conversation

@VinceBT

@VinceBT VinceBT commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Description

Stat-linked "progress" achievements — the ones Steam shows as e.g. 45 / 100 — now surface their progress through getExpandedAchievements.

For each achievement, the schema progress block is read (max_val, min_val, and the linked stat from value.operand1) and matched against the user's current stat values. Three additions to AchievementBlocks:

  • progressCurrent — current value, normalized so 0 == min_val
  • progressMaxmax_val - min_val
  • hasProgress — true when the achievement tracks progress

Regular unlock/locked achievements are untouched (both fields stay null). A new testGetExpandedAchievementsWithProgress covers the parsing against a mock schema.

Verified end to end in GameNative, which renders the values as a progress bar in the achievements list.

Same change opened against the GameNative fork joshuatam/JavaSteam: joshuatam#15

Checklist

  • Code compiles correctly
  • All tests passing
  • Samples run successfully
  • Extended the README / documentation, if necessary

Reads each achievement's schema progress block (max_val, min_val, and the
linked stat via value.operand1), resolves the current value from the user's
stats, and exposes progressCurrent/progressMax plus a hasProgress flag on
AchievementBlocks. Progress achievements can now show a current/max bar.
@LossyDragon LossyDragon merged commit 46c821a into Longi94:master Jul 13, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants