Fix standardised score conversion failing for some taiko scores due to overestimating accuracy portion #26332
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Standardised score conversion would return a negative total score for https://osu.ppy.sh/scores/taiko/182230346.
The underlying reason for this is that the estimation of the accuracy portion for a score can be above the actual accuracy portion in the taiko ruleset.
When calculating the maximum accuracy portion achievable,
TaikoLegacyScoreSimulator
will include the extra 300 points from a double hit on a strong hit, per strong hit. However, this double hit is not factored into accuracy.Both of the aforementioned facts mean that in taiko
- which normally in other rulesets can be used pretty reliably as the exact number of points gained from the accuracy portion - is an estimate in the case of taiko, and an upper estimate at that, because it implicitly assumes that the user has also hit
score.Accuracy
percent of all double hits possible in the beatmap. If this assumption is not upheld, then the user will have earned less points than that from the accuracy portion, which means that the combo proportion estimate will go below zero.It is possible that this has happened on other scores before, but did not result in the total score going negative as the accuracy portion gained would have counteracted the effect of that due to being larger in magnitude than the score loss incurred from the negative combo portion. In the case of the score in question this was not the case due to very low accuracy and very low max combo.
Practically speaking this would mean that for 100% correctness a full reimport of taiko scores would be required, but I don't think it would change many scores in practice, so I don't see it as strictly required to go live.