Problems with Shaz Mouse System and Larger Screens

Started separately from the main thread, at the request of Shaz.

Basically, no matter how I adjust it, the mouse is just either one over to the left on some screens, all my maps are different sizes.

Scripts Installed:

Esrever's  Viewports/Map Fix

http://www.rpgmakervxace.net/topic/100-any-chance-of-higher-resolution-or-larger-sprite-support/page-2#entry7997

Galv's Explorer's HUD

http://galvs-scripts.com/2012/11/05/explorers-hud/

I have alot of other scripts, like Tidloc's message windows and html.  But I'm guessing it probably has more to do with the old code in Esrever's Viewports, plus that I have it set for 800x600 and all the maps are different sizes. 

Castle Map is 23x19  Mouse seems sort of okay on it, but still does seem to range too much left.

Bar Map is 27x22 That one is pretty much okay.

Basement Map is 21x19  Mouse is not okay and goes over to the left by one tile, maybe even two.

Hell Church Map is 21X32  Mouse is bad on it.  goes over to the left by one or two tiles.

Home Map is 23x16 Mouse is kind of okay on it. 

Not sure, but it may be any map that's got the 21 width that's not okay.

To get it to seem okay on the maps that are wider, I changed the mouse position by one so it's reading as 33x32.  But it doesn't seem to fix anything with a smaller map width.

Also, the range for clicking isn't working right if you have two events close by, it can be very difficult to click on each separately.

(EDIT:  I changed the two problem maps to a width of 23, and sure enough, that made it much better.  It seems I cannot really go below a map width of 23 with the way I have everything setup.  So the map size is definitely the problem.  The mouse range is still a bit more than I'd like, in terms of you can mouse over something and it will go in range of about a square all around the event, but it's okay, it's playable and the mouse click will take you exactly where you need to be.  It can still make trying to find a nearby event hard to click on with that.)
This is exactly the problem that was caused with Yanfly's screen changer, where the maps smaller than the actual window were centered. Does Esrever's do the same thing? Can you show a screenprint of one of your maps that has this issue?


Do you HAVE Yanfly's core engine installed, that has the screen changer? Maybe you just need to comment that section OUT of the Spriteset_Map class in the mouse script (leave in the line below 'else' but comment out all the others). I don't know if that will fix it, but it's a quick test you can run while waiting to hear back.


@Carri, it looks like that isn't actually a script, but is a new dll file. I tried it, but it wouldn't increase above 640x480 for me. Can you do up a small project with just the screen resize and mouse scripts, with a couple of maps as a demo, and load it up for me to play with? I won't have much luck fixing the problem if I can't reproduce it.
That will take time.  I probably won't be able to get anything uploaded till the weekend, maybe.  But it would be best if I gave you a demo with all the scripts I have. 

I hacked this thing like more than a year ago.  I think, I probably hacked the dll to get the right sized screen.  So I sort of rehacked a hacked dll 😀   I know I looked at it in VB.  So I must have done something.  I have hacked up this whole project like crazy just to get it to where it is now. 

I'll see if I can do a few fast sample maps with all the scripts in the project and upload that for you to see.  Near as I can tell, I don't have Yanfly's engine, just Esrever's code.  I also vaguely remember hacking something else in the windows areas in scripts.  I know I did alot to this.  There was alot of adjusting the fonts and message windows for the larger screen.  And that worked out.  But I always had a problem getting a mouse script to work properly.  Your script is the only one I've found that seems to work with all my changes.  It just could use a bit of fine tuning for larger game windows.  When I set out to make this game, I was determined to make it a bigger screen size.  I'm kind of going for an old style retro King's Quest type game, but with a bit more action.  Thanks for helping me with this.  My week here is so busy, I'll try and get something done to upload this weekend.  And I'll give you the same map sizes I was doing.  The problem maps seem to be anything under a 23 width.  When I do 23 and above, it suddenly shows much more correctly.  Also, I saw on one of my maps that was shorter that the problem reproduced that way.  I had a fireplace to light on the shorter map, the mouse icon appeared above the event by a square.  So there is definitely something with the size of the map that causes the offsetting of the mouse icon.
@Shaz PM'd you a download link for a demo with all the scripts and the same kind of settings I'm using for my game.
Carri, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


I really don't know how I'll go with this. If it was a script, and I had the time, I'd be able to see what it was doing. But since it's a dll, I may not even have access to the information I'd need to figure out where things are. Anyway I've pm'd you about your download.
Here's a video of my latest game footage for Werewolves of Wilvern.  This shows the adjusted map sizes, and the mouse looks fine here.  So I think the solution or workaround for larger screens is to just try and adjust the maps so the mouse looks as well positioned as possible. 



You can see where I had to widen the Pub's Cellar map, but the gameplay with the mouse is now fine with it.  And it looks fine with the tunnel/dungeon maps, too. 

If I ever get to finish this game, it will be free to play, and everyone will get credit for their scripts.  It took so many just to get it to this point.  There's no way I could have done all this without all the community scripts involved. 
I'm afraid I haven't had a chance to look at the script in your game. I suspect there is nothing I can do in the script to fix this, as your window size change is done in the dll and not via script. However, I question how well that dll works. When I ran it the first time, it gave me a large window. But after I closed it, every time I ran it again, it opened in a smaller window (not sure if it was 640x480 or the default Ace window size) - a large part of the image and the menu was not visible in the window at all.


I'm hesitant to put any time into testing script mods to work with the new dll, when I suspect that processing in the dll itself is faulty.
I'll have to look at that.  I didn't notice it doing that when I open and close a game, but then, I have that dll installed in my main program files area.  I don't know if that has anything to do with it. 

Anytime we hack something up, we can create instability.  And I hacked up an already hacked dll.  And have many scripts in that game. 

I'll have to test out the window size on one of my other pc's and see what it's doing.  Maybe the actual OS setup also affects that.  I'm running this on a 25 inch pc screen.  The size of the OS fonts can always affect a window, too.

And for now, I'll just have to keep adjusting my maps to work with the mouse.   

Original thread: https://forums.rpgmakerweb.com/threads/problems-with-shaz-mouse-system-and-larger-screens.20785/