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

Update commands after game-side changes to accuracy/rank calculation #193

Merged
merged 5 commits into from
Jan 31, 2024

Conversation

bdach
Copy link
Contributor

@bdach bdach commented Jan 29, 2024

Comment on lines -26 to +29
PopulateLegacyAccuracyAndRank(score.ScoreInfo);
score.ScoreInfo.LegacyTotalScore = score.ScoreInfo.TotalScore;
PopulateMaximumStatistics(score.ScoreInfo, beatmap);
StandardisedScoreMigrationTools.UpdateFromLegacy(score.ScoreInfo, beatmap);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for the time being if it's a best effort attempt, but I believe this is going to break for non-legacy scores?

Also, shouldn't IsLegacyScore be set?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fine for the time being if it's a best effort attempt, but I believe this is going to break for non-legacy scores?

It probably will, I haven't considered that too much. We'll have to probably rewrite half of osu-tools to correctly handle non-legacy everywhere.

Also, shouldn't IsLegacyScore be set?

It probably should but I didn't notice since none of the commands that use it output total score. I'll fix though.

Copy link
Contributor Author

@bdach bdach Jan 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Upon checking, the IsLegacyScore flag will already be correctly set in all relevant usages of this, because... it comes in from API correctly. So... no changes required? 🤔

@smoogipoo smoogipoo merged commit fb1ca04 into ppy:master Jan 31, 2024
3 checks passed
@bdach bdach deleted the update-after-standardised-changes branch January 31, 2024 14:21
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