MZ MPP EncounterEffect: Can't battle after opening a message box

Hey, guys!

I was doing some work on the menus and ui and ran into this weird plugin bug (which wasn't happening before afaik):

MPP ENcounterEffect gets the "can't set opacity of undefined" error only if I open a message box, or change the message box colors in the options, before a fight.

Is there anyway to fix this?

msgboxplusbattle.png
we need more info.

the key to the error is the "of undefined", which means that the engine was given a reference that does not exist.
the only thing so far we know is that that undefined reference has the property opacity, which means it is either a sprite of something or a screen. That is not enough to identify the cause.

can you please give screenshots of your plugin manager so that we can see all plugins and their order, and a full screenshot of the console as there might be some additional hints in the other lines?

additionally, does this happen on loading a saved files, starting a new game or both?
we need more info.

the key to the error is the "of undefined", which means that the engine was given a reference that does not exist.
the only thing so far we know is that that undefined reference has the property opacity, which means it is either a sprite of something or a screen. That is not enough to identify the cause.

can you please give screenshots of your plugin manager so that we can see all plugins and their order, and a full screenshot of the console as there might be some additional hints in the other lines?

additionally, does this happen on loading a saved files, starting a new game or both?

Sure thing! Screenshots:
Spoiler
msgboxplusbattle2.png

plugs1.png

plugs2.png

It happens on New Game as I do not have saved files yet, just one big test map.
If you're using MZ, consider using v4.0 of the plugin:
If your project was originally created in MV and you actually want to use MZ features (as opposed to, say, just the manual mapping layers) then I suggest that you:
  1. Make a backup copy of the project; then
  2. Use Game -> Update Corescript to update the project's core scripts to MZ.
If you're using MZ, consider using v4.0 of the plugin:
If your project was originally created in MV and you actually want to use MZ features (as opposed to, say, just the manual mapping layers) then I suggest that you:
  1. Make a backup copy of the project; then
  2. Use Game -> Update Corescript to update the project's core scripts to MZ.

Thank you so much, version 4.0 has apparently fixed the issue.
This project was originally created back in rm2k3 😅 so it started on MZ, thanks for the info though, I didn't know we could update corescript.
Thank you so much, version 4.0 has apparently fixed the issue.
Great! 😂

You can check the editor version you are using via Help -> About. It is generally a good idea to keep your project's core scripts at the same version as the editor. Updating the core scripts may cause compatibility problems for any plugins that haven't been updated for that version. As always, remember to back up your project first.

Happy RPG Making~

Original thread: https://forums.rpgmakerweb.com/threads/mpp-encountereffect-cant-battle-after-opening-a-message-box.168131/