MV Reflecting enemy magic crashes game

Exactly what it says on the tin.

I was testing items, and one of them applies the Magic Reflect effect.
But when the effect kicks in, THIS happens—
Screen Shot 2023-04-27 at 1.46.00 AM.png

I literally have no idea why this happens, and I have no idea what the error is talking about, so I can't fix this by myself. So how do I fix this and make reflecting magic actually work?

In case it helps, here are the plugins I have installed:
Screen Shot 2023-04-27 at 1.46.23 AM.png

(Note: The plugin called EnemyGoldAdjust does nothing outside of adjusting gold received after a fight, with the help of a variable. So I'm pretty sure it's unrelated to the problem)
OK, let's analyze

Any error "of null" means that the engine tried to access a data object that doesn't exist. Which data object that is can sometimes be difficult to find, but pressing F8 on the error screen, then switching to console and giving a screenshot of the full error trace often helps with that.

Second, you're missing yanfly's core plugin. That is not always needed, but it contains several bugfixes and improvements and is needed by some of his plugins, so I suggest installing it.

Which brings us to the third options: a lot of times type errors happen when you load an older and now incompatible savefile - because any change in the plugin manager has a high chance of making previous savefiles incompatible. So you should always start a new game after changes like installing the core plugin.

The last question: was this the battletest or did you test ingame?
Because as soon as plugins are involved, the battletest becomes unreliable.
Battletest skips part of the game initialisation to get to the battlescreen without the rest, and if one of your plugins requires initialization by new game it often causes problems with the database battletest.
OK, let's analyze

Any error "of null" means that the engine tried to access a data object that doesn't exist. Which data object that is can sometimes be difficult to find, but pressing F8 on the error screen, then switching to console and giving a screenshot of the full error trace often helps with that.

Second, you're missing yanfly's core plugin. That is not always needed, but it contains several bugfixes and improvements and is needed by some of his plugins, so I suggest installing it.

Which brings us to the third options: a lot of times type errors happen when you load an older and now incompatible savefile - because any change in the plugin manager has a high chance of making previous savefiles incompatible. So you should always start a new game after changes like installing the core plugin.

The last question: was this the battletest or did you test ingame?
Because as soon as plugins are involved, the battletest becomes unreliable.
Battletest skips part of the game initialisation to get to the battlescreen without the rest, and if one of your plugins requires initialization by new game it often causes problems with the database battletest.
Okay, first off, I'm on Mac. Which means pressing F8 on the error screen does nothing.

Even after installing Yanfly's Core plugin, starting a new game, and testing ingame... The game still crashes when an enemy hits an actor under the Magic Reflect effect. In fact, it's the exact same error message.

So, what now?
1 - You figure out how to bring up the console. The default hotkey for Chrome is F12, the one added by MV is F8, but if for some reason that doesn't work on your Mac, you need to figure out how to see it to get correct help.

2 - Do some basic troubleshooting. Have you used a process of elimination to figure out which plugin is causing the problem? As in, you turn them all of, save, test it. Turn one back on, save, test, etc.

Once you know what line of code is causing the problem and which plugin causes it, we can help you solve it.
After doing some troubleshooting, I figured out that the Battle Core plugin is what causes the crash to happen.

However, when I tried to find out how I could open the console, I looked at the RPG Maker MV Help page. I tried all the methods for Local Server Setup on Mac, but nothing worked.

Does this mean I have no choice but to remove the Magic Reflect effect so my game is playable?
depends - that sounds rather like one of the many configurations of the battlecore was made wrong.

And you never gave us much to even start bughunting, for example what exactly are you using and describing as the item that applies "magic reflect"?

And have you tried using MacOS help instead of MV help to setup a local server?
I've used an item and a skill, both of which apply the same state. This state, simply called "Reflect", has an Ex-Parameter that sets Magic Reflection to 100%.

Also I haven't tried using MacOS help because I don't know how to open that, so if you could tell me how that'd be greatly appreciated.
Also I haven't tried using MacOS help because I don't know how to open that, so if you could tell me how that'd be greatly appreciated.
the search bar at the top right of the menu - enter your question and it will offer links in the MacOS help in addition to the file search it is usually used for.
Or simply go through the menu when no program is active, there is also a link to the help in the finder
Followed your advice and went to Mac Help, opened the Console and did the search as directed...
Screen Shot 2023-04-28 at 1.34.31 AM.png

...But there's nothing there?

I'm probably doing something wrong, so what am I supposed to do to make stuff appear in the Console?
Moved to: Plugin Support

Reasons why I don't like Macs ...


Did you click on All Messages? On Errors and Faults? Do they show anything?

Please show us a screenshot of the item that's being used. If you have anything in the Damage Formula or in the notes box and it's not entirely visible in the screenshot, also copy those individually and post here so we can see exactly how you've got it set up.
Reasons why I don't like Macs ...
They're so user-friendly that you can't do anything :|
Did you click on All Messages? On Errors and Faults? Do they show anything?

Please show us a screenshot of the item that's being used. If you have anything in the Damage Formula or in the notes box and it's not entirely visible in the screenshot, also copy those individually and post here so we can see exactly how you've got it set up.
So I clicked on Errors and Faults, and yes, stuff now pops up in the window. The problem is I have no idea what I'm supposed to show to help you begin bughunting.

Also, here's a screenshot of the item I'm using:
Screen Shot 2023-04-28 at 11.53.46 AM.png
and the state itself? how does that look like?

and please don't crop windows, the IDs are part of the item and in some cases they are very important (like state ID 1 which is hardcoded as the deathstate)
Screen Shot 2023-04-28 at 12.41.53 PM.png

(Also Magical Mirror's item ID is 0083)
So I clicked on Errors and Faults, and yes, stuff now pops up in the window. The problem is I have no idea what I'm supposed to show to help you begin bughunting.
Maybe showing us what pops up in the window might be a good start?
Alright, so I booted up my game and opened the Console. From the moment the game started and when I crashed the game by reflecting enemy magic, these are all the errors I got:
Screen Shot 2023-04-28 at 8.20.19 PM.png
Screen Shot 2023-04-28 at 8.20.47 PM.png

Hopefully this is enough for you to tell me what's wrong.
Oddly enough, I got this same error ages ago on MV version 1.0 with the Yanfly plugins available at the time too. I think it was something was up with the other plugins that came with MV as once I took them out it worked just fine.

So this might be a plugin conflict with the other non-Yanfly plugins you got, and apparently it was never fixed and never given a compatibility patch as I doubt you are running MV version 1.0 still.
So this might be a plugin conflict with the other non-Yanfly plugins you got, and apparently it was never fixed and never given a compatibility patch as I doubt you are running MV version 1.0 still.
Tried turning on and off the non-Yanfly plugins, and lo and behold, the error still persisted.

I might be running MV Version 1.0, but when I tried checking the app version on my desktop and in Finder, it didn't show. So I might be able to check the version number through Steam, but I don't know how to do that.

So, how do I check the software's version number on Steam? Or is it possible to check it through other means?
The editor version you check within the editor in the menu under Help - about

The game engine version (which might be different) you check by going into your project folder, js folder and use a text editor to open the rpg_core.js file. It is then at the end of the title line
If there is no number at the end of the title line, then it is 1.0

And engine/core version older than 1.4 would be a problem as 1.4 was the first really stable version.
Additionally there were changes that make a lot of modern plugins incompatible to 1.3 and earlier
Both my editor and my game engine versions are v1.6.2.

That aside, I still don't know what's causing my game to crash.

Original thread: https://forums.rpgmakerweb.com/threads/reflecting-enemy-magic-crashes-game.157018/