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

osu!(lazer) not importing old beatmaps correctly #30738

Open
GaticoYuca opened this issue Nov 18, 2024 · 1 comment
Open

osu!(lazer) not importing old beatmaps correctly #30738

GaticoYuca opened this issue Nov 18, 2024 · 1 comment
Assignees
Labels
area:import dealing with importing of data from stable or file formats

Comments

@GaticoYuca
Copy link

Type

Crash to desktop

Bug description

osu!(lazer) does not import the flair of very old maps (2010 - 2011) and thus even when downloading directly for the in-game beatmap listings, maps with the "ranked" flair on the listings are imported without any flair and those maps also don't award any ranked stats because the game thinks they are unranked

Screenshots or videos

this video show a map being downloaded directly through the in-game listings

2024-11-17-20-14-17.1.mp4

Version

lazer 2024.1115.3

Logs

compressed-logs.zip

@smoogipoo smoogipoo added the area:import dealing with importing of data from stable or file formats label Nov 18, 2024
@bdach bdach self-assigned this Nov 18, 2024
@bdach
Copy link
Collaborator

bdach commented Nov 18, 2024

I can't reproduce this, and logs contain the following:

2024-11-18 00:15:05 [verbose]: [?????] Beginning import from tmpkikfbf.osz...
2024-11-18 00:15:06 [verbose]: [f3168] Found existing beatmap for Hatsune Miku - Senbonzakura (Short Ver.) (NatsumeRin) (ID e2fa765b-3780-4d0a-a396-2bd62b6c3190) – skipping import.

What I'm thinking is that the existing import is wrong and keeps getting restored.

Can you try the following?

  1. Go to one of the broken maps
  2. Delete it
  3. Close the game and open it again
  4. Redownload the map

Does doing that fix the issue?

Additionally, do you recall if you've originally imported the beatmap from stable or something?


On one side, the following check probably should be a lot smarter:

protected override bool CanReuseExisting(BeatmapSetInfo existing, BeatmapSetInfo import)
{
if (!base.CanReuseExisting(existing, import))
return false;
var existingIds = existing.Beatmaps.Select(b => b.OnlineID).Order();
var importIds = import.Beatmaps.Select(b => b.OnlineID).Order();
// force re-import if we are not in a sane state.
return existing.OnlineID == import.OnlineID && existingIds.SequenceEqual(importIds);
}

but on the other, making it so will likely significantly slow bulk imports, so...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:import dealing with importing of data from stable or file formats
Projects
None yet
Development

No branches or pull requests

3 participants