[Bug] Rested EXP bar shows REXP 0:00 (empty, "Bank is empty") when the game reports the time in minutes

Open Beginner friendly
#496 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
1-3 hours
Newbie friendliness
90/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
csharp
Domain
backend

Research direction

Start with src/Genie.Core/Extensions/Builtin/RestedExpGauge.cs, especially ParseDuration at the linked lines, and find RestedExpGaugeTests for the existing duration cases. Add coverage for singular and plural minute values, then verify that values such as 59 minutes display as 0:59 and that cycle refresh minutes appear correctly in the tooltip.

Written by the indexing model from the issue text.

Description

bug

What happened

The rested-EXP bar shows REXP 0:00, empty and red, with the tooltip "Bank is empty", while the character still has rested EXP. It happens whenever the game reports less than an hour as minutes, for example:

Rested EXP Stored: 59 minutes  Usable This Cycle: 49 minutes  Cycle Refreshes: 12:53 hours

RestedExpGauge.ParseDuration understands H:MM hours, N hours, H:MM hour, none and less than a minute. Anything else counts as zero, including N minutes and 1 minute:

https://github.com/GenieClient/Genie5/blob/d1373a51750437c74d3da9b1250125a33c2dc564/src/Genie.Core/Extensions/Builtin/RestedExpGauge.cs#L55-L70

So for the whole last hour of a bank or of a cycle's allowance, the bar says there's nothing left. The same goes for Cycle Refreshes: N minutes, which shows as 0:00 in the tooltip.

What you expected

59 minutes reads as 0:59. The bar shows REXP 0:49 (the smaller of banked and usable), filled to match, yellow (under an hour), and the tooltip says the bonus is running low.

Steps to reproduce

  1. Play a character with less than an hour of rested EXP banked or left this cycle, so exp reports it in minutes.
  2. Look at the rested-EXP bar on the hands strip: REXP 0:00, empty, red.
  3. Hover it: "Bank is empty: training is at normal speed."

Environment

  • OS + version: Ubuntu 24.04 arm64 and Ubuntu 26.04.1 x86_64; not OS-specific
  • Genie 5 version: v5.0.1-beta.5 (the parser is unchanged since the gauge was added in 8d26ccb)
  • Install type: built from source; unpacked AppImage
  • Connection mode: Direct SGE

Logs / session capture

The forms the game sends, counted across two characters' logs (numbers replaced by N):

Rested EXP Stored: N:N hours     Usable This Cycle: N:N hours   (most common)
Rested EXP Stored: N minutes     Usable This Cycle: N minutes   (330 lines)
Rested EXP Stored: N minutes     Usable This Cycle: none        (92)
Rested EXP Stored: N:N hours     Usable This Cycle: N minutes   (54)
Rested EXP Stored: N:N hour      Usable This Cycle: N minutes   (35)
...                              Cycle Refreshes: N minutes     (38)

Out of one character's logs, 576 lines had a minutes value in Stored or Usable, and 1 minute (singular) appears too.

Anything else

The fix looks small: accept N minute(s) in ParseDuration, with test cases next to the existing less than a minute one in RestedExpGaugeTests.

Dominant language
C#
Stars
2
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenieClient/Genie5

All issues in GenieClient/Genie5

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.