[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#3469AppleHair wants to merge 1 commit intoFunkinCrew:developfrom AppleHair:bugfix/diff-suffix-on-freeplay
changeDiff not use the suffixed difficulty as the current difficulty on freeplay#3469AppleHair wants to merge 1 commit intoFunkinCrew:developfrom
AppleHair:bugfix/diff-suffix-on-freeplay
Conversation
…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".
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Does this PR close any issues? If so, link them below.
Nope.
Briefly describe the issue(s) fixed.
In the
changeDiffmethod ofFreeplayState, when the current song isn't "Random",rememberedDifficultygets assigned to the suffixed version ofcurrentDifficultyinstead ofcurrentDifficultyitself. Later, whengenerateSongListgets called,currentDifficultygets assigned torememberedDifficulty, which meanscurrentDifficultychanged 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
picoandbfvariations are somehow not affected by any of this. Nevertheless, the fix I have here preventsrememberedDifficultyfrom getting assigned to the suffixed version ofcurrentDifficultyin thechangeDiffmethod and fixes all of the problems without affecting thepicoandbfvariations.Include any relevant screenshots or videos.
Before
Bugs.Showcase.Before.mp4
After
As you can see at the end of the video, the
bfvariation 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