Yanfly Battle status window, character faces overlapping.

Hey all,

I've ran into an issue and I'm not quite sure what causes it, as I swear it worked previously but I don't think I've changed anything since when it worked.

So during some battles I need characters to leave the party and then reduce the party size to make the window look better, but now when I do it the face graphics don't seem to update properly. When a character is removed their picture still stays and kind of overlays on top of the actual character.

Any idea of a script that will update the faces? Or other fixes? Thanks if so.
1689423464785.png

In this example, the blue lady has left the party, yet her picture has stayed.
Behind them in the correct graphics, with all the previous characters being within the correct spaces.

1689423537713.png

And more weird, when you use a item that effects the team the overlaying face graphics go away until you use/put away the item. Then they return.
1) what is your maximum number of battlers? still 4 as default or did you change that?

2) if it is a display issue then it is very likely cause by either the wrong order of plugins or by incompatible plugins. Please post screenshots of your plugin manager so that we can see which plugins (including versions) you have installed in which order.
It starts as 5, as that first character is kind of the leader of the party, and you can equip them with equipment that buffs the whole party at the start, but they leave most battles at the start. And after the battle finishes it goes back up to 5.

And sure here's our plugin list; (apologies, its alot)

1689428571162.png

1689428632269.png

I've highlighted the battle status window, as I assume it's probably that at fault.
1689428651186.png

1689428693177.png


Also thank you for speedy responce.
As I assumed, your yanfly plugins are in the wrong order - massively wrong, because there are a dozen plugins in the wrong position.

please check yanfly's main list under yanfly.moe - THAT is the order, top to bottom, that his plugins have to follow.
and remember to start a new playetest after reordering - the reordering will likely make older savefiles incompatible.
Hey again, I redid all the plugins in the exact order yanfly's given.
But the issue is still happening, in battles after a character leaves the face graphics still overlay.

In fact, it seems to have stopped certain plugins from working? I have the 'InBattleStatus' plugin to show states on your party, but after sorting the plugin order, the 'status' button is now not showing up in battles. (like you can see in my prior posts).

1689443934444.png


1689444300322.png



But just to say again, this was all working before. The character would leave, the party size would shrink to 4 and the faces reset to just 4 characters. I am not sure why it is doing this now.
Bughunting means solving one bug after another until everything works.
The wrong order was one bug that had to be solved, but appearently it wasn't the only one.

So now we continue hunting - please post a screenshot of the event(s) that remove the actors so that we can check if there is anything strange there.
Alright, it's a few different things so I'll run through it.

So starting off, 'Core' is the blue person who is the leader of the team, and at the start of every battle she needs to leave.
It's starts in a base troop event that runs everybattle, checking the amount of battlers the player has and swapping 'Core' down the needed amount until she is at the bottom of the team.
Which it will then force a skill on 'Core' which is essentially an animation that plays of her summoning the party (like summoning pokemon)
1689446408989.png

1689446427700.png

1689446445232.png

In this 'CoreIntro' skill this action sequence plays:
1689446660925.png

1689446675650.png

1689446705812.png

1689446717921.png

Essentially just an animation, but it turns on switch 67.

Which then lets activate this parallel event: (Which can activate in battle, as I have a plugin that enables Parallel common events in battle)
Which double checks their in battle, then Removes 'Core', Then checks how many members are now in the party, then sets the party size the correct amount using a plugin command from Yanfly's Party System plugin (To make the battle screen look better).

1689446773938.png

If they come out of battle, the second part of this event activates; which disables other switches for other purposes. (BattleBegin and DisableChallengers)
But then adds 'Core' back to the party, and increases the max party size to 5.
Core must be in the first position in the party, (as their the leader) so it then checks their position in the party and moves them forward 1 until their in the front.
Finally, after that it uses the 'amount of battlers' variable from when it limited the party size, to remove the necessary amount of characters from the active party. (The script "$GameParty._battleMembers[x] = 0;" turns that position in the party into a reserve member, which is needed as I want the player to remain with the same party after coming out of battle, and if the player chooses to have a party of less then 4 members I don't want to add more after their battle, so their put into the reserve.)
1689446818189.png

1689446845564.png

After that Switch 67 "CoreLeft" is disabled, so this event is turned off until the next battle.

If any of this doesn't make sense, my apologies I'm not sure how to explain it all in detail. But I'm glued to my pc atm trying to fix this so I can answer any questions that you have with the eventing.
The most likely culprit is the parallel event or the plugin that allows it to run, especially as most of your code is needlessly complex.

The first part of it, the "in battle" branch, should be added to the turn 0 event as it should only be run once - or added to an "end of turn" troop event so it would only run once per turn if you want to reduce the battlenumbers.
However, reducing the battleparty after each death makes absolutely no sense as the party members are NOT automatically reordered when dying. So it should be moved to turn 0 only.

and once you do that, it would be better to kick the parallel in battle plugin and have the "after battle" part only done after the battle was left and the player is back on the map.
I am not quite sure what you’re referring to about reducing the battle party, as this event does nothing in relation to the party dying.

If you mean when they come out of battle, while they don’t get reordered when I increase the party size new members are added so i send the newly added characters, that weren’t there before, to the reserve.

But I’ll work on adding the other fixes you mentioned
Hey again, found the issue!

It was working all fine before, and it stopped working because HUD maker had seemingly messed with the battle status window.
Deactivating the plugin didn't do anything so I didn't catch on, but after doing a reset in HUD maker itself, the issue fixed itself and it all worked like it did previously.

But still Thank you Andar for telling me about the plugin order situation, didn't even realise there needed to be an order!

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-battle-status-window-character-faces-overlapping.159342/