Done and sent 🙂
Amaranth's Super Simple Mouse System for Ace
RGSS3 Scripts (RMVX Ace)It works for me.
Well it doesn't for me, as the screenshots show :T
Disable all the other scripts, or put the mouse script on its own into a new project, and see if it works. I should have actually got you to do that before sending me the project.
I disabled all other scripts, and it worked, so I re-enabled them all, and it still worked. All I can think is there's a script conflict somewhere, or something happening with the scripts that's resetting the events. There were too many for me to go through to find out which one it was. That will be your job 🙂
I disabled all other scripts, and it worked, so I re-enabled them all, and it still worked. All I can think is there's a script conflict somewhere, or something happening with the scripts that's resetting the events. There were too many for me to go through to find out which one it was. That will be your job 🙂
btw, have you tried it in a new game or in a loaded game?
I tried it in a new game :T
I guess it's a script somewhere in my project. What a drag. I don't see why it works for you, but not for me.
Edit: Fixed it.
It turned out to be because i had attract play first. So it was like "Hurr durr. wuts that? It scrolled? Yep, i no longer work."
i set it so it doesn't play first, now it works. So 🙂
I guess it's a script somewhere in my project. What a drag. I don't see why it works for you, but not for me.
Edit: Fixed it.
It turned out to be because i had attract play first. So it was like "Hurr durr. wuts that? It scrolled? Yep, i no longer work."
i set it so it doesn't play first, now it works. So 🙂
What happens if you move the attract mode script below the mouse script? Does it work then (with attract mode set to play first)? If you don't NEED it to play first, then don't worry about testing that.
Yeah, yeah. That's all it was. The attract screen scrolled. So it carried over to when you start the game. So i set it to play AFTER you wait for awhile on the main menu. Once i did that, it worked.
You may remember I raised a query about an error occurring on line 281 in this post http://forums.rpgmakerweb.com/index.php?/topic/17829-amaranths-super-simple-mouse-system-for-ace/?p=204896 that you were going to try and find time to look at.
I was never able to reproduce the error, but a player has just reported that this happened several times in a row when s/he was trying to use escape.
Have you been able to trace what might be the problem?
I was never able to reproduce the error, but a player has just reported that this happened several times in a row when s/he was trying to use escape.
Have you been able to trace what might be the problem?
Did you try the several suggestions I gave after you reported that error? Can you verify the exact error message - script name, line number, error text? I don't see why pressing Escape should cause an error in the mouse system. Also make sure you're using the latest and greatest - I don't keep every version, and as was already shown the first time you reported the error, your line 281 and my line 281 are not the same thing.
It's in a released game, so I'm now stuck with the version that's in it. The player sent a screen shot of the error message and it is identical to the one I posted. The section of script with my line 281 is this:
#-------------------------------------------------------------------------- # * Screen to Client #-------------------------------------------------------------------------- def self.screen_to_client(x=0, y=0) pos = [x, y].pack('ll') return Scr2cli.call(self.hwnd, pos) == 0 ? nil : pos.unpack('ll') endWhen I tried what you suggested, I got the stack error, and it was at that point that you said you needed a bit of time to look at it and to put it back as it had been originally, which is what I did.
#-------------------------------------------------------------------------- # * Screen to Client #-------------------------------------------------------------------------- def self.screen_to_client(x=0, y=0) pos = [x, y].pack('ll') return Scr2cli.call(self.hwnd, pos) == 0 ? nil : pos.unpack('ll') endWhen I tried what you suggested, I got the stack error, and it was at that point that you said you needed a bit of time to look at it and to put it back as it had been originally, which is what I did.
Well, if you've got to do a fix anyway, there's nothing stopping you from updating the version.
It's a long shot, but try changing this:
pos = [x, y].pack('11')
to this:
x ||= 0y ||= 0pos = [x, y].pack('11')
Unfortunately, unless you can reproduce it reliably, you don't know whether that's actually doing anything.
It's a long shot, but try changing this:
pos = [x, y].pack('11')
to this:
x ||= 0y ||= 0pos = [x, y].pack('11')
Unfortunately, unless you can reproduce it reliably, you don't know whether that's actually doing anything.
Ah yes, I see your point about updating. I'm probably too tired to think straight at the moment.
precisely because I'm tired, I do want to double check that I've understood correctly
delete one line of code
insert 3 lines of code.
That is correct?
precisely because I'm tired, I do want to double check that I've understood correctly
delete one line of code
insert 3 lines of code.
That is correct?
Well, really just insert the first two lines. The last line is the same.
Okay, got it. told you I was tired.
thanks.
thanks.
Back again with two more player queries.
The first happens when a player closes the game using F12 (apparently some people do this if the battle is going really badly and they want to abort and reload more quickly). The reported error is
Script 'Shaz mouse system' line 132: RGSSError occurred.
disposed sprite
No screen shot, I'm afraid. As the players have said, the game is closing down anyway, but I thought you might like to know for information's sake.
The second one, however, is a proper crash. It appears to be a bit random as it will happen at a certain place when changing maps and the next time the player is there, nothing happens. It has happened several times. the reported error message is
"Shaz mouse system" line 279: NoMethodError occurred. undefined method "tilemap_offset" for nil: NilClass
Again no screen shot. I've asked for additional information, but all I've got is Windows 8 and wireless optical mouse. Not very informative, I'm afraid.
The first happens when a player closes the game using F12 (apparently some people do this if the battle is going really badly and they want to abort and reload more quickly). The reported error is
Script 'Shaz mouse system' line 132: RGSSError occurred.
disposed sprite
No screen shot, I'm afraid. As the players have said, the game is closing down anyway, but I thought you might like to know for information's sake.
The second one, however, is a proper crash. It appears to be a bit random as it will happen at a certain place when changing maps and the next time the player is there, nothing happens. It has happened several times. the reported error message is
"Shaz mouse system" line 279: NoMethodError occurred. undefined method "tilemap_offset" for nil: NilClass
Again no screen shot. I've asked for additional information, but all I've got is Windows 8 and wireless optical mouse. Not very informative, I'm afraid.
@ksjp17 : I use the latest (1.08) version and internal playthroughs of my ~4 hours demo never had your second bug (I'm on XP with a cord mouse though).
However, I do not have any battle screen. So maybe this is somewhat related to your other bug during battles, like a resident error that shows itself on the "right" conditions ?
However, I do not have any battle screen. So maybe this is somewhat related to your other bug during battles, like a resident error that shows itself on the "right" conditions ?
Maybe. The very latest version was installed and the game re-uploaded at the same time as something else was fixed. The problem is that I never had these errors (mind you, I never close down with F12) so I don't have much information to go on, only what players report. And when asked for more they usually can't remember anything - not surprising, I suppose.
F12 is not a close button. Why are they using it?
Because it works if you want to close down quickly I suppose. Seems odd to me. But I only passed on that error message for your information, rather than anything else, in case at some time in the future knowing that might shed light on something else. My only real concern is the second error message which happens during normal game play.
Original thread: https://forums.rpgmakerweb.com/threads/amaranths-super-simple-mouse-system-for-ace.17829/