MV Compatibility Issue with Yanfly's Animated SV Battlers and Yoji Ojima's EnemyBook Plugin

About a year ago, I made this thread. None of the fixes were working and I got frustrated, threw my hands up, and said "I'll fix this later!"

Well, now it's later, and I have to figure this out.

I tried that last suggestion on the thread in a fresh project with only 4 plugins installed: Yanfly Core, Yanfly Battle Core, Yanfly Animated SVE, and EnemyBook. The enemies that didn't have animated sprites show up fine in the book, but the one that does is still invisible. I've tried moving the EnemyBook plugin around in every possible position relating to the others, and no dice.

Does anyone have any suggestions? I need to get this working, as the ability to look up enemy info is pretty important to my game, and the menu looks just wrong without images of the enemies to go along with it.
That thread doesn't give a lot of information.

Where's a screenshot of what's going wrong?

Do you have an Image specified for the enemy in the database? Where's a screenshot of an enemy entry in the database compared to what's showing in the enemy book?
That thread doesn't give a lot of information.

Where's a screenshot of what's going wrong?

Do you have an Image specified for the enemy in the database? Where's a screenshot of an enemy entry in the database compared to what's showing in the enemy book?
Sorry, here's a screenshot of the problem:

028f7caf66f28155f7bb2929775e21a6.png


It should look like this (this is what shows when I remove the tag for the SV battler graphic):

fffcd380846ed00fd69e45cf7e384f45.png
f5dc41819bfb668e4b1aecf7f928e9dc.png

Oh, and here's a screenshot of the database page for this enemy.
Okay, it's because the Yanfly plugin deletes the image filename after loading the database if there's an SV battler tag.

So the easiest thing to do, I think, is edit the EnemyBook plugin. Go to line 287 and make it say
Code:
        var name = enemy.battlerName || battler.meta.bookfile;

Then, any enemy that has an SV battler, also give them a notetag <bookfile: name> where name is the filename in sv_enemies you want to use in the book.
Okay, it's because the Yanfly plugin deletes the image filename after loading the database if there's an SV battler tag.

So the easiest thing to do, I think, is edit the EnemyBook plugin. Go to line 287 and make it say
Code:
        var name = enemy.battlerName || battler.meta.bookfile;

Then, any enemy that has an SV battler, also give them a notetag <bookfile: name> where name is the filename in sv_enemies you want to use in the book.
I tried your fix and got this error when I tried to open up the enemy book:

b814dbbf5820e7c6364cea69aa7ed024.png
Oops, enemy, not battler.
Code:
        var name = enemy.battlerName || enemy.meta.bookfile;
Oops, enemy, not battler.
Code:
        var name = enemy.battlerName || enemy.meta.bookfile;
Ah, it worked! It's a miracle!

Thank you so much!!!

Original thread: https://forums.rpgmakerweb.com/threads/compatibility-issue-with-yanflys-animated-sv-battlers-and-yoji-ojimas-enemybook-plugin.160725/