Scores made with third party rulesets can't be saved
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
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.
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
Moving this out of p0 since the PR above aiming to fix this has been left in a blocked state for 1+ months.
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.
Sentry issue: OSU-E