MV YEP Changing equip mid battle causes enemies to disappear in CTB turn order

I'm using YEP CTB and YEP Change Battle Equip, along with a bunch of others including Moghunter plugins (yes I know they don't play together all that nicely, I managed to get them to work mostly). For some reason when I go into the change equip menu and return to the battle screen, enemies disappear from the CTB turn order (see below).
1648577786203.png

Before entering equip mid battle

1648577807625.png

After returning from mid battle equip screen

The enemy icon doesn't return even when it moves on the turn order, it's just invisible for the remainder of the battle. Everything else works fine, though things can get a bit wonkier if I play around with the plugin load order (such as the battlehud disappearing entirely after returning to battle if I load Change Battle Equip after Mog Battlehud). Below is my partial plugin load order with the relevant bits.
1648577836849.png


Does anyone know how I can fix this? I can provide additional information if needed. Thanks in advance!
that is because your YEP plugin order isn't correct as they should
be placed exactly on his side.

do that, and it should most likely work.
that is because your YEP plugin order isn't correct as they should
be placed exactly on his side.

do that, and it should most likely work.
Could you be more specific about which order it should be in? The wiki page on on Yanfly.moe only says to put Change Battle Equip under YEP_BattleEngineCore and YEP_EquipCore, and I did do that. It also has to be beneath the ATB and CTB plugin too, otherwise it resets the ATB gauge/turn order when going into the equip screen. Thanks again!
The wiki page on on Yanfly.moe only says...
There's a dedicated page on that site that gives the specific order for the entire Yanfly Engine Plugin library:
Alright, I'll give it a try later. Thanks!
Unfortunately after rearranging all my YEP plugins into the order on that page didn't work. The exact same issue persists. Here's the rearranged plugin list (without non-YEP plugins, I don't think I have anything else that would affect it) in case I did something wrong.

1648615999517.png

If the plugin list looks right, any other ideas on what else I could try?
cuold be a conflict with MOG's or other plugin you use.

the way I set it up is place EACH plugin in the correct place

this is the list I use to avoid conflicts as well, sometimes, re-arrange the
order in this list (but keep YEP in the correct order.

Core Plugins
Battle Plugins
Item Plugins
Skill Plugins
Equip Plugins
Status Menu Plugins
Gameplay Plugins
Movement Plugins
Quest Plugins
Options Menu Plugins
Eventing Plugins
Utility Plugins


this way, all plugins from different developers goes in the correct section.
if it persist with MOG's or other plugin, its a plugin compability issue and
a patch/modification is required.
If the plugin list looks right, any other ideas on what else I could try?
Well...what have you tried? I see you mentioned changing the order, have you done any other basic troubleshooting?

Have you turned off the Mog plugins to determine whether it's a conflict between Yanfly/Mog or a bug internally with the Yanfly?

A reminder that every time you modify anything in the editor you need to save the project and start a new game, not load a save.
Thanks for the tip, but after making sure the plugins are loaded in the right order the problem is still there, even after I disabled every non-YEP plugin. I even tried disabling every single plugin (including YEP ones) aside from YEP Core, Battle Core, CTB, Equip Core, and Change Battle Equip, and the issue still persists. Strangely enough, after disabling all other plugins, even the actor icons disappeared after I entered the equip menu mid battle. I'm using a test map instead of the battle test, so the project is saved after every change.
Bump! Any help on this is appreciated! I'm trying to comb through the plugin code to see if I can see what the issue is, but I'm not sure what to look for. Even telling me what I can search for in the code would help, thanks!
Solved it! I had to comment out this line if (this._addedCTBIcon) return; in the plugin code. It seems like each Icon has a switch checking to see if it's been drawn already, but changing scenes into the equip menu doesn't set that switch off so it doesn't draw the icon again when you exit the equip menu. Doing it this way means that the enemy icons doesn't slide in like the actor icons do when you exit the equip menu though. If anyone has a way to fix that please let me know, but I can live with this if necessary.

Original thread: https://forums.rpgmakerweb.com/threads/yep-changing-equip-mid-battle-causes-enemies-to-disappear-in-ctb-turn-order.146247/