Forever-Engine-Legacy icon indicating copy to clipboard operation
Forever-Engine-Legacy copied to clipboard

reset controls crashing the game

Open jarkeeRGB opened this issue 2 years ago • 6 comments

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

jarkeeRGB avatar Aug 05 '22 23:08 jarkeeRGB

init was broken

jarkeeRGB avatar Aug 06 '22 00:08 jarkeeRGB

image 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

crowplexus avatar Aug 26 '22 06:08 crowplexus

figured out the issue: it's flixel image

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

Yoshubs avatar Aug 27 '22 18:08 Yoshubs

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

Yoshubs avatar Aug 27 '22 18:08 Yoshubs

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

crowplexus avatar Aug 27 '22 19:08 crowplexus

i didnt know it actually happend on forever engine, i though it crashed because i changed something in the code 😂

jarkeeRGB avatar Aug 30 '22 01:08 jarkeeRGB