Forever-Engine-Legacy
Forever-Engine-Legacy copied to clipboard
reset controls crashing the game
if (controls.RESET && !startingSong && !isStoryMode)
is crashing the game. this probably caused because the reset button isnt configured. configuring the reset button fixes the issue, but it haves to work without doing that.
Invalid key code 0
Called from meta.state.PlayState::update meta/state/PlayState.hx line 684 Called from flixel.input.actions.FlxActionDigital::check flixel/input/actions/FlxAction.hx line 156 Called from flixel.input.actions.FlxAction::check flixel/input/actions/FlxAction.hx line 464 Called from flixel.input.actions.FlxActionInputDigitalKeyboard::check flixel/input/actions/FlxActionInputDigital.hx line 200 Called from flixel.input.FlxKeyManager::checkStatus flixel/input/FlxKeyManager.hx line 187
init was broken
binding reset twice solved it for me (on a custom build, base forever seems to accept the null on Init freely without crashing)
basically you'd just need to compile for a normal release build, bind keys, then compile for debug
figured out the issue: it's flixel
not much I can do about it aside from "not assigning a key as null" (which is impossible with the setup currently) or not sending back a key if the key is null which should be easy
I'd also like to re-iterate this only happens in debug mode, it's not even a real crash that affects anything it's a stupid manual crash
I ""fixed"" the issue by simply binding Reset to R twice on Init, it was enough to avoid the error on debug builds, but it's not exactly a full fix unfortunately
i didnt know it actually happend on forever engine, i though it crashed because i changed something in the code 😂