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

Bug Report: Game crash if you are in charting mode and get the fakeout death #2554

Open
2 of 8 tasks
snipekitty opened this issue May 19, 2024 · 8 comments · May be fixed by FunkinCrew/funkin.assets#133
Open
2 of 8 tasks
Labels
status: pending pull request Dependent on a pull request that is currently awaiting review. topic: chart editor Related to the operation of the Chart Editor. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression

Comments

@snipekitty
Copy link

snipekitty commented May 19, 2024

Please check for duplicates or similar issues, as well performing simple troubleshooting steps (such as clearing cookies, clearing AppData, trying another browser) before submitting an issue.

If you are playing the game in a browser, what site are you playing it from?

If you are playing the game in a browser, what browser are you using?

  • Google Chrome (or chomium based like Brave, vivaldi, MS Edge)
  • Firefox
  • Safari

What version of the game are you using? Look in the bottom left corner of the main menu. (ex: 0.2.7, 0.2.1, shit like that)

version 0.3.3

Have you identified any steps to reproduce the bug? If so, please describe them below in as much detail as possible. Use images if possible.

Please describe your issue. Provide extensive detail and images if possible.

If you want to recreate the error, go to GameOverSubState.hx (and i have to add you can only change GameOverSubState in source code) and edit the code on line 204 to make you have a higher chance to get the fakeout (ex: " if (boyfriend.hasAnimation('fakeoutDeath') && FlxG.random.bool((1 / 1) * 1000)) " and then enter a song that uses base boyfriend (so not any songs in week 4, week 5, or week 6) go into the chart editor, playtest, and die, the game will crash or softlock.

Screenshot 2024-05-18 213230
This is the error that you get in the terminal.

2024-05-18.21-56-11.mp4

this is a video showing the bug happening in real time. The errors appeared after trying to exit to the menu (or pressing backspace)

If you're game is FROZEN and you're playing a web version, press F12 to open up browser dev window, and go to console, and copy-paste whatever red error you're getting

@snipekitty snipekitty added the type: minor bug Involves a minor bug or issue. label May 19, 2024
@EliteMasterEric EliteMasterEric added status: pending triage Awaiting review. and removed type: minor bug Involves a minor bug or issue. labels Jun 17, 2024
@Hundrec
Copy link
Collaborator

Hundrec commented Oct 24, 2024

Are you able to reproduce this in 0.5.3?

@snipekitty
Copy link
Author

Are you able to reproduce this in 0.5.3?

ill try to reproduce it as soon as possible in the newest version

@snipekitty
Copy link
Author

Screenshot 2024-10-25 082737
still happens in 0.5.2, I can't reliably test in 0.5.3 until source code releases

@Hundrec
Copy link
Collaborator

Hundrec commented Oct 25, 2024

Thanks for testing!

@NotHyper-474
Copy link
Contributor

Weird, I'm using the 0.5.3 source code (technically it's just the one on the develop branch) and can't reproduce this.

@snipekitty
Copy link
Author

Weird, I'm using the 0.5.3 source code (technically it's just the one on the develop branch) and can't reproduce this.

really? possibly got fixed?

@Hundrec
Copy link
Collaborator

Hundrec commented Oct 25, 2024

There shouldn't be a difference between 0.5.2 and 0.5.3, so we'll need further testing with this

@Hundrec Hundrec added type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression status: cannot reproduce Involves a bug which cannot be reliably reproduced by reviewers. Assistance may be needed. and removed status: pending triage Awaiting review. labels Jan 23, 2025
@NotHyper-474
Copy link
Contributor

NotHyper-474 commented Feb 20, 2025

I've been looking into this and managed to reproduce it reliably and find what's causing it.
The problem is that BF's character code expects the current substate to be the game over one, but when we're playing from the chart editor the substate is the PlayState.

The patch below fixes it, but I personally don't like how it turned out.

     var bfFakeout:FlxAtlasSprite = new FlxAtlasSprite(this.x - 440, this.y - 240, Paths.animateAtlas("characters/bfFakeOut", "shared"));
-    FlxG.state.subState.add(bfFakeout);
+    var goState:FlxState = FlxG.state.subState;
+    if (goState.subState != null) {
+        // Hack to when we're playing via the Chart Editor
+        goState = goState.subState;
+    }
+    goState.add(bfFakeout);
     bfFakeout.zIndex = 1000;
     bfFakeout.playAnimation('');
     // We don't want people to miss this.
-    FlxG.state.subState.mustNotExit = true;
+    goState.mustNotExit = true;
     bfFakeout.onAnimationComplete.add(() -> {
       bfFakeout.visible = false;
       this.visible = true;
-      FlxG.state.subState.mustNotExit = false;
+      goState.mustNotExit = false;
       this.playAnimation('firstDeath', true, true);

@AbnormalPoof AbnormalPoof added status: pending pull request Dependent on a pull request that is currently awaiting review. type: minor bug Involves a minor bug or issue. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression topic: chart editor Related to the operation of the Chart Editor. and removed status: cannot reproduce Involves a bug which cannot be reliably reproduced by reviewers. Assistance may be needed. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression type: minor bug Involves a minor bug or issue. labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: pending pull request Dependent on a pull request that is currently awaiting review. topic: chart editor Related to the operation of the Chart Editor. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression
Projects
None yet
5 participants