MZ Problem with Plugin

Hello everyone!!

I'm having a really frustrating problem with a plugin, as the error appears randomly, and I have no idea why it's happening.

The plugin I use is Mouse System by RusShm, which is used to trigger events by clicking the mouse without the player having to reach the point in question. I use it to create a kind of point-and-click feature in scenes with parallax backgrounds.

Attached is an image of the error that sometimes appears when changing maps, but not every time you change maps.
Sometimes I enter a map and the error appears, sometimes it doesn't, sometimes the third time I enter that same map, sometimes when entering another map... I'm pretty desperate.

Any help, please?
(if you know any other plugin than can works for me also would be useful...)
Thanks in advance!!!

1755856999231.png
you should put a link to the plugins name to figure out what the problem is.
the plugin database can be useful if there is a conflict between the 2.

but without much info or link, we cannot do much.
Hi there!

When having a problem with a plugin, is always nice to put the plugin name on the thread title and also a link to it on the post itself. So other people can take a look at the plugin and try fix it for you.

This error: "cannot read property 'pages' of undefined" means that the code is trying to read an event page, but that event does not exist.
Are you perhaps erasing any event on the map?

I think maybe the plugin is trying to access a data of an event that previously existed on the map and then it does not exist anymore.
Hey friend, how are you?

Can you edit a detail in your code?

I downloaded the plugin in question and took a look at the code.

The handleEventActivation function is where your crash is. I noticed that there's a commented-out line (169) within it.

//console.log(event.page().list);

Uncomment that line.

Also add the line below:
console.log(tag, tileX, tileY, event)

This console is super overkill, but it's in case we miss something.

And then you test thoroughly until the error occurs again, and bring us the log so we can take a look.
you should put a link to the plugins name to figure out what the problem is.
the plugin database can be useful if there is a conflict between the 2.

but without much info or link, we cannot do much.

Hi mate!

I attach the plugin so you can see it...

Thanks for your answer and have a nice day!

Hi there!

When having a problem with a plugin, is always nice to put the plugin name on the thread title and also a link to it on the post itself. So other people can take a look at the plugin and try fix it for you.

This error: "cannot read property 'pages' of undefined" means that the code is trying to read an event page, but that event does not exist.
Are you perhaps erasing any event on the map?

I think maybe the plugin is trying to access a data of an event that previously existed on the map and then it does not exist anymore.

Oh, i don't erase any event on the map, and the error happens randomly...

I attach the plugin so you can see it...

Thanks in advance!
If possible please link to the plugin instead. I believe it's this one you're using?
If possible please link to the plugin instead. I believe it's this one you're using?

Yeah!!! Is this plugin, and I have no idea what is happening...

Thanks in advance!!

Original thread: https://forums.rpgmakerweb.com/threads/problem-with-plugin.179704/