-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Replace unsafe casting in ManiaDifficultyCalculator
with generic column count calculation
#30026
Conversation
!diffcalc |
Well something ain't right here, since I'd expect the spreadsheet to be empty. And yet it's not. |
Hmmm, very weird |
Checked in the latest lazer - the output is the same as this branch |
@smoogipoo can you run mania sheet on master branch? |
The spreadsheet generated above is against master branch...? What are you hoping to achieve with that? |
both master lazer and master osu-tools output value the same as this branch (39pp) |
Also, I found out that this change breaks osu-tools Text above makes me not so sure about this change anymore. The potential fix I see is passing not converted beatmap into |
var skills = CreateSkills(Beatmap, playableMods, clockRate); | ||
var skills = CreateSkills(beatmap.Beatmap, playableMods, clockRate); |
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 not correct - it will reference the original beatmap, not the post-mod or even mania-converted one.
See review above. Current code is very intentional, and I'm not sure you'll be able to resolve the review without a total rewrite of this PR/if at all. |
This PR was needed for correct functioning of |
!diffcalc |
I think you might be able to get away with storing the I looked back on this PR because I also don't understand why the values changed and may indicate something going wrong in osu-difficulty-calculator, which would be a must-fix for next release. |
I assume that it's because mania have merged but not deployed changes for a while now |
The comparison is against |
well idk how it's comparison against |
I already said I don't know why it's broken... And why I'm doing my own investigation. I'm only telling you how things work and have worked since the very beginning with the sheet generator. REGARDLESS of that, this PR cannot pass. It will guaranteed break at least catch with only a glance at the code. |
This is a prerequisite for #29989 to work
Makes this function work with any generic
IBeatmap
, not onlyManiaBeatmap