Skip to content

Fix editor showing no background at all if storyboard that does not replace background is disabled#37112

Merged
peppy merged 1 commit intoppy:masterfrom
bdach:editor-background-machine-broke
Mar 27, 2026
Merged

Fix editor showing no background at all if storyboard that does not replace background is disabled#37112
peppy merged 1 commit intoppy:masterfrom
bdach:editor-background-machine-broke

Conversation

@bdach
Copy link
Copy Markdown
Collaborator

@bdach bdach commented Mar 26, 2026

Man this "storyboard replaces background" baloney has taken hours of bugfixing alone. So many forehead indentations from stepping onto this stupid rake.

This still fails in one more case: when you download a no-video variant of a beatmap that has video, but then edit it, all of the flags on storyboard will claim that the beatmap has a storyboard that replaces a background, but the video asset is missing, so the background will still be black. There's currently no way to check for this and the simplest way to address this as far as I can see would be reverting #37038 and going with the non-refactor route to fix #36875 instead. The alternative is adding all sorts of weird jingles and checks in the storyboard machinery that can be used to be able to tell that a video was supposed to be present in the storyboard but is missing.

Also when entering editor on a map that has background video and storyboard enabled the background will be black until you hit play. Something to do with Video idiosyncrasies for sure.

Closes #37104 maybe? Kind of? Partially? I don't know. This is all very low effort because I'm not confident about digging this ditch any deeper, but just PRing a direct revert would feel pretty offensive I guess?

…eplace background is disabled

Man this "storyboard replaces background" baloney has taken hours of
bugfixing alone. So many forehead indentations from stepping onto this
stupid rake.

This still fails in one more case: when you download a no-video variant
of a beatmap that has video, but then edit it, all of the flags checked
here will claim that the beatmap has a storyboard that replaces a
background, but the video asset is missing, so the background will still
be black. There's currently no way to check for this and the simplest
way to address this as far as I can see would be reverting
ppy#37038 and going with the non-refactor
route to fix ppy#36875 instead.
@bdach bdach requested a review from peppy March 26, 2026 07:32
@bdach bdach moved this from Inbox to Pending Review in osu! team task tracker Mar 26, 2026
@peppy
Copy link
Copy Markdown
Member

peppy commented Mar 26, 2026

Hmm, rather than revert I'd personally rather see editor background screen not existing and moving the remaining required behaviour into BeatmapBackgroundWithStoryboard. Even if that means a new show storyboard flag (in addition to the user config one). The interactions are complicated and having this stuff in one place rather than split across two makes more sense to me.

But also, I think I'd want to get this change in without even testing it. And if shit goes south again then I'll put in some effort to figure out the path forward. Sound good?

@bdach
Copy link
Copy Markdown
Collaborator Author

bdach commented Mar 26, 2026

Yeah sure let's go for it.

@bdach bdach marked this pull request as ready for review March 26, 2026 11:02
@peppy peppy merged commit 522d2bd into ppy:master Mar 27, 2026
8 of 9 checks passed
@github-project-automation github-project-automation bot moved this from Pending Review to Done in osu! team task tracker Mar 27, 2026
@bdach bdach deleted the editor-background-machine-broke branch March 27, 2026 12:08
MingxuanGame pushed a commit to GooGuTeam/osu that referenced this pull request Mar 29, 2026
…eplace background is disabled (ppy#37112)

Man this "storyboard replaces background" baloney has taken hours of
bugfixing alone. So many forehead indentations from stepping onto this
stupid rake.

This still fails in one more case: when you download a no-video variant
of a beatmap that has video, but then edit it, all of the flags on
storyboard will claim that the beatmap has a storyboard that replaces a
background, but the video asset is missing, so the background will still
be black. There's currently no way to check for this and the simplest
way to address this as far as I can see would be reverting
ppy#37038 and going with the non-refactor
route to fix ppy#36875 instead. The
alternative is adding all sorts of weird jingles and checks in the
storyboard machinery that can be used to be able to tell that a video
was supposed to be present in the storyboard but is missing.

Also when entering editor on a map that has background video and
storyboard enabled the background will be black until you hit play.
Something to do with `Video` idiosyncrasies for sure.

Closes ppy#37104 maybe? Kind of?
Partially? I don't know. This is all very low effort because I'm not
confident about digging this ditch any deeper, but just PRing a direct
revert would feel pretty offensive I guess?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

2 participants