Anyone here used Eli Button Common Events by Hakuen Studio?

Sometimes this plugin works and when it does, it does a beautiful job. Sometimes it just randomly decides to scramble the inputs and make random buttons do random things they're not supposed to and idk why. Sometimes its upon booting the game up, sometimes I'll start a game with it working and it'll scramble up at some point along the way and I have fixed it a number of times now but fail to understand WHAT is fixing it as it seems multiple different things have worked such as...
disconnecting and reconnecting the controller, closing and reopening the game, restarting the computer itself, disabling steam input, and even literally opening the plugin in the editor to check all the parameters (Not even touch or edit a thing) re-launch the game and boom, now it works. But any of these given fixes don't seem to be guaranteed to work at any given time... This is the buggiest plugin I have ever worked with and it doesn't make any sense to me so I'm reaching out to see if anyone else has had a similar experience or has any ideas towards a solution. If anything perhaps someone knows of a simple plugin that accomplishes the same thing that I can use instead but I have yet to find anything else that has worked better for me yet.
Plugin in question: https://hakuenstudio.itch.io/eli-button-common-events-for-rpg-maker-mz
Well, I don't know how many people here have used it, but I know for sure that someone here wrote it 😛

So perhaps @Eliaquim can help you. It may help you to format your posts a bit, it's pretty daunting to work through that wall of text to try to find any specific details about what's going wrong.
Sometimes this plugin works and when it does, it does a beautiful job. Sometimes it just randomly decides to scramble the inputs and make random buttons do random things they're not supposed to and idk why. Sometimes its upon booting the game up, sometimes I'll start a game with it working and it'll scramble up at some point along the way and I have fixed it a number of times now but fail to understand WHAT is fixing it as it seems multiple different things have worked such as...
disconnecting and reconnecting the controller, closing and reopening the game, restarting the computer itself, disabling steam input, and even literally opening the plugin in the editor to check all the parameters (Not even touch or edit a thing) re-launch the game and boom, now it works. But any of these given fixes don't seem to be guaranteed to work at any given time... This is the buggiest plugin I have ever worked with and it doesn't make any sense to me so I'm reaching out to see if anyone else has had a similar experience or has any ideas towards a solution. If anything perhaps someone knows of a simple plugin that accomplishes the same thing that I can use instead but I have yet to find anything else that has worked better for me yet.
Plugin in question: https://hakuenstudio.itch.io/eli-button-common-events-for-rpg-maker-mz
Hi there!
As @ATT_Turan said, please it is better if you format your post a little better. Its kind hard to understand exatcly.
Now to the plugin itself, I never experienced this or find anyone that had this experience with my plugin. So, let's try figure that out. I will ask a few questions below, try to answer me with a screenshot when you can:

1 - What version of the plugin are you using? MV or MZ?
2 - Are you using the right version for the right RPG Maker software?
3 - Are you using any other plugins that mess with button inputs? Can you send me a screenshot of your plugin manager?

My plugin codes only changes the inputs when it starts, as it will assign the preset button common events created on the plugin parameters to the Input of RPG Maker, and store it on the save file. Whenever you load the game, those presets will be already saved on the save file.

So, if you change the plugin parameters(the button common events presets) and load that previous save file, it will not assign these new plugin parameters into the save file, only if you start a new game. So keep that in mind.

The only other way for it to change, add, or remove buttons into your game is if you use plugin commands.

Now I also need to know how are you using it. How did you setup the Button Common Events, if only through plugin parameters, or using plugin commands too, and what these common events are doing.

If you somehow manage to replicate the issue into a sample project, upload it somewhere, and send it to me. Either through here or through PM. Then I can check it to see what is going on.
Hi there!
As @ATT_Turan said, please it is better if you format your post a little better. Its kind hard to understand exatcly.
Now to the plugin itself, I never experienced this or find anyone that had this experience with my plugin. So, let's try figure that out. I will ask a few questions below, try to answer me with a screenshot when you can:

1 - What version of the plugin are you using? MV or MZ?
2 - Are you using the right version for the right RPG Maker software?
3 - Are you using any other plugins that mess with button inputs? Can you send me a screenshot of your plugin manager?

My plugin codes only changes the inputs when it starts, as it will assign the preset button common events created on the plugin parameters to the Input of RPG Maker, and store it on the save file. Whenever you load the game, those presets will be already saved on the save file.

So, if you change the plugin parameters(the button common events presets) and load that previous save file, it will not assign these new plugin parameters into the save file, only if you start a new game. So keep that in mind.

The only other way for it to change, add, or remove buttons into your game is if you use plugin commands.

Now I also need to know how are you using it. How did you setup the Button Common Events, if only through plugin parameters, or using plugin commands too, and what these common events are doing.

If you somehow manage to replicate the issue into a sample project, upload it somewhere, and send it to me. Either through here or through PM. Then I can check it to see what is going on.
My apologies on the formatting I was just in a hurry to get all my ideas out quick lol was very frustrated at the time. I had a friend over playtesting my game and the controls just decided to go and refused to fix until later I opened the same file on my own to investigate and it just worked with no issues.

To answer your first set of questions I believe I am using the MV version of your script and it is on an MV project. As for other plugins that alter the controls, I've tried a couple others and you'll see them in my plugin list but they're all off and they've all been that way since I found and started using your plugin. I guess my biggest concern would be that I use moghunter's chrono engine which does alter the game a fair bit but I had worked out using your plugin specifically in correlation with chrono engine through talking about it with someone else in another thread who had it work for them so I'm at a loss.

Below I'll post my full plugin list as well as a look at the parameters for the buttons that are giving me trouble and the common events they link to:

(What SEEMS to happen more often than not is the X button which should be calling the skill command from moghunter's chrono engine instead opens the item menu command from moghunter's chrono engine instead, and the select button which should be opening the skill menu from chrono engine is instead doing nothing at all. For this reason I also included a screenshot of the keyboard commands set for moghunter's chrono engine)
Try putting the Eli plugins after Chrono Engine and set the overwrite to false.
So, this is probably a compatibility issue with Chrono Engine(which you didn't mentioned using on your first post, when you said my plugin is buggy 😛)

I would suggest what @AquaEcho said. Chrono Engine may be also changing the buttons. I remember I had a problem with it on the past, but managed to fix it.

If you set on my plugin Overwrite to true, this will only work at the moment the buttons are assigned. Other plugins can still change that if they mess with the Input after my plugin.

The X and Select button on your controller, what Keyboard button they represent?
You need to make sure that the Chrono Engine and my plugin are not using the same buttons.

The best way to confirm a compatibility, is triggering the issue. Then, set the Chrono plugins to off, and try using my buttons again and see if the issue will be trigghered again. If they don't, then it is a compatibility issue.
So, this is probably a compatibility issue with Chrono Engine(which you didn't mentioned using on your first post, when you said my plugin is buggy 😛)

I would suggest what @AquaEcho said. Chrono Engine may be also changing the buttons. I remember I had a problem with it on the past, but managed to fix it.

If you set on my plugin Overwrite to true, this will only work at the moment the buttons are assigned. Other plugins can still change that if they mess with the Input after my plugin.

The X and Select button on your controller, what Keyboard button they represent?
You need to make sure that the Chrono Engine and my plugin are not using the same buttons.

The best way to confirm a compatibility, is triggering the issue. Then, set the Chrono plugins to off, and try using my buttons again and see if the issue will be trigghered again. If they don't, then it is a compatibility issue.
Alright, well I took your advice and set it at the end of my plugin list and set overwrite to false. Upon initial testing it seems to work alright but I'll have to take some time to really test it thoroughly. It honestly seems so random to me whenever the controls decide to go haywire I don't know how to intentionally recreate it but I've had it happen a handful of times for sure.

Anyway I greatly appreciate the advice and I'll keep you posted on if I run into anymore issues. I didn't mean to make it out like I was slandering your plugin or anything lol I apologize, just frustration from a repeated issue and having a very limited understanding of how code works still.

Still this bit here:

"The X and Select button on your controller, what Keyboard button they represent?
You need to make sure that the Chrono Engine and my plugin are not using the same buttons."

I don't quite understand, the X button is the equivalent of "S" On the keyboard for me and Select is "pgedwn" or "W" on the keyboard. What do you mean by chrono engine and your plugin can't use the same "buttons"?
I wrote a guide on how to use Eli Button Common Events here. Basically you only need it for start/select/LT/RT since Chrono Engine already lets you remap the other buttons.

By default the following buttons are mapped in the engine:
A: Ok
X: Shift
B: Cancel
Y: Menu
LB: PageUp
RB: PageDown

I wrote a guide on how to use Eli Button Common Events here. Basically you only need it for start/select/LT/RT since Chrono Engine already lets you remap the other buttons.

By default the following buttons are mapped in the engine:
A: Ok
X: Shift
B: Cancel
Y: Menu
LB: PageUp
RB: PageDown

Ah, ok I understand now. In other words my whole setup for binding a button to use the skill was a waste lol, thank you again!
Ah, ok I understand now. In other words my whole setup for binding a button to use the skill was a waste lol, thank you again!
If you wanted to bind it to one of the non-default buttons (Start/Select/LT/RT) you would use your setup but you wouldn't need to set it to overwrite since nothing is bound to those buttons by default
Alright, well I took your advice and set it at the end of my plugin list and set overwrite to false. Upon initial testing it seems to work alright but I'll have to take some time to really test it thoroughly. It honestly seems so random to me whenever the controls decide to go haywire I don't know how to intentionally recreate it but I've had it happen a handful of times for sure.

Anyway I greatly appreciate the advice and I'll keep you posted on if I run into anymore issues. I didn't mean to make it out like I was slandering your plugin or anything lol I apologize, just frustration from a repeated issue and having a very limited understanding of how code works still.

Still this bit here:

"The X and Select button on your controller, what Keyboard button they represent?
You need to make sure that the Chrono Engine and my plugin are not using the same buttons."

I don't quite understand, the X button is the equivalent of "S" On the keyboard for me and Select is "pgedwn" or "W" on the keyboard. What do you mean by chrono engine and your plugin can't use the same "buttons"?
All cool!
I guess you understood your last question from Aqua Echo replies, right?
But if run into trouble again, tag me here and tell me what is wrong that I will do my best to fix 🙂
Well, since Eliaquim is here, the only issue I've found is getting the Chrono Engine shield to work with his plugin, because the plugin doesn't seem to handle holding down buttons like you would with the shield. The button common events all seem to be instant one-time triggers, which is fine for everything except the shield.

If you put this script in a common event then call it with Eli Button Common Events, the shield will only flash for a frame, as if you just tapped the button instead of holding it down
$gamePlayer.battler()._ras.guard.active = true; $gamePlayer.updateGuardDirection();
I acknowledge I haven't looked at the specific plugin, but that's probably desirable. Most people wouldn't want a common event to continually execute as a button is held down, and even the situation you're describing doesn't want something to continually run; it just wants to acknowledge the held button state.

Is it not a trivial edit to copy the function that checks the input for the shield and map it to one of the recognized gamepad buttons? (or an offered plugin parameter?)

Or are you saying that having Eli's plugin in the project replaces all button presses as one-time triggers, regardless of whether they're mapped to a common event?
Is it not a trivial edit to copy the function that checks the input for the shield and map it to one of the recognized gamepad buttons? (or an offered plugin parameter?)
I had someone ask me how to map the shield to the RT button specifically (presumably because he wanted the shield to feel like Ocarina of Time or something). You need a plugin like Eli's to map to Start/Select/RT/LT. Eli's plugin doesn't seem to recognize a button being held down.

So yes, you can easily make the shield any of the default buttons but not those specific buttons.
@AquaEcho I'm sorry, I'm not understanding something. The purpose of Eli's plugin is to map common events to buttons. But you would not want to implement this via a common event.

The only thing you should need to do to map the shield to the controller's right trigger is a single line of code to add that button to the engine's button mapper:
Code:
Input.gamepadMapper[7] = "rt"

Then you enter rt as the key for the shield in the plugin parameters and it should just work.
@AquaEcho indeed. My plugin does not handle the held down inputs to play common events.
On my Eli Book, there is a code that can help you understand the Gamepad codes, so you can try map the shield to a gamepad button:
JavaScript:
Eli.KeyCodes.gamepad
1716908130128.png


The Chrono Engine seems to assign it's buttons everytime the Game Temp initializes, with that function:
1716908365372.png


So maybe, you can alias that and put there the Gamepads too, like @ATT_Turan showed.
This may help you not rely on my plugin specifically for that case.

The thing is, button common events plugin has the intention to play common events when a button is press, and not exactly be as a key mapper. Although sometimes, it can be used like that. But his main intention is to do event stuff with a press of a button.
Ok, thank you both. I guess I will have to alias that Chrono Engine function and make it its own plugin next week and update my guide as I don't have a controller on me to test it right now.
I guess I will have to alias that Chrono Engine function
I don't see why you would. All it's doing is changing the name of some of the keyboard inputs, which doesn't affect anything that you're doing; and it isn't doing anything at all with the gamepad.

Again, without having set up a project to test it, all you should need is the single line of code I provided.

You could include other lines to change other buttons on the gamepad to match those "names" that Mog made (the a, c, d, s) - that would make the gamepad buttons work innately with whatever those key names do.

But there's no reason to put that inside a function. Just set the values the same way the default code does.
I know it's not the same as your issue but hopefully it will be helpful:

I initially had issues with chrono engine and wasd movement so I just commented out Moghunter's key input mapper stuff in chrono engine. Added my own key input plugin to add wasd and a couple of extra controller buttons. Gave them a name like Turan suggest and then put that 'name' into the plugin parameter. Seems to work fine.
All cool!
I guess you understood your last question from Aqua Echo replies, right?
But if run into trouble again, tag me here and tell me what is wrong that I will do my best to fix 🙂
I just don't understand... I thought my issue was resolved but suddenly I randomly hit issues again. Once again the X button which should be using the equipped skill is instead opening the item menu from chrono engine. Eli button common events is below it now, overwrite is set to false, I even went into chrono engine and removed the item menu command entirely and STILL it opens the item menu. The only binding I'm even using it for anymore is the select button, everything else is done through the chrono engine bindings at this point.

Original thread: https://forums.rpgmakerweb.com/threads/anyone-here-used-eli-button-common-events-by-hakuen-studio.168999/