Battle Enemy Error - YEP_CoreEngine

Hello,
With my custom enemies's artworks everything works fine but with a specific file, which contains more pixels (362 x 396 px) I get this error:

YEP_CoreEngine.js:1098 TypeError: Cannot read property 'height' of undefined
at Sprite_Enemy.updateFrame (rpg_sprites.js:981)
at Sprite_Enemy.Sprite_Battler.updateMain (rpg_sprites.js:512)
at Sprite_Enemy.Sprite_Battler.update (rpg_sprites.js:493)
at Sprite_Enemy.Sprite_Battler.update (YEP_BattleEngineCore.js:2900)
at Sprite_Enemy.update (rpg_sprites.js:952)
at Sprite_Enemy.update (YEP_BattleEngineCore.js:3223)
at rpg_core.js:4068
at Array.forEach (<anonymous>)
at Sprite.update (rpg_core.js:4066)

at rpg_core.js:4068

I tried everything but nothing works. :LZSsad:
I also tried to put the image of this enemy in a file of another enemy that before was working, but nothing!
undefined is something that doesn't exist in the database, but to pinpoint
why it does that, can you screenshot the plugin database?

as I assume your YEP plugins arent in the correct order.
otherwise, we need more info on the notetag and file you use.

the size of the enemies doesn't matter much as long as it follow the rules.
undefined is something that doesn't exist in the database, but to pinpoint
why it does that, can you screenshot the plugin database?

as I assume your YEP plugins arent in the correct order.
otherwise, we need more info on the notetag and file you use.

the size of the enemies doesn't matter much as long as it follow the rules.
Schermata 2023-04-30 alle 15.11.42.png
This error doesn't have anything to do with any plugins. You're only seeing the Core Engine because you have a debug mode enabled in it, so that line of code is reporting the error.

You would see the same thing if you disabled the Core Engine and pressed F12 to see the Console during the game.

As ShadowDragon said, "of undefined" means you're telling the game to work with something that isn't really there.

- Check your troops, if you deleted an enemy from your database but didn't manually remove it from a troop, you could get this error

- Check your enemies, that they all have a valid sprite correctly attached

- Check your filenames. I wouldn't expect this particular error from it, but make sure you don't have illegal characters such as spaces or special symbols in any filenames.

- Are you starting a new playtest or trying to load a save game? You can get errors if you change things then try to load a save.
"Check your troops, if you deleted an enemy from your database but didn't manually remove it from a troop, you could get this error"

I think the mistake was this, now I have solved, thank you!

Original thread: https://forums.rpgmakerweb.com/threads/battle-enemy-error-yep_coreengine.157087/