Skip to content

feat(GeoGuessr): add missing division badges and improve duel presence format - #11099

Merged
theusaf merged 1 commit into
PreMiD:mainfrom
barnav1:main
Aug 12, 2026
Merged

feat(GeoGuessr): add missing division badges and improve duel presence format#11099
theusaf merged 1 commit into
PreMiD:mainfrom
barnav1:main

Conversation

@barnav1

@barnav1 barnav1 commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

Description

Improves Rich Presence for Duels game modes (solo and team, ranked and unranked, old and new UI paths).

Changes:

  • Division badge on new /multiplayer/duels and /multiplayer/teams paths — the smallImageKey and division text were only set on the legacy /duels/<id> path. The new matchmaking path now reads the division header from the DOM (with a fallback to the cached soloDivision when the header is hidden mid-game) and applies the correct rank badge for all tiers (Bronze I–IV through Master I–IV, as well as Unranked and Party).
  • Two-line presence format for active duels — previously the score was appended directly to details, consuming the mode line. Now:
    • Line 1 (details): <Mode> | <Division> e.g. Moving Duels | Master IV
    • Line 2 (state): Round N | <score> e.g. Round 3 | 5200 - 4800
  • Round counter — reads the post-round screen element (round-score_roundNumber__) and displays Round N+1 (the upcoming round). Defaults to Round 1 when health bars are visible but no round element has appeared yet. Resets correctly on URL changes.
  • Clean lobby/post-game display — the movement mode prefix (Moving, No Move, etc.) is now only prepended when a game is actively in progress. Lobby and post-game states show the plain Duels / Team Duels label.
  • New rank badge assets — added Imgur-hosted images for Bronze I–IV, Silver IV, Gold IV, Master III–IV, Solo Duels, and Team Duels icons to assets.ts.
  • Version bumpmetadata.json updated from 2.2.02.3.0.

Acknowledgements

Screenshots

Proof showing the creation/modification is working as expected Screenshot 2026-08-11 132620 image_2026-08-11_164453440

…e format

- Add Bronze I-IV, Silver IV, Gold IV, Master III-IV division badge icons
- Add new Solo Duels and Team Duels game mode icons (upscaled to 512x512)
- Redesign duel presence: details shows mode and division, state shows round and score
- Round number incremented by 1 (post-round screen shows completed round)
- Fix round extraction to handle non-breaking spaces via regex
- Fix viewActivities string key typo (was viewActivity, caused undefined on /activities)
- Fix isUnranked stale state reset on re-entering multiplayer
- Bump version 2.2.0 to 2.3.0
@dimerp

dimerp Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🖼️ Activity asset preview

Asset inspection complete. No pixels were harmed in the making of this comment. 🤖

GeoGuessr (websites/G/GeoGuessr) — update

Preview Source URL
logo https://cdn.rcd.gg/PreMiD/websites/G/GeoGuessr/assets/logo.png
thumbnail https://cdn.rcd.gg/PreMiD/websites/G/GeoGuessr/assets/thumbnail.png
code (assets.ts) https://i.imgur.com/AmbABKF.png
code (assets.ts) https://i.imgur.com/qfdOO5p.png
code (assets.ts) https://i.imgur.com/G2NuNVO.png
code (assets.ts) https://i.imgur.com/0xHlqrA.png
code (assets.ts) https://i.imgur.com/JUX1ITk.png
code (assets.ts) https://i.imgur.com/bLTDFXc.png
code (assets.ts) https://i.imgur.com/w8IDLOi.png
code (assets.ts) https://i.imgur.com/hwEJGGF.png
code (assets.ts) https://i.imgur.com/vyHUTfm.png
code (assets.ts) https://i.imgur.com/JIANvyy.png

Beep boop — I refresh this comment on every push, so no need to scroll. 🤖

@theusaf
theusaf enabled auto-merge (squash) August 11, 2026 22:23
@theusaf
theusaf requested a review from a team August 11, 2026 22:23
@theusaf
theusaf merged commit 78f7db7 into PreMiD:main Aug 12, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants