Random Error in Battles

Ok, I had an entire description prepared for this before it all suddenly wiped for no reason. Now in my frustrated mind, I'll give a watered down version.

Was messing around with Yanfly's plugin Animated SV Battlers, using the Scale Sprite: x% notetag to alter the General_m battler. Everything was working yesterday. I come on today after updating RPG Maker MV, and several of Yanfly's plugins, and suddenly all of my fights, regardless of sprite, are giving me "TypeError: Cannot Read property 'width' for undefined". And now I have no clue what do do about it.

One might ask why I'm posting it here instead of Yanfly's website. Well, to tell you the truth, I really don't think this is a problem with Yanfly's plugin, because I uninstalled the Animated SV Battlers and removed the notetag and I'm still getting the same error. I'm completely confused and need aid.
Are all of your plugins up to date ?
Are all of your plugins up to date ?
Yes, they are. I updated all of the ones that required updating at the time.
Any chance you have cleared some enemy slots without removing those enemies from troops first?


Can you please open the developer tools (F8 while playing) and then cause the error to come up? The error message should be a bit more details now, so can you let us know what that is, and also take a screenshot of the console, which will have even more detail as well as the scripts and lines where the issue is happening.


Also, have you tried this in a new game, or are you resuming a game that had been saved before you added (or adjusted) the plugin parameters or your note tags? If you resumed a saved game, can you just try a new game and see if it still happens?
Ok, going back and playing it in the actual game, the battles are working fine. When I go to test them in the Troops, I get the error. This is very odd.

At your suggestion, I went and tried my other project. Same deal, except that it isn't working in game now. Awesome.

I haven't edited any of the plugin parameters, just used the notetag to mess around with the size of the General_m battler. I don't trust myself to make any good changes to the parameters without screwing something up.

The error in the dev window:

http://imgur.com/dXRHGI9 (The original project where this problem emerged)

http://imgur.com/Cf9uh8L (The other project which won't work in-game and in Troop)
Does it happen if you disable ALL your plugins?


Those error messages all seem to indicate it's to do with the plugins.
Does it happen if you disable ALL your plugins?

Those error messages all seem to indicate it's to do with the plugins.
It did indeed work. Might have to have a chat with Yanfly about it. Thank you Shaz.

EDIT:

Ok, so I've found something weird. A bunch of js files have appeared in my "js" file. I have no idea how they got there. They seem to be connected to my problem, though: I keep seeing references to them in the dev console. Any idea what they're for?

(Based on names alone, what they're for should be obvious to me, but I didn't add them, so I don't know...)

rpg_core.js

rpg_managers.js

rpg_objects.js

rpg_scenes.js

rpg_sprites.js

rpg_windows.js
Those js files are part of MV.
Those js files are part of MV.
Then 2 questions: why weren't they there before, and why would they be causing errors in my projects?
They have always been there - you probably just didn't notice them. If the were not there, your project would NEVER have run.


THEY are not causing errors in your project. I already told you, and you can see in the screenshots, that the errors are caused by one of Yanfly's plugins. This is why you were asked if you're certain you have the latest version, because Yanfly has been providing updates and bug fixes ever since they were released.

Original thread: https://forums.rpgmakerweb.com/threads/random-error-in-battles.53222/