Amaranth's Super Simple Mouse System for Ace

This script is great, the easily changeable cursors is exactly what i needed for my game.

I was wondering if there was a way to have an event be clicked/activated without using any path finding. For example: There's many scenes in my current project where the protagonist (A private detective) is examining a room. And in some cases I don't want him to walk towards the event, just say a line of dialog about it. Something I tried was to offset by using the x y commands in the mouse comment to keep him in place, but i found that if he is already standing in that spot, the event will not activate. Is there any sort of script call to make this work?
people should complain the fact they can't use the first title screen of moghunter in vx ace with ammaranth without bugs

I found how to make it compatible....moghunterr rewrite the command but he only made the Window_TItleCommand invinsible and not change is 

position...and Amaranth's follow the position of window...so I fix it

put this below ANimate_TitleA

class Window_TitleCommand < Window_Commanddef update_placementself.x = MOG_SCENE_TITLE_A::COMMANDS_POS[0] - 34self.y = MOG_SCENE_TITLE_A::COMMANDS_POS[1] + 10endendthis should fix for the moghunter title screen!
I think I figured this out.


This sounds really odd, especially since you have an entry in the change-log for this, but here goes.


My theory is that you cannot load save games from a previous version of the game, where you didn't have the mouse system integrated. In my case, clicking on the save gives the buzzer noise.


However, I can delete the saves, start a new game, re-save, and load that without any issue.


Please re-test this if you get a chance. It may be a regression, or maybe I just don't have the latest script (I used the one from the first post in this thread).
 
No. The mouse system has nothing to do with the data in your save files. If it displays the save file and lets you move between them, you should be able to load them. I'm not sure why you're saying I have an entry in the change-log for this - it was never a problem.


See if you can load the game WITHOUT using the mouse, and just the keyboard. It's possible (especially if you've added SEVERAL scripts) that you're trying to load a file saved prior to adding them, and they require data that they would have put in the save file, and it's not there. Normally that would not stop you loading the save file, but would generate an error when you tried to execute part of that script.


I can't think of anything in the mouse system that would cause this.

This script is great, the easily changeable cursors is exactly what i needed for my game.


I was wondering if there was a way to have an event be clicked/activated without using any path finding. For example: There's many scenes in my current project where the protagonist (A private detective) is examining a room. And in some cases I don't want him to walk towards the event, just say a line of dialog about it. Something I tried was to offset by using the x y commands in the mouse comment to keep him in place, but i found that if he is already standing in that spot, the event will not activate. Is there any sort of script call to make this work?
This has already been done. Check the first post, where I've added it to the change log, and download the latest version.
Hey, Shaz.

I've been gone for a bit.

Thank you for the tall sprite fix! Great job!

I have one more question.

Is there a way to disable the mouse script during combat?
Take a look at the change log, to 1.08 - I added the ability there to enable/disable the mouse. You could try disabling it just before you go into combat, and enable it again just after. There are a couple of posts <somewhere> in this thread about it, so I might have indicated there how it works.


If you're up on scripting, you could see if you can find where/how I made that change - I just don't remember if I did a script call, or conditioned it via a switch. If you use random battles, you might need to change the battle start/end script to do the script call rather than doing it from an event. Shout if you take a look and can't figure it out ... and say whether you're using any custom battle scripts.
Thanks for the quick response, Shaz.

I'll take a look and see.

In the meantime, I am using some battle scripts but thought there could be a way to turn it off as battle starts and back on after to avoid having to make them work together.

It appears they're mostly Moghunter's.

Spoiler
Script+list.jpg

Edit:

I got it fixed.

Not only did I get it to disable the mouse during combat... but also at the menu screen and during random encounters(!).

And it's working fine after combat.

I just had to add "$mouse.enabled = false" into line 60 and "$mouse.enabled = true" into line 119 in the MOG_Menu_Cursor.

That fixed everything.

🙂
Hi,

I noticed two bugs with your script:

1) Save a game in the first save slot. Exit to title. Pick Continue. Put your mouse over the save, then roll up and off the screen. The cursor sound plays repeatedly.

2) Save a game; exit to title; pick continue; scroll to the final save spot; roll your mouse down off the screen. It starts scrolling upward.

I have a fix for #1 committed to my local copy. Please review/approve it and integrate it into your master script if you deem it worthy and correct: GitHub diff here.

Please let me know if you fix #2. I know the root cause is that you can't tell if the mouse is above, below, or where outside the game window based on the API VX Ace gives you. I'm planning to work around this right now by limiting my game to three saves max.
mmm ... are you using the latest version of the script? I THOUGHT I addressed that issue. If not, it will be on my list of things to fix for my own game, so hopefully will not be too far away.
I believe I am using the latest version. My script version is v1.10, which is the same version I see in the first post.
 

I'm glad it's on your list. Limiting to four saves works well enough for me for this game.

P.S. please consider using semantic versioning.
Just a heads up for people- this script doesn't work with Tsukihime's Event Followers.  The character will not move at all with that script installed. 🙁 In fact, that script seems to break all the mouse systems ever made.
Can you post this in another thread in RGSSx Script Support and include links to both scripts? I'd like to take a look at this one and see what the deal is, but I don't want to sidetrack this thread for it.
Hi,

Was there any resolution on issues #1 and #2 from my post about three weeks ago?
Awesome script! Thanks so much!

I'm also experiencing the same bug that others have reported with F12. I have the latest version (1.10, 6 Apr 2014). My game is a rogue-like and users use F12 for a quick restart if things are going badly. This is the error I'm getting:

Script 'SuperSimpleMouse' line 131: RGSSError occurred.disposed spriteHas there been a fix for this problem yet? I read through everything but I may have missed it. Thanks!
from the first post:

Known Bugs


F12 causes the game to crash. I do not intend to address this, as F12 is not the standard or recommended way of starting a new game.
So no, there hasn't been a "fix" for the problem, nor did I intend to fix it. However, thanks for the error message. I will take a look and if it seems a pretty easy thing to do I will give it a go. Can you confirm that line 131 in your script just says super?


@ashes999, I have not revisited the script since you posted those issues. They're still on my to-do list.
@Shaz, ah yes. Of course you addressed it on the first post and I just missed it, sorry.  :headshake:  Thanks for the reply though. Yes I can confirm that line 131 is just the update method's super call, i.e. the only thing on that line is super

I'll keep watching in case you do find a quick fix for it, otherwise I may just disable F12 altogether and make my users deal with it.
I have received the following report from a player:

Script 'Shez mouse system line 279! NoMethod Error Occured

undefined method 'tilemap_offset' for nil:NilClass.

 

It stopped the game. I restarted a few times and then I got knocked out to the

blue screen and when I finally got back to the desk top the game was completely

gone from my system. I was able to re-install . 

Never a problem in the villages or huts only after or during a battle

  Until the game was knocked out of my

system I was just restarting the game at the last save point.
 

She is the only player to have reported any problem with this.  I cannot for the life of me imagine how a mouse script could successfully uninstall a game, so I assume that was caused by something else.  However, the battle problem does appear to be connected, going by the error message.

 

Do you have any ideas?
yeah, no way that would completely remove the game from their system, OR cause a blue screen. I also suspect something else is going on there.

You have some really weird errors 🙂 Did you get anyone to do an addon to the script to support battle sprites?

Find this code (around line 279):

Code:
  def self.grid    return nil if @pos.nil?    mx, my = SceneManager.scene.instance_variable_get(:@spriteset).tilemap_offset
Change this line:
Code:
return nil if @pos.nil?
to this:
Code:
return nil if !SceneManager.scene_is?(Scene_Map) || @pos.nil?
I can't reproduce many of your errors, so I'm only guessing here. I really don't know if this'll work. At least if your player runs into the error a fair bit (which it sounds like), it shouldn't take long to determine if that solution works.
Thanks for your quick response.  I haven't got any add-ons for battle sprites.  The only add-ons for your mouse script are

Adik's script for enabling/disabling the mouse in game and the game to 'remember' that (the one that is now linked on your first page)

and Lordosythel's patch for diagonal movement, also in this thread here: http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/?p=262038

I'll try your suggestion as soon as I can and report back here.
Do you have any custom battle scripts/addons?
As this was my first game, it's comparatively simple.  In fact, now that I've double-checked, it doesn't even have the 2 I mentioned above.  I mis-remembered, and those are only in the second.

What I do have are the more obvious Yanfly scripts:

Battle Engine

Command autobattle

Enemy HP bars

Enemy Info

Elemental pop-ups

Nothing there that's esoteric.

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