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 hitobject counts in osu_beatmaps table #233

Merged
merged 4 commits into from
Nov 15, 2024

Conversation

smoogipoo
Copy link
Contributor

@smoogipoo smoogipoo commented Nov 11, 2024

Prereqs:

See 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 as 1 * circles + 2 * sliders + 3 * spinners for some reason.

There was already a case of `beatmap.Beatmap.Beatmap` with the existing
name, which is nothing short of silly.
@smoogipoo smoogipoo changed the title Update hitobject counts in osu_beatmaps Update hitobject counts in osu_beatmaps table Nov 11, 2024
@peppy peppy self-requested a review November 14, 2024 07:17
@peppy peppy merged commit 277303d into ppy:master Nov 15, 2024
2 checks passed
{
if ((obj.LegacyType & LegacyHitObjectType.Circle) > 0)
countCircle++;
if ((obj.LegacyType & LegacyHitObjectType.Slider) > 0)
Copy link
Contributor

@bdach bdach Nov 15, 2024

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.

Copy link
Contributor

@bdach bdach Nov 15, 2024

Choose a reason for hiding this comment

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

Copy link
Contributor Author

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:

bdach added a commit to bdach/osu-difficulty-calculator that referenced this pull request Nov 15, 2024
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.

3 participants