Hello this is probably a silly question and an easy fix but somehow I ran into an issue where whenever I try to exit the menus screen at any time I get an error message saying (Cannot read property “off” of null) does anyone know what causes this and how to fix it?
Cannot read property “off” of null
RPG Maker MZ Supportall error messages with "of undefined" or "of null" basically tell you that the game tried to access a data object that does not exist.
this can happen when you delete something in the database but still use it somewhere else, or if you misconfigure a plugin. If for example a plugin linking common events to the menu is told to link common event #103 and your game only contains 80 common event, then that link to #103 would produce one such error "of undefined".
to find out what exactly this missing data object is we would have to see the full console output of the error message.
when you get to the error the next time, press F8, go to the console and make a screenshot of it.
this can happen when you delete something in the database but still use it somewhere else, or if you misconfigure a plugin. If for example a plugin linking common events to the menu is told to link common event #103 and your game only contains 80 common event, then that link to #103 would produce one such error "of undefined".
to find out what exactly this missing data object is we would have to see the full console output of the error message.
when you get to the error the next time, press F8, go to the console and make a screenshot of it.
Also state what plugins you are using, as I can't think of anything with a property called "off" that would be triggered when you exit the menu.
Thank you both for getting back to me on the issue. I was using a RNG Map plugin, luckily I was able to figure that out but I have come across a new issue. I took some screen shots this time so maybe you’ll understand exactly what the issue is. I’m trying to use a new plugin for “Row formation” during battle. After I set up the plugin I get these two error messages either when I click on “Row” in the menu or if I enter a battle.
Any Idea on how I could fix these?
Any Idea on how I could fix these?
Best guess would be that your configuration for yanfly's row plugin is wrong.
How did you configure it? you simply cannot activate a plugin and hope it works as-is, it should be configured to your specific game before anything else.
and what plugins are you using? we need a screenshot of your plugin manager with all plugins and their order listed.
How did you configure it? you simply cannot activate a plugin and hope it works as-is, it should be configured to your specific game before anything else.
and what plugins are you using? we need a screenshot of your plugin manager with all plugins and their order listed.
I'm trying to wrap my head around how to configure it correctly because I'm assuming it's not able to draw the menu screens needed for the plugin or something. Here the screenshots of all the plugins I have running and how the Row Formation plugin is configured by default. Maybe you will see something I don't see
The MK pluggins are for the RNG map generation and the bottom two plugins are for the Row Formation plugin.
The MK pluggins are for the RNG map generation and the bottom two plugins are for the Row Formation plugin.
Yanfly's plugins are all for MV and NOT for MZ.
Some of them can be made to work using FOSSIL but I see no indication of you using that.
So either replace the yanfly plugins with their visustella equivalent or try to use FOSSIL.
Some of them can be made to work using FOSSIL but I see no indication of you using that.
So either replace the yanfly plugins with their visustella equivalent or try to use FOSSIL.
My apologies I am very new to this. I’ve attempted in the past with previous RPG Makers but this is the most I’ve tackled with it. I understand now that these plugins were meant for MV and not MZ so if you don’t mind me asking what is FOSSIL and Visustella? How would I go about using these?
I can't speak on FOSSIL, but Visustella's MZ plugins (the MZ equivalent of Yanfly) are on Visustella's itch.io page.
The sample game that contains all the core plugins (Core Engine, Battle Core, etc) is located here: https://visustella.itch.io/visumz-sample
The sample game that contains all the core plugins (Core Engine, Battle Core, etc) is located here: https://visustella.itch.io/visumz-sample
Visustella is the name of a group of programmers paid to create similar plugins to yanfly's for MV.
MV and MZ both use the same language (javascript) but have different internal function names. FOSSIL is the name of a plugin that attempts to make MV plugins compatible to MZ, but isn't always successfull.
And if you are that new to the engines, I strongly suggest that you first learn the basics without any plugin by following the tutorials and blogs. A lot of plugins are absolutely unusable without those basics because plugins expand on the engine and often expect people to know what is what in the engine in order to be correctly configured.
MV and MZ both use the same language (javascript) but have different internal function names. FOSSIL is the name of a plugin that attempts to make MV plugins compatible to MZ, but isn't always successfull.
And if you are that new to the engines, I strongly suggest that you first learn the basics without any plugin by following the tutorials and blogs. A lot of plugins are absolutely unusable without those basics because plugins expand on the engine and often expect people to know what is what in the engine in order to be correctly configured.
Thank you guys both I will try to look more into visutela, I experimented with the Fossil and it worked for the time being but I will taking your advice on that and try to learn more of the basics. I have learned a lot so far so thank you guys for all the help
Please don't use the same thread for multiple issues - if your first problem is resolved, just report the thread so it can be closed. Other problems you encounter after solving the first issue should go into their own threads, as they are different issues and have different causes and solutions.
Unless the error messages are all coming from the same plugin.
Unless the error messages are all coming from the same plugin.
Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-off-of-null.143264/