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

Beatmap statistics are not updated on editor save #17676

Closed
peppy opened this issue Apr 6, 2022 · 1 comment
Closed

Beatmap statistics are not updated on editor save #17676

peppy opened this issue Apr 6, 2022 · 1 comment
Labels
area:beatmap-parsing .osu file format parsing priority:0 Showstopper. Critical to the next release.

Comments

@peppy
Copy link
Member

peppy commented Apr 6, 2022

The following needs to be moved out of the imported and into a place it can be run on save:

// TODO: this should be done in a better place once we actually need to dynamically update it.
beatmap.StarRating = rulesetInstance.CreateDifficultyCalculator(new DummyConversionBeatmap(decoded)).Calculate().StarRating;
beatmap.Length = calculateLength(decoded);
beatmap.BPM = 60000 / decoded.GetMostCommonBeatLength();

@peppy
Copy link
Member Author

peppy commented Jul 2, 2022

Resolved via #18835

@peppy peppy closed this as completed Jul 2, 2022
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 priority:0 Showstopper. Critical to the next release.
Projects
None yet
Development

No branches or pull requests

1 participant