Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix performance legacy-score command doing things it doesn't need to #205

Merged

Conversation

bdach
Copy link
Contributor

@bdach bdach commented May 27, 2024

I'm not exactly sure when or how this happened because I tested this previously (did some web change cause this?), but the performance legacy-score command is:

  • doubly-applying the classic mod
  • needlessly marking the score as legacy
  • incorrectly copying the post-conversion recalculated total score into LegacyTotalScore

while all it needs to be doing is reading what it is given from the API. All of the data it needs is already there, in a form ready for consumption.

For instance, see output of performance legacy-score 215127587 2 (see relevant score):

master
Basic score info
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
beatmap             : 2062131 - Ricky Montgomery - Snow (Crowley)
total score         : 1071818
legacy total score  : 1117705
accuracy            : 99.37
combo               : 1015
mods                : DT, HD, CL, CL

Hit statistics
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
great               : 985
largetickhit        : 30
smalltickhit        : 867
smalltickmiss       : 12

Performance attributes
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
pp                  : 373.07

Difficulty attributes
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
star rating         : 5.49
max combo           : 1,015.00
approach rate       : 9.87
this PR
Basic score info
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
beatmap             : 2062131 - Ricky Montgomery - Snow (Crowley)
total score         : 1117518
legacy total score  : 33334515
accuracy            : 99.37
combo               : 1015
mods                : DT, HD, CL

Hit statistics
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
great               : 985
largetickhit        : 30
smalltickhit        : 867
smalltickmiss       : 12

Performance attributes
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
pp                  : 373.07

Difficulty attributes
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
star rating         : 5.49
max combo           : 1,015.00
approach rate       : 9.87

I'm not exactly sure when or how this happened because I tested this
previously (did some web change cause this?), but the `performance
legacy-score` command is:

- doubly-applying the classic mod
- needlessly marking the score as legacy
- incorrectly copying the post-conversion recalculated total score into
  `LegacyTotalScore`

while all it needs to be doing is reading what it is given from the API.
All of the data it needs is already there, in a form ready for
consumption.
@smoogipoo smoogipoo merged commit d74593a into ppy:master May 27, 2024
3 checks 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