Hi! I tried using this, but get a TypeError of “Cannot read property ‘isGlobalCursorEnabled’ of null.” I am using RPGMaker MV 1.6.1 on Linux with Steam. At first I thought it might be something I’d changed, but I tried loading the plugin in a completely fresh project with no other plugins and still got the same problem, though now it says “Cannot read property ‘x’ of null” instead (possibly because I didn’t do any setup).
Your response to The-Goof was very helpful and I tried following those steps, but maybe I missed something?
This is odd... the "isGlobalCursorEnabled" is a function within the plugin. This error indicates that something is not being properly loaded in your project.
Can you open the console when the error occurs (in Windows it would be F12) and send me here a print of the entire error, with the complete stack trace?
That will allow me to understand at which point it is being called and triggering the error. That would be my best clue to understand what is going on. The OS you use should not interfere in any way, but I confess I've never tested my plugins in a Linux environment =/
I had to set up a new test project to test it out, and… it works now, at least when I set an image and set it up properly? So maybe I’d made a mistake previously.
It still has the same error when I don’t change any plugin settings and just try to run it with the plugin file as-is. Image:
The plugin allows you to use different images for specific scenes if you want to. So the first thing you need to do when setting it up, is to create at least one cursor pattern in the Plugin Manager parameters.
The pattern parameters are what defines which image to use, and the cursor behavior (for example, if it has a bouncing movementor not). There are three cursor types (which are defined with the "Cursor Type" parameter):
Picture: Uses a picture file from the img/pictures directory as the cursor. If this type is set, you must use the "Cursor File" parameter to select the image you want.
Icon: Uses an icon as the cursor. With this type, you must use the "Cursor Icon" parameter to select the icon you want. The "Cursor File" parameter will be ignored in this case.
Animated: Uses a character spritesheet to create an animated cursor. If this type is selected, the followind parameters must be set:
Character File: the spritesheet to use
Character Index: which character entry within the spritesheet to use
Character Direction: the animation will play as if the cursor character is moving in a specific fixed direction (cycling through the sprites as if walking up, down, left or right). Use this parameter to set which direction to use
Number of Frames: usually, this should be set to a value less or equal to 3. However, if using another plugin that allows for more character frames, you can specify a higher value here
Animation Speed: sets the speed when cycling through the cursor sprites. A lower value means a faster animation
If you'll use a single pattern throughout the whole game, just configure one pattern, and identify it in the "Default Cursor Pattern". And that's it.
Hope this helps to understand how to do initial setup, and better understand the remaining instructions within the help section!
Hi, I'm using this plugin and so far it's working great! Only one problem though, the Global Cursor (aka my mouse) becomes horribly offset whenever I go from window mode to fullscreen in my game. Is there a way to fix this issue?
← Return to tool
Comments
Log in with itch.io to leave a comment.
Hi! I tried using this, but get a TypeError of “Cannot read property ‘isGlobalCursorEnabled’ of null.” I am using RPGMaker MV 1.6.1 on Linux with Steam. At first I thought it might be something I’d changed, but I tried loading the plugin in a completely fresh project with no other plugins and still got the same problem, though now it says “Cannot read property ‘x’ of null” instead (possibly because I didn’t do any setup).
Your response to The-Goof was very helpful and I tried following those steps, but maybe I missed something?
Hello!
This is odd... the "isGlobalCursorEnabled" is a function within the plugin. This error indicates that something is not being properly loaded in your project.
Can you open the console when the error occurs (in Windows it would be F12) and send me here a print of the entire error, with the complete stack trace?
That will allow me to understand at which point it is being called and triggering the error. That would be my best clue to understand what is going on. The OS you use should not interfere in any way, but I confess I've never tested my plugins in a Linux environment =/
I had to set up a new test project to test it out, and… it works now, at least when I set an image and set it up properly? So maybe I’d made a mistake previously.
It still has the same error when I don’t change any plugin settings and just try to run it with the plugin file as-is. Image:
Is there any example or guide?
I'm just having a hard time understanding how to use this script.
How do i tell it what image to use? For example..
Hello!
The plugin allows you to use different images for specific scenes if you want to. So the first thing you need to do when setting it up, is to create at least one cursor pattern in the Plugin Manager parameters.
The pattern parameters are what defines which image to use, and the cursor behavior (for example, if it has a bouncing movementor not). There are three cursor types (which are defined with the "Cursor Type" parameter):
If you'll use a single pattern throughout the whole game, just configure one pattern, and identify it in the "Default Cursor Pattern". And that's it.
Hope this helps to understand how to do initial setup, and better understand the remaining instructions within the help section!
I really appreciate the reply. Thankyou.
Hi, I'm using this plugin and so far it's working great! Only one problem though, the Global Cursor (aka my mouse) becomes horribly offset whenever I go from window mode to fullscreen in my game. Is there a way to fix this issue?
Hey there!
Did some testing and found a bug causing the issue you described. Just released a fix in version 1.0.1! =)
This works perfectly now! Thank you so much