osu icon indicating copy to clipboard operation
osu copied to clipboard

Scores made with third party rulesets can't be saved

Open LumpBloom7 opened this issue 4 years ago • 5 comments

Type

Game behaviour

Bug description

Users are greeted with a "Score failed to import" notification after completing a play with a third party ruleset, and scores don't show in local leaderboards, and replays can't be viewed.

This regression seems to be introduced in #17017, when the check in LegacyScoreEncoder have switched from checking score.ScoreInfo.BeatmapInfo.Ruleset.OnlineID which is always 0, to checking score.ScoreInfo.Ruleset.OnlineID which is always -1 for third party rulesets.

Screenshots or videos

https://user-images.githubusercontent.com/12001167/159126084-eabe3e95-f459-4619-a656-92ef41b31176.mp4

Version

2022.319.0

Logs

runtime.log updater.log database.log network.log performance.log performance-audio.log performance-draw.log performance-input.log performance-update.log

LumpBloom7 avatar Mar 19 '22 16:03 LumpBloom7

Not sure what the solution is here. While the end result is unacceptable at best, the ruleset ID check was there from the very first revision of LegacyScoreEncoder and hasn't been failing until now by pure chance/oversight.

Best thing I can think of is just removing the check.

bdach avatar Mar 19 '22 16:03 bdach

First time this issue was introduced after lazer transferred to realm (2022.127.0). I remember seeing that before that ruleset ID's were assigned automatically somehow, so no issues were present.

UPD: I went a little bit offtopic and thought that we are talking about replays, not the scores, but the issue with replays also related to all 3rd-party rulesets having -1 ruleset ID

EVAST9919 avatar Mar 19 '22 16:03 EVAST9919

Moving this out of p0 since the PR above aiming to fix this has been left in a blocked state for 1+ months.

smoogipoo avatar May 20 '22 01:05 smoogipoo

I still consider this p0 as it shows an error message after every score. I'll revisit today and hopefully find a simpler solution to just disable saving for now.

peppy avatar May 20 '22 02:05 peppy

Sentry issue: OSU-E

ppy-sentryintegration avatar May 29 '22 18:05 ppy-sentryintegration