Amaranth's Super Simple Mouse System for Ace

Here are some of the few things I've detected. 

1. Directional keyboard malfunction in Save menu. (Mouse work as usual)

2. An error window occur when I press F12 to re-run playtest in the middle of the playtest. 

3. Doesn't detect sprite size. For example, I use a somewhat larger chocobo as vehicle, the mouse only recognize when I click the chocobo LOWER body. The same happen for character with double sprite height. (However, if this what fix, I wonder would it create other problem, like not being able to access whatever behind the multiple sprite, due to overlapping. )  

*Without the script, keyboard mount chocobo normally. With the script, it's much harder to mount the chocobo. 

4. Doesn't walk over to character hiding behind the counter (http://prntscr.com/2moqow), just turn to and not moving to. But this isn't that much of an issue, because if the player walk right in front to the counter, still able to interact (http://prntscr.com/2mor2p). 
5. Suggestion for menu icon at upper left-right corner to prompt menu, with the freedom to choose whether to use this function. 

Thank you very much for the script. 
I'm aware of 1, 2 and 4, and hope to fix 1 and 4. 2 is not a high priority, but I'll take a look and see how difficult it looks.

I'm surprised about #3 - I remember adding a fix for that. Maybe it was only in my own game. I'll see if I can find the extra code.

#5 could be done with a simple HUD. I know someone asked about adding a HUD for this script, and I gave them an example that opened specific menu choices (like skills, equip, etc). It could easily be modified to ONLY call up the main menu. I can't find it now - it MAY be in this thread, but my search terms don't give any results. Take a look through the rest of the thread and see if you can find it.

Thanks for the list 🙂

Edit: here are the posts relevant to the HUD:

http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/page-3#entry181307

http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/page-3#entry181335

If you JUST wanted a single menu button and not an entire HUD, then something like this would suffice (where hud_left, hud_right, hud_top and hud_bottom are the x and y boundaries of your hud icon):

Code:
def update_hud  mx, my = Mouse.pos  # if mouse is clicked over the hud  if mx.betwen?(hud_left, hud_right) && my.between?(hud_top, hud_bottom) && Mouse.trigger?(0)    # Menu    SceneManager.call(Scene_Menu)    Window_MenuCommand::init_command_position  endend
You would still need to add the other code snippets shown in that post though (changing the Mouse.pos[1] > HUD_HEIGHT to take into account that you're only using a single icon and not a hud that extends right across the screen at the bottom)
In the script, I see a check for middle clicks, but nothing for the mouse wheel scrolling itself. Do you have any plans on updating this with a function to check for movement on the mouse scroll wheel?

I think it feels a little bit more intuitive to scroll through Menu_Selectables with the wheel, instead of "move to the corner of the menu to scroll" (at least for most PC games I'm used to playing).
Yeah, I had been thinking about experimenting with the mouse wheel. I'll add it to the list, but it won't be a priority for a little while. Will let you know if/when it comes to fruition 🙂
I'm well aware this might be a compatibility problem but.


I use some of Moghunter's battle related scripts and everything works fine with the mouse with an exception of picking target.


This script is important for my project so I would like to have a solution eventually.
I assume it removes the target selection window and allows you to select targets by moving an icon over each image via the arrow keys?


Sorry, but I can't help you with that one. The script is designed to work with RTP, and it does. You are welcome to get someone else to modify it to allow choosing of targets (in another thread), but I have very little free time and I dislike working with other people's scripts (not to mention the sheer number of custom battle systems that would all have different requirements), so your solution will not come from me.


Whoever does it will have to cater for the issue where several battlers are overlapping each other - especially if you're using front-view with the large battlers.
Sorry for asking then. It was not like I was forcing you to do anything so that sounded bit harsh.

Thread just implied that you might eventually code support for some non-RTP scripts so I just tried to give my recommendation.
What's harsh about saying "sorry, I can't help you" and giving the reasons why? I even gave you a tip to pass on to whoever takes on your request. Don't know where you get "harsh" out of all that.

In the FAQ, I very clearly state that I do NOT plan to make any changes to the script to make it compatible with non-RTP scripts. The ONLY time I have deviated from that was because of the number of people having issues with the script with Yanfly's Core engine for the larger window size, and I also clearly stated that I ONLY did it because it was such a small change.

Where did I imply that I might eventually code support for non-RTP scripts?
I just woke up.


I didn't mean to offend you.


I also just found out that problem with targeting was caused by an another script. I have already made it mouse compatible (few minutes ago.)
awesome 🙂
Yeah, it was my fault of using "cursor" related script for the selection. However due this I decided to seek and commission scripter for better targeting (classifieds naturally.)
Oooh! Shiny!

Looks like good stuff Shaz. I'll have to give it a good read through. I've been putting off mouse support (and probably will for a while yet), but this may save me a lot of work there. Even if I have to rewrite a bunch of it since I overwrote a lot of the Window classes I'll save a lot of time seeing how you did it: I'm not even sure what type of event listening model RGSS uses so I wasn't sure how to even begin (the biggest reason I've been putting it off).
Thanks for making this available! Very useful !

Edit : I have a trouble when I open the game it displays me an error window saying : line 378 Argument error occurred. Invalid byte sequence in UTF-8. 

Did I do anything wrong for this to happen? 
Line 378 of what? Can you give me the full/exact error message? What other scripts are you using, and where is this one slotted in in relation to those (at the top? bottom?)


I've made a list of all the things that need to be fixed and features that have requested, and hope to provide an update to this script in the next week or two.
errormessage_zps22623d3d.png


Here is the error message. It's line 378 of your script. As you can guess, I placed it on the bottom of materials. I use only Yanfly scripts + Yami's skill shop, Fomar's fade in bgm and Neon Black's event chase. 
@Pokeymon:

I think it may come from non ASCII letters in your game title and/or .ini file.
That sounds plausible. What is the name of your game, as shown in the Game.ini file's Title value?
Oh I see, yes the title is "Holàlà Galiyuka!" I'll remove these "à" then and try it out. Thank you 🙂

EDIT : Works like a charm now ^^
An interesting problem though, so I'll still add it to my list.
Haha, I encountered one problem that is valid even with default RTP scripts.


Menu scrolling is very picky when being on for example at the item menu that has a lot items.


It is not really an big issue but something I just pointing out and as far one of the scripter was concerned, seems to be quite hard to improve.


Anyway yeah, to be clear I'm not requesting you to do anything here, just pointing it out.

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