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

Difficulty sort breaks when switching rulesets #25820

Closed
DarnTwine opened this issue Dec 18, 2023 · 2 comments · Fixed by #25888
Closed

Difficulty sort breaks when switching rulesets #25820

DarnTwine opened this issue Dec 18, 2023 · 2 comments · Fixed by #25888
Assignees
Labels
area:song-select priority:0 Showstopper. Critical to the next release.

Comments

@DarnTwine
Copy link

DarnTwine commented Dec 18, 2023

Type

Game behaviour

Bug description

The difficulty sort in the beatmap carousel breaks when switching rulesets; i.e. from osu!standard to osu!mania. It groups all difficulties of a particular mapset—and within a mapset, the difficulties seem to be sorted by difficulty name rather than star rating. Switching back to the original ruleset will display the original correctly sorted beatmap list.

Converted beatmaps retain their difficulty sort when switching rulesets—however it remains sorted according to the original ruleset and does not correctly sort by converted star rating.

Screenshots or videos

Sorting without switching rulesets (correctly sorted):

osu_2023-12-18_17-51-14

Sorting after switching rulesets (incorrectly sorted):

osu_2023-12-18_17-51-30

Sorting after switching rulesets with converted beatmaps (incorrectly sorted according to the new ruleset's star rating):

osu_2023-12-18_18-17-24

Version

2023.1218.0-lazer

Logs

N/A

@bdach bdach added priority:0 Showstopper. Critical to the next release. area:song-select labels Dec 18, 2023
@NiceAesth
Copy link
Contributor

NiceAesth commented Dec 18, 2023

Can reproduce without switching rulesets as well:

  1. Search for a beatmap
  2. Start playing the beatmap and exit
  3. Clear the filter

The entire set will now be grouped and at the end of the carousel even if the current sort mode would place it elsewhere.

Video showcasing this issue: https://streamable.com/c1bfx0

The issue is caused by:
https://github.com/peppy/osu/blob/8704dc3505a934f42f2259ec734bb072aa940282/osu.Game/Screens/Select/Carousel/CarouselGroup.cs#L90

This check does not account for other cases where re-sorting would be necessary.
(e.g. SearchText being different, Ruleset being different)

@peppy
Copy link
Member

peppy commented Dec 18, 2023

The issue is caused by:
https://github.com/peppy/osu/blob/8704dc3505a934f42f2259ec734bb072aa940282/osu.Game/Screens/Select/Carousel/CarouselGroup.cs#L90
This check does not account for other cases where re-sorting would be necessary.
(e.g. SearchText being different, Ruleset being different)

I'm not sure if you were intending to be helpful here, but this explanation brings nothing to the table at all.

Changing the text being searched for should not affect sort order, as it only toggles the visible state of some items.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:song-select priority:0 Showstopper. Critical to the next release.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants