Skip to content

[BUGFIX] Made changeDiff not use the suffixed difficulty as the current difficulty on freeplay#3469

Closed
AppleHair wants to merge 1 commit intoFunkinCrew:developfrom
AppleHair:bugfix/diff-suffix-on-freeplay
Closed

[BUGFIX] Made changeDiff not use the suffixed difficulty as the current difficulty on freeplay#3469
AppleHair wants to merge 1 commit intoFunkinCrew:developfrom
AppleHair:bugfix/diff-suffix-on-freeplay

Conversation

@AppleHair
Copy link
Contributor

Does this PR close any issues? If so, link them below.

Nope.

Briefly describe the issue(s) fixed.

In the changeDiff method of FreeplayState, when the current song isn't "Random", rememberedDifficulty gets assigned to the suffixed version of currentDifficulty instead of currentDifficulty itself. Later, when generateSongList gets called, currentDifficulty gets assigned to rememberedDifficulty, which means currentDifficulty changed to its suffixed version.

Because difficulty selection in freeplay doesn't use the suffixed versions of the difficulties, adding the suffix creates some bugs. From my testing (which I recorded a video of), I found that the bugs prevent freeplay from selecting custom difficulties on variations other than "default" and "erect", and even make freeplay display the remembered song incorrectly when coming back from another state. I'm using the term "custom difficulties" because the pico and bf variations are somehow not affected by any of this. Nevertheless, the fix I have here prevents rememberedDifficulty from getting assigned to the suffixed version of currentDifficulty in the changeDiff method and fixes all of the problems without affecting the pico and bf variations.

Include any relevant screenshots or videos.

Before

Bugs.Showcase.Before.mp4

After

As you can see at the end of the video, the bf variation in "Darnell (BF Mix)" doesn't get affected by this fix, and is still selectable. I also checked this in the pico remixes and everything there works the same.

PR.Fix.Showcase.After.mp4

…rent difficulty on freeplay

In the `changeDiff` method of `FreeplayState`, when the current song isn't "Random", `rememberedDifficulty` gets assigned to the suffixed version of  `currentDifficulty` instead of `currentDifficulty` itself. Later, when `generateSongList` gets called, `currentDifficulty` gets assigned to `rememberedDifficulty`, which means `currentDifficulty` changed to its suffixed version.

Because difficulty selection in freeplay doesn't use the suffixed versions of the difficulties, adding the suffix creates some bugs. From my testing (which I recorded a video of), I found that the bugs prevent freeplay from selecting custom difficulties on variations other than "default" and "erect".
@EliteMasterEric EliteMasterEric added the status: pending triage Awaiting review. label Oct 1, 2024
@AppleHair AppleHair marked this pull request as draft October 1, 2024 06:58
@AppleHair AppleHair closed this Oct 4, 2024
@AppleHair AppleHair deleted the bugfix/diff-suffix-on-freeplay branch October 4, 2024 12:48
@Hundrec Hundrec removed the status: pending triage Awaiting review. label Jan 22, 2025
@AbnormalPoof AbnormalPoof added the status: rejected Issue did not pass review or PR cannot be approved. label Jan 26, 2025
@EliteMasterEric EliteMasterEric added the size: tiny A tiny pull request with 4 or fewer changes. label May 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: tiny A tiny pull request with 4 or fewer changes. status: rejected Issue did not pass review or PR cannot be approved.

Development

Successfully merging this pull request may close these issues.

4 participants