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

Simplify convertible hitobject parsing and add IHasLegacyHitObjectType #30578

Merged
merged 5 commits into from
Nov 14, 2024

Conversation

smoogipoo
Copy link
Contributor

@smoogipoo smoogipoo commented Nov 11, 2024

The main task I wanted to solve here is to add IHasLegacyHitObjectType so that I can update the databased osu_beatmap counts from osu-difficulty-calculator (ppy/osu-difficulty-calculator#233).

In the process, I thought I'd refactor this whole thing and remove the duplicate ConvertX hitobject types.

Having these be separate implementations sounded awesome at the time,
but it only ever led to confusion. There's no practical difference if,
for example, catch sees hitobjects with `IHasPosition` instead of
`IHasXPosition`.
@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=osu

@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=taiko

@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=catch

@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=mania

@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=osu
DIFFICULTY_CALCULATOR_B=ppy/osu-difficulty-calculator#233

@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=taiko
DIFFICULTY_CALCULATOR_B=ppy/osu-difficulty-calculator#233

@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=catch
DIFFICULTY_CALCULATOR_B=ppy/osu-difficulty-calculator#233

@smoogipoo
Copy link
Contributor Author

!diffcalc
RULESET=mania
DIFFICULTY_CALCULATOR_B=ppy/osu-difficulty-calculator#233

@bdach
Copy link
Collaborator

bdach commented Nov 11, 2024

Test compile failures here

@bdach bdach self-requested a review November 11, 2024 08:27
Copy link
Collaborator

@bdach bdach left a comment

Choose a reason for hiding this comment

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

Source looks correct to me, but will wait for the diffcalc runs

Copy link

Copy link

Copy link

Copy link

Copy link

Difficulty calculation failed: https://github.com/ppy/osu/actions/runs/11773949203

Copy link

Difficulty calculation failed: https://github.com/ppy/osu/actions/runs/11773949811

Copy link

Difficulty calculation failed: https://github.com/ppy/osu/actions/runs/11773950822

Copy link

Copy link

Copy link

Copy link

@smoogipoo
Copy link
Contributor Author

Not sure what happened with the first set of runs that have had spreadsheets deleted 🤔

https://docs.google.com/spreadsheets/d/19cKPfM38bHiwU06_4QKLv8ALi21baEF7WiakK9IXiP0/edit

The change here is intended, and is likely so small scale due to the hotfix #30544

Regardless, I'm pretty confident in this one now. Can rerun the previous sheets if you feel necessary.

@peppy peppy self-requested a review November 14, 2024 07:12
Copy link
Member

@peppy peppy left a comment

Choose a reason for hiding this comment

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

Amazing improvement 💯

@peppy peppy merged commit 7f8eebc into ppy:master Nov 14, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:beatmap-parsing .osu file format parsing size/XL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants