Game crashes after finishing a battle and attempting to save or alter equips

1734512166207.png
1734512183918.png

1734512197891.png


I was playtesting my project today and I was met with crashes after finishing a battle and attempting to save or alter equipment, I tried turning off all my plugins and that did alleviate the crashing but this wasn't happening in the first place until recently so I have no idea what's going on that's causing this crashing
The most common reason for "undefined" errors is to try to continue incompatible savefiles.
And the main reason for those incompatibilities is adding or removing plugins.

so does that error happen if you start a new playtest game, or when you load an older save, or in both cases?

On the other hand, "... is not a function" means that something called a code that does not exist.
This usually means that a plugin is missing another plugin that is required, but that is unlikely with that error trace as it only contains the yanfly core.

So the only possible thing I can think of is that your game's core version does not fit the yanfly core version.
Please go to your project folder, then open js / rpg_core.js with a text editor and check the number in the title line - what version is it? (no number = 1.0)
Also, your Yanfly plugins should load in the following order, relative to one another:
  • YEP_CoreEngine
  • YEP_BattleStatusWindow
  • YEP_BuffsStatesCore
  • YEP_EquipCore <- you currently have this one out of place
That may have something to do with it. You can click+drag plugins in the Plugin Manager to rearrange the load order. Remember to save your project to apply Plugin Manager changes before testing.
So I went in and tried moving the equip core, it didn't work
But then I disabled SRD's Battle Popup customizer, since it was the most recent plugin I added, and somehow that was the problem despite it not coming up in either of the error messages
Another cause of the "is not a function" error is a typo in JavaScript, which can often be incorrectly reported in terms of which file it's coming from.

So you might
- check the Battle Popup Customizer by itself, make sure it's not a corrupted download
- check any plugin parameters or notetags that take JavaScript
- as caethyril said, try moving where it is in your plugin order

Original thread: https://forums.rpgmakerweb.com/threads/game-crashes-after-finishing-a-battle-and-attempting-to-save-or-alter-equips.173990/