Eli Mobile Controls - Responsive on screen buttons for mobile games!

Oh, I got it now. Only when the text box is active on screen.
To add this patch below the RS plugin, I think I managed to make it work.
Hi!
It did work, but not solved my problem, although I feel like we're almost there. Please read.
I put the plugins in the correct order, and added the Scene_InputDialog into the scene list as you said (see images): now in Android the buttons are "clickable/tappable" while RS plugin is active, but they have no effects.
I tried assigning a letter to a button, to see if the letter appeared in the input text box, but nothing. Also I tried to set a button to "tab", following the (absurd?) idea that in Android, as in Win, the virtual keyboard could be triggered by "moving the cursor" in the input text box: nothing again.
However, during one of my tests (I made A LOT) it worked! When in the game, during a battle, the RS plugin started, the keyboard appeared!! This is exactly what I need!
However, it was during an experiment in which I added many buttons to test them and the main character was not in the normal starting position, but when I deleted the "experimental" buttons and changed the main character starting position to how it should be in my game, it didn't work anymore.
I will sure make more experiments in the next days to see if I can get it.
Note: I made tests making the .apk with the Altimit system.
Hi!
It did not work, but I feel like we're almost there! Please read.
I put the plugins in the correct order, and added the Scene_InputDialog into the scene list as you said (see images): now in Android the buttons are "clickable/tappable" while RS plugin is active, but they have no effects.
I tried assigning a letter to a button, to see if the letter appeared in the input text box, but nothing. Also I tried to set a button to "tab", following the (absurd?) idea that in Android, as in Win, the virtual keyboard could be triggered by "moving the cursor" in the input text box, nothing the same.
However, during one of my tests (I made A LOT) it worked! When in the game, during a battle, the RS plugin started, the keyboard appeared!! This is exactly what I need!
However, it was during an experiment in which I added a lot of buttons and the main character was not in the normal starting position, and when I deleted the "experimental" buttons and changed the main character starting position to haow it should be in my game, it didn't work anymore.
I will sure make more experiments in the next days to see if I can get it.
Note: I made tests making the .apk with the Altimit system.
Understood. But that was the expected behavior.
My buttons will not work to write on the text input field automatically.
You will need to assign script calls for them, so they can make something on the scene.

SceneManager._scene.okResult() - This is the same as hitting the OK button of the RS Text Box
SceneManager._scene.cancelResult() - Is the same as hitting the CANCEL button of the RS Text Box
These two script calls are an example. If you assign one of them to buttons, when you tapp the button, they will work.
1653295392907.png


But to write text on the Textbox, I think you will need the Android Keyboard. You need to find a way for one of my buttons call/make appear the keyboard for Android. So you can use it to type.

The thing is, the patch worked. My buttons are now working on the Text Input scene. But you need to assign a functionality for them.

Before, even if you assign a script call for them, they will not work. Now they will.
I'm trying to use it on RMMV 1.6.1 but the controls don't show up on the screen even after configuring, what should I do?
I'm trying to use it on RMMV 1.6.1 but the controls don't show up on the screen even after configuring, what should I do?
Hi there!

I need more information to help you:
  • Are you using Eli Book above it?
  • If you press F12 and go to the CONSOLE tab, are there any errors?
  • Show me a screenshot of your plugin manager.
  • Show me screenshots of how you set up the plugin parameters.
I am using your Eli Mobile Controls Plugin because I want my game to run on a mobile screen through the web browser like Safari for example. I have Eli Book above it. It works when I run it in Play Testing mode. But when I deploy it, even if I export all the unused files as well, the buttons don't show - even locally on my Windows machine, not only when I export for web and upload to my server at https://spiritualwar.games/otd/gb/index.html

1668513719276.png


1668513864890.png



1668513991427.png
I am using your Eli Mobile Controls Plugin because I want my game to run on a mobile screen through the web browser like Safari for example. I have Eli Book above it. It works when I run it in Play Testing mode. But when I deploy it, even if I export all the unused files as well, the buttons don't show - even locally on my Windows machine, not only when I export for web and upload to my server at https://spiritualwar.games/otd/gb/index.html

View attachment 245194

View attachment 245195


View attachment 245196
Hi there!

I can see on the sources of your project, the following files:
1668551302416.png

But I can't see the hot images for each of them.
if you have a button using the image "enter.png" you also need to have another image "enter_hot.png"(and for every other image you have).
Like this:
1668551390806.png


Try fix that and see if it will work.
Hi, I'm really not sure how you got that representation of my source files. Because both online and in my generated project on my local machine, the directory has these files

So to me the _hot files are all there. That is also why it works when running it in PlayTesting mode.

Is there something I am missing here?
Hi, I'm really not sure how you got that representation of my source files. Because both online and in my generated project on my local machine, the directory has these files

So to me the _hot files are all there. That is also why it works when running it in PlayTesting mode.

Is there something I am missing here?
But when I run it in the console, and click on images, it is like it is duplicating the filenames and not adding the _hot suffix

1668559059284.png
1668559059284.png
Hi, I'm really not sure how you got that representation of my source files. Because both online and in my generated project on my local machine, the directory has these files

So to me the _hot files are all there. That is also why it works when running it in PlayTesting mode.

Is there something I am missing here?
- I clicked on your link and opened the dev tools while your game was running. That is how I saw the files.

But when I run it in the console, and click on images, it is like it is duplicating the filenames and not adding the _hot suffix

View attachment 245250View attachment 245250

I'm not sure what is happening, but let me ask you some questions:
  1. Are you encrypting the files?
  2. When you finish the deploy for web, the _hot files are on the www folder?
  3. It seems to me that the game is trying to get a image file " .png". So, dont know. Maybe a script call somewhere? What is the versions of my the Eli Book and Mobile Controls?
  4. The async stuff going on, which I have no idea if it can mess with my plugin.
1668576811091.png
No. I am not encrypting the files.
Yes the _hot files are all in the folder (surprisingly)
Yet when I run in console it seems like the same file name is mentioned twice
Eli Book 5.4.3, Eli Mobile Controls 5.0.8
I don't know what these async functions are doing
As I mentioned, in PlayTest it works fine
No. I am not encrypting the files.
Yes the _hot files are all in the folder (surprisingly)
Yet when I run in console it seems like the same file name is mentioned twice
Eli Book 5.4.3, Eli Mobile Controls 5.0.8
I don't know what these async functions are doing
As I mentioned, in PlayTest it works fine
I guess I may have find the problem.
1668590432531.png


Are you only using regular buttons? If yes, try setting this parameter to none:

1668590612909.png


As I can see, I guess the plugin i trying to apply an image for the Direction pad, but you didn't set any for it:
1668590804596.png


The Dpad Type is set to "singlePad", but both joystickPad and singlePad parameters does not have any image on it.

My guess is that you just need to set the dpadType to "none".
I made that change and while I haven't tested it on the web yet, I did Deploy to Windows and even though the _hot images are there in the folder, and I don't get any .png type errors like before, the buttons still don't show. So I'm not sure it will be fixed when I upload to the web.
I uploaded to the web at https://spiritualwar.games/otd/gb/index.html

There are no more of these /.png errors which is good but sadly the buttons don't show. I had requested they show on the right side of the screen with a padding of 2. Here is the screen_controls folder:

1668635856128.png
I made that change and while I haven't tested it on the web yet, I did Deploy to Windows and even though the _hot images are there in the folder, and I don't get any .png type errors like before, the buttons still don't show. So I'm not sure it will be fixed when I upload to the web.
They are suppose to show like that?
1668634322082.png

I'm starting to think that it may be a case of compatibility issues.
Because when I use the script call below, the buttons are showing up:
1668635866918.png


So maybe there is a plugin that is overwriting the default RPG Maker functions, preventing my plugin to refresh the buttons on the scene, to hiding or showing them according to each scene they belong.

I don't know the position of my plugins on your plugin manager, so maybe try switching only the Mobile Controls plugin to be more at the bottom of your list.

If that does not solve the problem, try the following:

1 - Check for a compatibility issue. The easy way to do that is just to create a sample project, with only my plugins, but with the same Mobile Control configuration. Then upload it to your website and see if it will work. If the plugin works, then we have a compatibility issue.

Now, to find the plugin that is conflicting, you will need to do a boring process(on your actual project) of disabling one plugin from your plugin manager, and test the game. Repeat that process, until the mobile controls works.

If still they do not work, then I will need a sample project replicating the error, so I can better search and debug to find that problem.
Ok so if I disable all my plugins except for one that does nothing except populate my own JS object, the problem remains - once I deploy.

So I made a new project and the PROBLEM IS IN THE NEW PROJECT!! Same screen_controls directory - I just chose to only make one button. A downarrow. Please see the attached project from the link


It show in playtest but not in Deployed Mode. Even when deployed on Windows.
Ok so if I disable all my plugins except for one that does nothing except populate my own JS object, the problem remains - once I deploy.

So I made a new project and the PROBLEM IS IN THE NEW PROJECT!! Same screen_controls directory - I just chose to only make one button. A downarrow. Please see the attached project from the link


It show in playtest but not in Deployed Mode. Even when deployed on Windows.
Hey there!
I think now it's solved! The problem was with my code, I will release an update fixing it later.
For now, you can do this quick fix:
On line 1517, on the method "isActive", make it return true, like below:
1668655446273.png

Thanks for the feedback!!! 😀
Hey there!
I think now it's solved! The problem was with my code, I will release an update fixing it later.
For now, you can do this quick fix:
On line 1517, on the method "isActive", make it return true, like below:
View attachment 245287
Thanks for the feedback!!! 😀
So far - deploying to a Windows machine - this has fixed it. Thanks for your efforts.

Version 5.0.10 - 01/09/2022​

  • Added a new plugin parameter in an attempt to fix a bug on mobile deployments. When changing activity inside mobile and returning to the RPG Maker game, sometimes the buttons are not properly refreshed their size to match the screen device.
Nice work.

I have Multitouch in my projekt, but it dosnt work with this very good.
If I touch an other button with an other finger, the Joystick wants to go there for a moment and dont know witch finger was for the joystick.

i changed the rmmz_core.js for the Multitouch. After this, i can use two fingers seperate.

i changed line 5970

* Initializes the touch system.
*/
TouchInput.initialize = function() {
this.clear();
this._setupEventHandlers();
this._maxTouches = 2;
};


i dont know if this was the best method to do it.
Nice work.

I have Multitouch in my projekt, but it dosnt work with this very good.
If I touch an other button with an other finger, the Joystick wants to go there for a moment and dont know witch finger was for the joystick.

i changed the rmmz_core.js for the Multitouch. After this, i can use two fingers seperate.

i changed line 5970

* Initializes the touch system.
*/
TouchInput.initialize = function() {
this.clear();
this._setupEventHandlers();
this._maxTouches = 2;
};


i dont know if this was the best method to do it.
Hi there!

I didn't implement any multi-touch support on my code. I just use the default RPG Maker code/ event listeners to operate the touch.

And I have an idea of how to do it, but I'm not willing to do it right now.

If you did the multi-touch support by default on the maker, it's best if you read my plugin and try to understand it to make them compatible.

Original thread: https://forums.rpgmakerweb.com/threads/eli-mobile-controls-responsive-on-screen-buttons-for-mobile-games.133940/