question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Rank glitching when clearing for the first time and getting top 50

See original GitHub issue

Type

Game behaviour

Bug description

When clearing a song for the first time, the game will display a different personnal best score rank than the leaderboard rank.

lines of table:

  1. beating already existing highscore that was top50 (no bug)
  2. beating a song for the first time and get top 50 (bug)
  3. beating a song already played that wasn’t top 50 yet (no bug)
  4. same as 3. but beating a song that wasn’t played in a long time (no bug)

As you can see it only happens when you enter the top50 from beating the song for the first time

Screenshots or videos

before after
image image
image image
image image
image image

Version

2023.605.0-lazer

Logs

updater.log database.log input.log network.log performance.log

Issue Analytics

  • State:open
  • Created 3 months ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
peppycommented, Jun 16, 2023

@Kiryonn so i can investigate further, could you please set a score on a fresh beatmap and leave it in the bad state rather than playing a second time?

Can you also link the beatmap and attach a screenshot showing your personal best / leaderboard as above?

I tested to make sure the sorting we’re applying at our end is not having an adverse affect on this and it doesn’t seem to be. Manual testing against a lot of beatmaps I had locally shows no assertion on this:

diff --git a/osu.Game/Screens/Select/Leaderboards/BeatmapLeaderboard.cs b/osu.Game/Screens/Select/Leaderboards/BeatmapLeaderboard.cs
index 4c41ed3622..d8079145e8 100644
--- a/osu.Game/Screens/Select/Leaderboards/BeatmapLeaderboard.cs
+++ b/osu.Game/Screens/Select/Leaderboards/BeatmapLeaderboard.cs
@@ -6,6 +6,7 @@
 using System.Diagnostics;
 using System.Linq;
 using System.Threading;
+using NUnit.Framework;
 using osu.Framework.Allocation;
 using osu.Framework.Bindables;
 using osu.Game.Beatmaps;
@@ -160,6 +161,14 @@ private void load()
                 if (!newRequest.Equals(scoreRetrievalRequest))
                     return;
 
+                var originalScores = response.Scores.Select(s => s.ToScoreInfo(rulesets, fetchBeatmapInfo)).OrderByTotalScore().ToArray();
+                var sortedScores = originalScores.OrderByTotalScore().ToArray();
+
+                for (int i = 0; i < originalScores.Length; i++)
+                {
+                    Debug.Assert(originalScores[i].OnlineID == sortedScores[i].OnlineID);
+                }
+
                 SetScores(
                     response.Scores.Select(s => s.ToScoreInfo(rulesets, fetchBeatmapInfo)).OrderByTotalScore(),
                     response.UserScore?.CreateScoreInfo(rulesets, fetchBeatmapInfo)

1reaction
y0runecommented, Jun 13, 2023

All right! I saw that “issue” in your screenshots so I thought I can be related. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is this a bug or can you not rank up past level 50? I can still ...
Is this a bug or can you not rank up past level 50? I can still “rank up” back to level 50 and...
Read more >
Rankup wrong rank glitch - Bug Report - Overwatch Forums
Usually before it ranks you up it shows your original rank then the new rank, instead of showing gold 3 it showed silver...
Read more >
Manager rating glitched? - EA SPORTS FIFA Forums
The rating keeps getting lower and lower as the season goes, no matter how well you play and even if you win promotion...
Read more >
How To Farm Rare Tickets Easily No Glitch No Cheat 100 ...
... Event has rare tickets missions you can get some rare tickets form that 09:00 Time Score Stages - You have to clear...
Read more >
RESIDENT EVIL 4 REMAKE PROFESSIONAL S+ GUIDE ...
How to get S+ Rank Investigator trophy achievement guide & Leon S+ ... 3 34:30 Chapter 4 57:20 Chapter 5 1:14:55 Chapter 6...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found