-
Notifications
You must be signed in to change notification settings - Fork 18
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 hitobject counts in osu_beatmaps
table
#233
Conversation
There was already a case of `beatmap.Beatmap.Beatmap` with the existing name, which is nothing short of silly.
osu_beatmaps
osu_beatmaps
table
{ | ||
if ((obj.LegacyType & LegacyHitObjectType.Circle) > 0) | ||
countCircle++; | ||
if ((obj.LegacyType & LegacyHitObjectType.Slider) > 0) |
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.
Passing by as I update ppy/osu-server-beatmap-submission#1 to use LegacyHitObjectType
too - not sure if it's gonna matter, but BSS included LegacyHitObjectType.Hold
in this count too, and I'm about to mirror that. Could prove important for mania maps.
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.
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.
How... did I miss that D:
Prereqs:
IHasLegacyHitObjectType
osu#30578See discussion starting from https://discord.com/channels/188630481301012481/380598781432823815/1304293217533165609
tl;dr: We found this beatmap was listed as having 18 sliders when in reality it has 28. This count is directly read+used by the osu!-ruleset pp processor. Other older beatmaps likely also have incorrect counts.
Of note: Writing
countTotal
in particular affects one achievement, but is only used to prevent cheese.osu-web-10
writes this value as1 * circles + 2 * sliders + 3 * spinners
for some reason.