Cannot read property "mapId" of null

1654460029082.png

When i try to playtest my project this screen appears, it only appears when im with the EventMoveCore plugin enabled and i need help figuring out why exactly this plugin causes this error.
because you configured it in a wrong way, but I can't tell where you made the configuration error.

"of null" always means that the engine is missing a data object that has been referenced. Like trying to access map data that does not exist, or giving a command to an event with a wrong ID.

best guesses in order:
1) you continued a saved game from before adding that plugin.
you can't, any change in the plugin manager should be followed by starting new game in the next playtest - most complex plugins can't handle if their configuration is missing, and they need new game to initialise themselves.

2) wrong order of plugins (especially yanfly's)

3) wrong notetag or configuration or so on the plugin.
1) This happens before the main menu screen

2) I am using it in the default yanfly order

3) I am using it in it's unaltered form
because you configured it in a wrong way, but I can't tell where you made the configuration error.

"of null" always means that the engine is missing a data object that has been referenced. Like trying to access map data that does not exist, or giving a command to an event with a wrong ID.

best guesses in order:
1) you continued a saved game from before adding that plugin.
you can't, any change in the plugin manager should be followed by starting new game in the next playtest - most complex plugins can't handle if their configuration is missing, and they need new game to initialise themselves.

2) wrong order of plugins (especially yanfly's)

3) wrong notetag or configuration or so on the plugin.
I am using it in it's unaltered form
and that is exactly why I mentioned that point.
Several plugins REQUIRE configuration - they will always create errors when added without being modified for your specific game project.

I don't know if that is the case here - but you HAVE TO go through all plugin options to see if they are set specifically for your game.

That said, if those tips didn't help then we need more info to pinpoint where the error comes from.

when the error message comes, please press F8 and go to the console and give a screenshot of the full console output of that error.

additionally, please give screenshots of the entire plugin manager so that we can check your plugins for possible incompatibilites between them.
And if F8 doesn't open the dev tools window (that's common for boot errors) then try F12 instead.
For the EventMoveCore plugin, the only thing that is specifically map related within the parameters is the "Event Template Settings", which by default have Map ID 1 set as preloaded. So the only thing I could guess is that your project don't has that map anymore. For example, if you had two maps but deleted the first one, the 001 ID would currently not exist anymore in your project.

For plugins you should always consider the following troubleshooting:

1. Have you deactivated all other plugins? The EventMoveCore for example doesn't require another plugin for bootup, so you can try it stand-alone.
2. You should also try using the plugin in a fresh, unaltered project to check if the problem comes from your actual used one
3. You can also try re-downloading the plugin for the rare case something got messed up. There also may be a new version which has fixed some issues
4. If the error only occurs after activating multiple plugins, then the problem stems from either the combination or, even if the error makes you think it is plugin A, could be stem from Plugin B. In that case, try using the plugins in all possible combinations step by step until you can pin down the plugin which actually causes the crash

For most cases, this should fix your problem at least in a fresh project. If it still happens in your project only, you have to figure out what you've changed in it that may be connected to the plugin causing the crash.
If it also happens in a fresh project than it is either a very specific problem in your pc environment, or maybe more plausible, a problem with the plugin(s) which would have to be fixed by the plugin dev.

Now, this is of course under the assumption that the plugins do work out of the box. If, as Andar said, you have a plugin that needs configuration, this would also be a cause. It's best to always look into the plugin instruction to at least get a quick impression of you needing to adjust something at the start.
Looking into the dev console can help you out, especially if you show this and your plugin setup to people who know their code. But if you're on your own, the error output will probably only give you a direction most of the time. Which can be helpful, but I would always try to troubleshoot (with the given direction), before digging deeper.
Thanks for the help y'all, after some trial and error based on your solutions i have managed to fix the problem, aparently "battlecommonevents" was conflicting with "eventsmovecore" for some reason and causing that issue, thanks for your time 🙂

Original thread: https://forums.rpgmakerweb.com/threads/cannot-read-property-mapid-of-null.148254/