MV SRD Sequence Input Oddity

I haven’t seen this documented anywhere, and it’s probably because this plugin is old and no longer updated or supported, but SRD’s sequence input plugin has an odd bug where if the player mashes the input before the input check begins, it becomes impossible to register the input. At least, I think it’s from mashing…I can replicate it after furiously mashing the required input and even then, it only crops up rarely, but it’s still a huge issue when it does happen. It also can just sort of happen in regular, non-mashing gameplay.

I’ve tested it on a blank project with only the required plugins “Yanfly Core Engine”, “Yanfly Battle Engine Core”, “Yanfly Action Sequences 1-3” and “SRD Sequence Input” in that order and the lock up still occurs. The action sequence itself looks as follows:

Spoiler: code
Code:
<target action>
display action
start sequence input: ok, 20
wait for sequence input: 150
stuff happens
blah
blah
</target action>

The plugin is pretty short, and I tried editing line 672 to add “Input.isPressed(‘“ + input + “‘)” to see if that made a difference, but it didn’t. Extremely niche issue, but it’s devastating for my game since I rely on sequence input quite a bit.
Personally I'm not using wait for sequence input, but you could try and just reset your var 20 to 0 afterwards and see if that helps. My guess is that this command doesn't actually reset the variable.
Personally I'm not using wait for sequence input, but you could try and just reset your var 20 to 0 afterwards and see if that helps. My guess is that this command doesn't actually reset the variable.
I’ve tried resetting it to zero, but I’ve also had the bug happen upon the very first usage of the skill, wherein the variable should be 0 in the first place.

Do you mind posting an example of how you use it in action sequences? I’ll have to do some more testing and see if the bug occurs even without the wait command.
I only use the start sequence input and end sequence input commands from this plugin as well as making to sure to reset the variable to 0 regardless. I use to create timed inputs similar to Legend of Dragoon.

Code:
start sequence input: ok, 100

wait: 8

animation 2: user

common event: 1

se: Sword swing 2

color break: intensity 40, duration 5

enemyanimation 1: target

action effect

wait: 15

end sequence input

if $gameVariables.value(100) > 7

yada

yada

yada
I tried using yours and I can actually still get the bug to occur lol. Have you never experienced it? If you make a short action sequence and just have one animation play if the button press succeeds and another play if it fails, and you just continuously use the skill by mashing “ok”, you’ll likely see the fail animation happen regardless of player input within 20 or so attempts.

I’m curious how you haven’t had it happen since your battle system likely uses this plugin more than mine does.

There must be some kind of check that is failing within the js…

EDIT: Ok, I managed to debug a bit and found that if you somehow manage to trigger the input on frame 0 of the check, it evaluates it as “true” but doesn’t end the sequence check and continues to run for the remainder of the frame limit, in my case, 150 frames. Every frame that the input is not triggered is evaluated as “false”, so the only way to succeed the sequence in this scenario is to lock in and somehow hit the button on the exact last frame. I think if I can figure out why it doesn’t end the check on frame 0, I can fix this extremely niche bug on this plugin no one cares about lol.

DOUBLE EDIT: Got it. Add a new line after 656, and put (without quotes) “this.endSequenceInput();”.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/srd-sequence-input-oddity.178267/