Heavily Optimized RGSS Input System + Addons

I noticed kinda weird behaviors when using your system:

- Normally, when you're toggling fullscreen/windowed mode using [ALT]+[ENTER] it just toggles that mode (obviously), but while using your system - when you press [ALT]+[ENTER] it will toggle the screen AND will press enter in-game (interacts with menus and such) - for example normally when you'll toggle the screen while being in the title screen - it will change display mode, nothing more. With your system ON - it changes display mode AND chooses selected command. It's not that bad, since it'll be not accessible for players (in my case), so they won't notice a thing, but I'm just pointing this out.

- The 'worse' problem is with the window_selectables - Normally when you scroll through the commands and for example press UP while having the top command selected, it goes to the command at the bottom.

cf5SvIb.png
(obvious)

But, when your system is installed it doesn't allow to do that. (It affects the whole game - title screen, menus, battles etc. etc.)

1IpW90c.png


And that may be problematic.

Besides that, everything seems to work perfectly.

--------------------------------------------------------------

And sorry for going a little off-topic, but I have a question.

Since you're capable of editing stuff outside the editor, I would like to ask - Would that be possible to I don't know - .dll'ish something to make movies in Ace skip-able? Just a question, you don't have to do anything, because I asked.
@Rikifive

DLL's are usually used for something that is uneditable/invisible through the normal editor.

By skipable movies did you mean movies that can be skipped in middle of them or at the beginning?

Both can be done without the need of C/C++ coding, first with a bit of scripting, second with a Show Choices.

For example, you would use a DLL to make something MASSIVE, like :

1) OpenGL implementation and faster graphics rendering (Khas Ultra Lightning)

2) Internet connections (RGSS WebKit)

3) Game security DLLs (commercial games)

4) Direct hardware control (no example, because this is not a good idea)

@Dekita

It's an interesting system...

Can you explain it a bit more how are you intercepting communication between RGSS301.dll and Ruby?

I tried to overwrite every (documented) method in the Input module to do nothing, but it only did that I could not use in-game keys, and Fxx were still working.

That means that Input module is not directly handling input, or it's not written in Ruby, right?

Then how is RGSS handling this?

I know of a easier way to disable F1/F2/F12, but I think it's illegal, so I won't post it.
@Rikifive - One of those 'bugs' make complete - 100% logical - sense to me.

The reason that the fullscreen thing happens, is purely because my system reads all input, but the default rm system only checks for fullscreen buttons and then triggers fullscreen - it does this whilst its updating and crap.

So basically, when you hit fullscreen, the keys are being regocnized in both my dll, and also the default rm setup - just the game has been told to read my dll data and nothing else, which is why it still recognizes the enter press. 🙂

With regards to the cursor wrap thing, thats an 'issue' my input system has always had, I personally preffer it, but I understand why others could be frustrated by that :/

Not quite sure why it happens like that though, because i have not explicitly 'told' it to. :/


@Kocka - My HTTP framework is far superior to the webkit one.  Perhaps I will actually release it now that mv is close to release 😀

My dll uses windows hooks to remove keybinds before they are sent to the game window - it was the only way I could properly remove keybinds. As you say, there are other ways, such as editing the game exe using resource hacker, but thats not allowed for the purposes of Fkey removal, only for icon changing. :/
Yeah, that's what I was talking about.

And keybinds are not defined in the Game.exe, they are in RGSS301.dll resources, which means you'll need to AS-unpack it, that's even more illegal.
@Kocka
Yes I meant skipable movies in the middle of playing. Skipping at the beginning (Putting choices) is really obvious.
I was searching for something like this, but I couldn't find that much. (Only weird launchers of some kind)
 
@Dekita
I didn't said these are 'bugs', just pointed out the 'little unexpected changes'. ^^ I wasn't sure if you know about these or not, so I just said. (=
Of course the first one isn't a big deal and I was thinking it has to do something with system-game.
 
But actually the second one is kinda problematic. In menu it's not that bad, but in battle, where I have 'ring of commands' it feels really weird.
Any chances to fix that?
 
Btw - 'powerful enough for a developer' still bothers me. When you want to improve basic things (that some of these are annoying and IMO should be done by default) then it has to be illegal. At least I hope, that MV will be powerful enough.
a small chance yes. 🙂
I encountered another problem:

When using your system I cannot move LEFT-UP (Diagonal) - I can move in 7 directions.

I'm using Eight-Directional Movement by Hime if that's important.

When I'll remove your system I can normally move in 8 directions ~ your system disallow me to go LEFT-UP.

It also happens in a fresh project - 4 scripts for input and 8-dir movement.

I even tried MOG's 8 dir movement but it was even worse - there were difficulties in moving LEFT.

I tried changing stuff here and there but with no use. What can I do?
@Rikifive

My mistake. You CAN'T stop the movie in the middle (just realized there is no Graphics.stop_movie method) unless you know the structure of the Graphics class. To achieve that, you should have a totally new movie-playing system, and then you can do whatever you want with it, even add the gauge for movie duration and progress, but that should require some movie-playing DLLs, because standard RGSS library has no method for movie playing, except Graphics.play_movie (Dekita, new job for you 🙂 )

And for the directional movement I can't answer since I'm not Dekita, but I suppose he did something to Input.dir8 method... or not?

And I totally agree that RPG Maker isn't, and won't ever be powerful enough for a developer.

RPG game developers usually tend to have 3D environment, and RM gives only 2.5D option...

The good example of such an engine is Unity, but Unity requires some basic C#/JS knowledge if you want your program to do ANYTHING.

In my opinion, RM is 'simple enough for a child', and as such should be treated as some kind of learning engine that introduces you to the game making world, but definitely not as an engine for future.

At least I think so.
There should not be any difficulty in moving left&&up, or any combination of directions.. I will look into that, thanks for letting me know 🙂
@Rikifive

My mistake. You CAN'T stop the movie in the middle (just realized there is no Graphics.stop_movie method) unless you know the structure of the Graphics class. To achieve that, you should have a totally new movie-playing system, and then you can do whatever you want with it, even add the gauge for movie duration and progress, but that should require some movie-playing DLLs, because standard RGSS library has no method for movie playing, except Graphics.play_movie (Dekita, new job for you 🙂 )

And for the directional movement I can't answer since I'm not Dekita, but I suppose he did something to Input.dir8 method... or not?

And I totally agree that RPG Maker isn't, and won't ever be powerful enough for a developer.

RPG game developers usually tend to have 3D environment, and RM gives only 2.5D option...

The good example of such an engine is Unity, but Unity requires some basic C#/JS knowledge if you want your program to do ANYTHING.

In my opinion, RM is 'simple enough for a child', and as such should be treated as some kind of learning engine that introduces you to the game making world, but definitely not as an engine for future.

At least I think so.
That's why I asked Dekita about this, because I know it can't be done via scripting (in editor). ^^

I agree with you ~ and it's not only about 3D stuff ~ there are much worse things in RM that are very hard or impossible to change and even if, it may be illegal lol.

Yup, it can be considered as some kind of learning engine as functions are limited.

There should not be any difficulty in moving left&&up, or any combination of directions.. I will look into that, thanks for letting me know 🙂
I also was surprised by that and I carefully checked all the possibilities and I found that was caused by that system.

The rest of combinations (other arrows, WSAD) work properly, there's only issue with left&&up.

Also, that issue appears only on Scene_Map, because in Invaders Minigame left&&up works properly.

Sadly it's a big problem, since I cannot find any workaround, I hope you'll fix that. =3
Updated this system -- Added fix for dir8 bug, added WSAD && directional movement addon, added keybind control addon.

I dont think I will be writing another ruby script (at least for free), so enjoy 😀
8dir movement has been fixed, thank you.

The last thing I would love to get rid of is that cursor block and everything would be perfect.

Guess what happens if you'll go to 'Status' window and click LMB in your demo. ( ͡° ͜ʖ ͡°)
Gawd damn bugs :/

Ok, its been fixed - the fix is in the main mouse script, so thats the only file that needs changed from the update this morning. 🙂
Hello!

It's the annoying guy again,

I released a game with your system and people were coming to me with these errors:

CFdEUyg.png
 (~ and similar ones)

However I couldn't get that error by myself. On a flipside, on the other project, I was getting that randomly upon playtesting or exiting the game.

Also, I'm not sure what's the case here, but gamepad is not recognized at all. It's just not working, which sadly eliminates this system (unless there's something to configure), because it's absolutely important for me.  🙁

I don't want to bother you anymore, since I think you're busy with MV things, so I'll just try to find something else.

I just thought I would report these, just to let you know.

It's a really great system, don't get me wrong, but sadly I have issues with it.

Nevertheless, thank you for your time and help, that you gave me.
Heavily Optimized Input System
By Dekita
​
Features:

  • Optimized for use with RPG Maker Vx Ace
  • Mouse click && scroll detection
  • Removal of F key binds
  • Cheat system
  • Keylogger
  • More..

Detailed Features:

The purpose of this system is to create a more flexible && efficient Input module. One that is capable of detecting normal ace keys as well as custom user defined keys that can be added with ease.

Many (other) input scripts use loops(x256 - one for each key), and then within each loop iteration, they also perform calls to dlls to obtain keystates / asynckeystates etc. Furthermore, some of the other available input scripts I have found have iterated over a hash as well as a loop, which is just raw insanity...

Prior to version 1.7, this system did not use ANY of those techniques, yet still managed to obtain all required keypress information from one simple dll call per update (rather than the aforementioned hash && loop). As of version 1.7+ this system uses a custom dll in place of the previous user32 dll. The v1.7+ dll allows for MUCH more control over everything input related, compared to the previous versions of this system.

Many many new script calls have been created, and also almost every method has been rewritten with pure performance in mind - whilst keeping a sufficient level of control for the developer. Additionally, f1, f2, f12 and alt+enter keybinds can now be fully removed! This is one of the VERY few input systems that can do such things!!

And if that wasn't enough, this system also allows you to have 'cheat codes' that run any piece of code you want (calls code as a proc). The code is activated when all required keys have been entered in their correct order. I have set up many possible 'default cheats' such as; gain 9999 gold, gain all items, gain all weapons, gain all armors, max all party members stats, instant win battle, instant run from battle, walk through walls, resist death status, resist any other status, resist all status effects, 'open notepad file', 'load naughty webpage cheat', and of course, the all important 'bonus cheat' that can be used as a game completion code. Of course, you (the script user) can add onto this list of cheats as you wish.

All the cheat codes supplied within this script either perform script calls that are already within the RPG Maker VX Ace Engine or create a new method to efficiently perform the task with the script calls already supplied within the maker. Very few methods are aliased and none that should cause any kind of severe incompatibilities.

Credits:

Copyright © 2015 - Dekyde Studios
Dekyde Studios Developer: Dekita

Don't forget to show the love and hit that like button --> ^_^​
What exactly is this system link at the bottom for? I assumed it was the link for your website or something where I could donate and get the script page, but instead it took me to a ||Pornographic|| website? I have no clue if that was intentional, if not you really should think about removing that "System Link" because it is very inappropriate and if if it is intentional... you should still remove it, because it's still super inappropriate.
What exactly is this system link at the bottom for? I assumed it was the link for your website or something where I could donate and get the script page, but instead it took me to a ||Pornographic|| website? I have no clue if that was intentional, if not you really should think about removing that "System Link" because it is very inappropriate.
Either Dekita's site is down/gone or taken over by hackers to redirect you and possibly infect computers.
I'll report the post to the mods so that the link can be taken out for everyone's protection.
Advise you edit you reply post to remove the link as well.
Grab my zip of his scripts from my media fire link
Master Demo
Scripts

Also note that the scripts marked free can used used for commercial. the rest have to be paid for to use commercially. Which you probably can't do now.
Either Dekita's site is down/gone or taken over by hackers to redirect you and possibly infect computers.
I'll report the post to the mods so that the link can be taken out for everyone's protection.
Advise you edit you reply post to remove the link as well.
Grab my zip of his scripts from my media fire link
Master Demo
Scripts

Also note that the scripts marked free can used used for commercial. the rest have to be paid for to use commercially. Which you probably can't do now.
Will do, good catch and thanks for the heads up. I do have a quick question about the "New terms effective 03 Apr 2024."
Which terms are you talking about? (unless you just mean this, "No part of this code can be used with AI programs or tools. Credit must be given")

Will do, good catch and thanks for the heads up. I do have a quick question about the "New terms effective 03 Apr 2024."
Which terms are you talking about? (unless you just mean this, "No part of this code can be used with AI programs or tools. Credit must be given")
Never mind, I realized what you are talking about, sorry. lol.

Either Dekita's site is down/gone or taken over by hackers to redirect you and possibly infect computers.
I'll report the post to the mods so that the link can be taken out for everyone's protection.
Advise you edit you reply post to remove the link as well.
Grab my zip of his scripts from my media fire link
Master Demo
Scripts

Also note that the scripts marked free can used used for commercial. the rest have to be paid for to use commercially. Which you probably can't do now.
But I would like to know if this is the file to download to get the script. I'm kinda new to link stuff, and after the last one I was sent to, I don't want to take any more chances:

Screenshot 2026-03-10 152857.png
But I would like to know if this is the file to download to get the script. I'm kinda new to link stuff, and after the last one I was sent to, I don't want to take any more chances:
I provided two links for you to get his scripts and demo project. Do with that what you will.

Original thread: https://forums.rpgmakerweb.com/threads/heavily-optimized-rgss-input-system-addons.44974/