Stack Overflow error when performing specific OPFF actions
melisatana opened this issue · 2 comments
melisatana commented
On console, adding specific OPFF code (crouching out of a dash) causes a stack overflow error in-match which crashes the game. Tested on console and on Ryujinx with isolated and the issue occurs only on console.
OPFF used:
if [*FIGHTER_STATUS_KIND_DASH, *FIGHTER_STATUS_KIND_TURN_DASH].contains(&status) {
if sticky <= -0.6 {
StatusModule::change_status_request_from_script(fighter.module_accessor, *FIGHTER_STATUS_KIND_SQUAT, true);
}
if MotionModule::frame(fighter.module_accessor) >= 4.0 {
if ControlModule::check_button_on(fighter.module_accessor, *CONTROL_PAD_BUTTON_GUARD) && ControlModule::check_button_off(fighter.module_accessor, *CONTROL_PAD_BUTTON_CATCH) {
StatusModule::change_status_request_from_script(fighter.module_accessor, *FIGHTER_STATUS_KIND_GUARD_ON, false);
}
}
`}`
melisatana commented
To add, this issue did not exist on console nor on emulator with the original Smashline plugin.
FatherOfEgg commented
That's odd, when I tried your code snippet on console, it worked just fine.