Amaranth's Super Simple Mouse System for Ace

An interesting problem though, so I'll still add it to my list.
I've had reports of this problem with users who have Greek alphabets on their keyboards as well, so it looks as if it's anything that isn't straightforward Latin characters - which, when you think of how many non-Latin alphabets there are, makes the possible scope potentially too enormous to deal with simply.
You mean anything in the game that has non-latin character might crash the game? 
I doubt it because games are made using this engine in French, German etc., which do have special characters.  I was only referring to that specific error which prevents you opening the game at all.

EDIT

But as you have a keyboard with non-Latin characters, you could do a quick experiment and test for it.  Then you would know if the Mouse script is compatible with them or not.
@Clord, what's the issue with scrolling? Doesn't scroll properly? Scrolls too fast? Too picky with where the mouse needs to be in order to scroll? If you can give specifics that'll help me reproduce the problem, and I'll know where I've got to look to fix it (ie - is it on ALL select lists or only particular ones?)


I did do a small fix for someone to slow down the scrolling speed. There's also an issue if you want to use the keyboard in a select list but the mouse is on the screen - it makes the mouse override keyboard input. That's also on my list of things to fix.
I made this example by simply starting a new project, adding newest stable version of the mouse script and made some potions.


http://puu.sh/7DC1D


Positioning cursor between items like that causes list not to scroll, also you need to place mouse to left side inside of that list to see the last item in the list.


It is just one of those convenience things, script still meets its goal and I assume it would require a quite bit extra work to take such thing account while it only takes moments of player to get used to it.
Thanks. I'll see if I can do something about it. It would be nice if you could just move the mouse ANYWHERE below the list and it'd scroll.
Hi! 

I changed my save system with moghunter and I found out that the mouse system doesn't work with it which surprised me a bit. Maybe is it because it uses specific graphics? 

Here is the link to the script : http://www.atelier-rgss.com/RGSS/Menu/ACE_Menu08.html

Apart that I tried to get around the mouse system not supporting battler selection on Yanfly's system but at no avail sadly maybe is there a simple method I can do myself to fix that? 

Thanks for the support 🙂
Thanks. I'll see if I can do something about it. It would be nice if you could just move the mouse ANYWHERE below the list and it'd scroll.
No problem, glad to point that out. 🙂

Hi! 


I changed my save system with moghunter and I found out that the mouse system doesn't work with it which surprised me a bit. Maybe is it because it uses specific graphics? 


Here is the link to the script : http://www.atelier-rgss.com/RGSS/Menu/ACE_Menu08.html


Apart that I tried to get around the mouse system not supporting battler selection on Yanfly's system but at no avail sadly maybe is there a simple method I can do myself to fix that? 


Thanks for the support 🙂
You need to seek scripter like I did if you want compatibility for the custom scripts as far I understood.
Aouch. Well I guess I'll try to figure it out myself and flip my desk 8903278 times until it works. I'm kinda stubborn on these matters  🤣 . 
Yep, any script you have that modifies window handling, will need to be addressed individually. If you're lucky, the mouse script will just work with them, but if the script REALLY changes around the way the window is handled, you might have to write a new mouse handler for it. Unfortunately, the load/save windows are particularly unusual when compared with any other window type (the RTP scripts create a window for each save slot, rather than a single window with multiple items like most other windows do).


Sorry I can't help you, but customizing to make it work with other scripts is just too big a job for me.


Having said that, the very last class in the script is the one that handles Scene_File. See what's different between the default (RTP) Scene_File and the one in Moghunter's script, and see if you can adjust the Scene_File method in the mouse script. Also make sure the mouse script is BELOW Moghunter's script. If it's not, that MAY be your only problem.
Thanks very much for these explanations it will sure help me out a lot (and learn more about how all this rgss works which is never time lost 🙂 ). 
Hey It is possible to disable the mouse when using the keyboard and vice versa? Because I notice a problem that you have to force to move the mouse somewhere so the select can be move easily. Since some may preferred mouse over keyboard or vice versa and the problem is that if a mouse is pointing something in the menu, using the keyboard make it quite a problem.

And also possible compatibility with this script: http://yanflychannel.wordpress.com/rmvxa/battle-scripts/ace-battle-engine/

there is also a problem when you try to heal someone and you have to select the "Name" rather the face of the character which is quite difficult to select the character you want to do something? (There is no problem when selecting the enemy)

And also the possibility that if you try to use a fade in or out event the mouse won't fade in and out with it?

And also A compatibility when using the two script

http://yanflychannel.wordpress.com/rmvxa/field-scripts/force-move-tiles/

http://yanflychannel.wordpress.com/rmvxa/field-scripts/slippery-tiles/

There seem to be a problem when using yanfly slippery tile. If you go to a special tile I set, I could alter the character movement by clicking on a place where it will move in another way rather to be stuck at the same direction it supposed to do until it leaves the place. (But then again I could take advantage to use this bug in making a very nice and complicated Puzzle)

I know it a lot but thanks for the help.
Wait wait you use the Yanfly battle system and can select enemy targets with the mouse? How did you manage to do that? 
The first question (disable mouse when using keyboard) is on my list.


Everything else is compatibility issues with other scripts, and I won't do them. You will need to post in Script Support asking to see if someone else can mod the script to make it compatible (or rather, mod the other script to add mouse usage to the window classes). Sorry, but I just don't have time to make the script compatible with other scripts.
Wait wait you use the Yanfly battle system and can select enemy targets with the mouse? How did you manage to do that? 
There is already a script for that. But I don't know where is it again. But it was noted it is made by AwesomeCool.

Edit: Found it http://forums.rpgmakerweb.com/index.php?/topic/22919-awesomecools-patch-for-shaz-mouse-script-and-yanfly-battle-engine-ace/?hl=awesomecool

@Shaz I understand and I will post on the script support section in the future about it now.(And probably contact yanfly about it also)

But how about the fading in and out problem? I notice that the mouse fade in and out as well when you make an even that include fading in and out.
Oh man, you save my life! 😀  

THANKS!!  😀
Working on my shop/equipment stats screens has pretty much forced the issue of mouse support, so I put your script in my game this morning.

Started a new game, fullscreen, everything seems to work.

I don't know if this is expected behavior or not, but I'd like to change it if I can: When I click on a tile, the pathfinding kicks in and Sofia walks there. All well and good - unless I start to use the keyboard to control her. Then she moves around controlled by the keypad until you stop, and she immediately goes back to walking to that mouse-clicked tile.

What would I have to do to have the movement event cancelled by any movement key? I still haven't gotten around to learning the RGSS event listening model <hangs head in shame>, so I don't know what listens for key presses. My first thought was a quick toggle off/on using your global 'kill-switch' for the script, but that doesn't stop the move event already in progress.

It would be the same place to fix the F1 issue you were having in the early pages of this thread - where you consume a keypress event. Consume the movement key, and start a new move script in that direction, which according to your notes, should kill the move in progress. I need to fix the window_selectable screens as well, as it is I get this weird flickering if I press the arrow keys when my mouse is hovered over that menu. If the mouse is anywhere else the keys work fine, but if the mouse is over the same window the keypress activates and then the mouse immediately pulls the cursor back..

The alternative would be to disable the keyboard somehow, which I really would rather not do. If you (or anyone else even) could point me to the right class to start, I could probably take it from there if your plate is full.

Edit: it occurs to me this is really the same issue I had when I was running a long scripted cutscene as a parallel process.

The fix there was to change the cutscene move route to autorun... but that would freeze if the pathing got messed up, right?

Edit 2: Figured this one out 🙂
What would I have to do to have the movement event cancelled by any movement key?


It would be the same place to fix the F1 issue you were having in the early pages of this thread


I need to fix the window_selectable screens as well, as it is I get this weird flickering if I press the arrow keys when my mouse is hovered over that menu. If the mouse is anywhere else the keys work fine, but if the mouse is over the same window the keypress activates and then the mouse immediately pulls the cursor back..
Strange ... using the keyboard to move should automatically cancel any move route in progress. Have you made any changes to the script? I'll add this to the list of things to check.


Are you using any other character/player movement scripts? Like an 8-dir or pixel movement script?


No, it wouldn't be the same place as the check for F1 (that can't be done, and I'm not even going to attempt it). It would go in the player update methods where it checks for Input.dir4 - a simple call when that condition is true to clear_path should do it.


The third issue is on my list of things to fix, and is really not the same as running a cutscene as a parallel process. There's no such thing as parallel process or autorun in the menus. I know what the problem is ... I just need time to fix it 🙂

But how about the fading in and out problem? I notice that the mouse fade in and out as well when you make an even that include fading in and out.
er ... what fading in and out problem? First time I've heard about it. There is nothing in the mouse script that changes the mouse icon opacity - unless you've added mods.
Strange ... using the keyboard to move should automatically cancel any move route in progress. Have you made any changes to the script? I'll add this to the list of things to check.

Are you using any other character/player movement scripts? Like an 8-dir or pixel movement script?
To make sure I just made a brand new project - threw some grass down on the little map - recopied your script from pastebin (Raw Data) in case I did change anything (the only thing I know I changed is the number for the default 'arrow' icon). Copied over Theme 1 cause the game won't start without it, and same problem.

The mouse starts the movement, the arrows move the character and he snaps right back to heading where he was going.

As for the 'F1', I take it that means there's no place you can intercept a keyboard press before the engine deals with it? 

That would be my 'fix', just check all the input coming in and throw out any 'F1' keys.

Edit: After a bit more testing - if you move near the edges of the map, where your character leaves the 'middle', that seems to 'break' the moveroute. But as long as the you're in the middle of the map you keep walking and snapping back. No, it's not even that simple - if you more than eight tiles away on the x-axis, it seems to break. the y-axis isn't quite so clean, maybe because you can't 'see' that many tiles away at once.
I question your "breaking the move route" theory - it shouldn't matter where on the map they are.


F1 is handled by the engine, not the scripts. The F1 press never makes it through to the scripts. Arrow keys are handled by the scripts. That's why the arrow keys can be intercepted, and F1 can't.

Original thread: https://forums.rpgmakerweb.com/threads/amaranths-super-simple-mouse-system-for-ace.17829/