MZ [VisuStella MZ] I keep getting this error when testing my project.

I recently added new plugins to my project to try them out and whenever I launch my RPGMaker MZ project I keep getting this error when I playtest my project. Can anyone help me with this? (I'm mostly using VisuStella plugins):

Screenshot 2025-06-07 155006.png
A very good chance this is a save file issue. Are you playtesting from a particular save file or starting a new game? The plugins change quite a lot of things, and if your save file does not have them, it will just throw an error. Have you tried starting a brand new game?
A very good chance this is a save file issue. Are you playtesting from a particular save file or starting a new game? The plugins change quite a lot of things, and if your save file does not have them, it will just throw an error. Have you tried starting a brand new game?
I deleted all my save files and I'm still getting the same error. I'm not sure what's going on exactly. Here's another screenshot from the event_manager.js file. This seems to be the origin of the error but I'm not sure what it means since I don't have much experience with JavaScript myself:
Screenshot 2025-06-07 211409.png
I deleted all my save files and I'm still getting the same error. I'm not sure what's going on exactly. Here's another screenshot from the event_manager.js file. This seems to be the origin of the error but I'm not sure what it means since I don't have much experience with JavaScript myself:View attachment 342413
Even if you were a master of javascript it would be near impossible to figure out what's going wrong in that function because it's obfuscated.
Because of that, it's hard to know exactly what's broken. I can see you're using FOSSIL and a bunch of the old YEP plugins in MZ as well, so it's possible it might be a compatibility problem with those plugins and the VS plugins, since a lot of them are updated versions of the YEP ones.

This could be an issue with load order. The VS and YEP plugins have a specific order they should be in on the plugin manager.

I'd start by turning off every plugin and then turning them back on a few at a time until you cause the error again, then you an troubleshoot the individual plugins causing the compatibility problem.
Even if you were a master of javascript it would be near impossible to figure out what's going wrong in that function because it's obfuscated.
Because of that, it's hard to know exactly what's broken. I can see you're using FOSSIL and a bunch of the old YEP plugins in MZ as well, so it's possible it might be a compatibility problem with those plugins and the VS plugins, since a lot of them are updated versions of the YEP ones.

This could be an issue with load order. The VS and YEP plugins have a specific order they should be in on the plugin manager.

I'd start by turning off every plugin and then turning them back on a few at a time until you cause the error again, then you an troubleshoot the individual plugins causing the compatibility problem.
Yes, this.

Also, if you're using MZ, I'm curious as to why you're using YEP plugins. If I understand correctly, YEP plugins are only for MV. Using them both might cause compatibility issues.
Yes, this.

Also, if you're using MZ, I'm curious as to why you're using YEP plugins. If I understand correctly, YEP plugins are only for MV. Using them both might cause compatibility issues.
I don't think it's the YEP plugins that're causing compatibility issues, given that most (if not all) YEP plugins have strong compatibility with RPG Maker MZ when used with FOSSIL. Anyway, after experimenting with my project for a bit, I managed to solve the problem myself by updating all my VisuStella plugins. From what I can tell, it appears that some of the newer VisuStella plugins I added to my project likely introduced new functionality that was incompatible with some of my older VisuStella plugins, which I had not updated in over six months. After updating all my VisuStella plugins, I was able to resolve any compatibility issues my project had been experiencing.

It's likely that my initial theory was correct after all. It wasn't the YEP plugins that led to the errors, but rather my own negligence. Next time, I'll ensure that all my compatible plugins are updated before adding new ones, as some of the newer plugins may contain new functionality that older plugin versions were not designed to support. Thanks for the help, though!

Even if you were a master of javascript it would be near impossible to figure out what's going wrong in that function because it's obfuscated.
Because of that, it's hard to know exactly what's broken. I can see you're using FOSSIL and a bunch of the old YEP plugins in MZ as well, so it's possible it might be a compatibility problem with those plugins and the VS plugins, since a lot of them are updated versions of the YEP ones.

This could be an issue with load order. The VS and YEP plugins have a specific order they should be in on the plugin manager.

I'd start by turning off every plugin and then turning them back on a few at a time until you cause the error again, then you an troubleshoot the individual plugins causing the compatibility problem.
Also, the reason why I was using YEP in the first place was because some of their plugins contained features I couldn't find an alternative with VisuStella (like their Instant Cast plugin for example).

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/visustella-mz-i-keep-getting-this-error-when-testing-my-project.178173/