-
Notifications
You must be signed in to change notification settings - Fork 78
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
Update commands after game-side changes to accuracy/rank calculation #193
Conversation
PopulateLegacyAccuracyAndRank(score.ScoreInfo); | ||
score.ScoreInfo.LegacyTotalScore = score.ScoreInfo.TotalScore; | ||
PopulateMaximumStatistics(score.ScoreInfo, beatmap); | ||
StandardisedScoreMigrationTools.UpdateFromLegacy(score.ScoreInfo, beatmap); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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? 🤔
LegacyScoreDecoder.PopulateMaximumStatistics()
public osu#26785