MV Class Sprite Change Function Broken?

I'm working on a job based RPG a la Final Fantasy, and I thought I had a clever idea to run common events so class outfits appeared in cutscenes. For reference, I make cutscenes on separate maps and leave the player transparent, the party is represented as events that can move independently of each other as needed. My common event trick-simply checking each character's current class and replacing their respective event's graphic to match, seems to work just fine...assuming there's no need to change their graphic further.

Yeah, this is the part that I just don't understand. For whatever reason, the change image function breaks beyond the initial moments of the cutscene, and I can never change the characters' graphics based on class again. Emphasis on "based on class": changing their event image by itself works fine, but when I try conditional branches to check their class again it doesn't happen. Also doesn't seem to be a common event issue either: I can painstakingly put every class check directly in the event and leave common events out of the equation entirely, and nothing gets fixed.

I have no idea what's going on. Why does the class check only seem to work one time per cutscene?
and we can't help you without seeing what you have done, especially as the sprite is on the actor and not on the class by default.

show us screenshots of the critical event and we might be able to find the cause.
The blue hair guy here is the offender in this example. First pic is at the start of the cutscene, the class check works the first time. The second one, though? The cutscene is supposed to have him get up, which is a different sprite, and then turn left and right; however, his sprite doesn't change at all and he's just turning with his down sprite. The class check, and by extension the image change, just didn't happen for some reason.

Edit: I got a note saying my screenshots were too big for the server to handle. I have them and I'm trying to share them, hopefully they upload eventually.
tips for screenshots:
1)
use [alt]-[prtscrn] intead of regular [prtscrn] to copy the screen.
that will limit the screenshot to the active window instead of the entire desktop - the only thing we need at all.
2)
after pasting the screen into the image program of your choice, make sure it is saved as a jpg or png with a good compression before uploading the files
Alright, should work this time. To explain what's happening here again: I first run a check for the blue hair guy's current class to see what down sprite to use-that works, as you can tell by the clown makeup in the first shot, that's a class outfit thing-but then I need to run the check again so he can get up. Except the event seemingly fails to play out the conditional branch checks the second time around, so his image doesn't change and he's still using his downed spritesheet.
I have no interest in map screenshots.

what we need to see to help are the event screenshots, that show us what commands you used when.
including event properties and conditions and page priority etc.
Ah, that makes more sense. Here's the start and end of the class check + sprite change common events for the relevant character, standing and down; the common events for the other characters work exactly like this and would have the same issues too. Final shot is the opening of the cutscene: I call all relevant common events and they work fine, but when I call a second event to get blue hair guy to stand, the event seemingly ignores the call and keeps going.

I should mention again, I don't think the check being in a common event is the problem. I painstakingly did all these conditional checks in the event proper and had the same issue.
but when I call a second event to get blue hair guy to stand, the event seemingly ignores the call and keeps going.
and where is that event? nothing in the event commands so far would explain what is happening.
I need to see the rest of the Lufin event as well as what commands are in that second event.

although there is one thing that might explain everything:
autoruns and parallels loop automatically, so if nothing in the rest of the lufin event stops that or transfers the player out, then the lufin event will run (and change the sprites) sixty times per second.

so your second event might work, just to have the sprites changed back one frame later.
Sorry, second common event. You can see it in the final screenshot I sent in the last reply: I run CE's at the start of the cutscene event to change all the party members at the start, but then toward the bottom of the shot there's a second call for a common event to change the character again.

The common events that run the class checks and sprite swaps aren't autorun or parallel, but the cutscene event that calls them is autorun. I'm not sure if that affects anything.

I've found that I'm able to change the sprite more directly: if I throw the class check away and simply change Lufin into his Freelancer outfit, the code lets me do that. But, well, you see the problem here: the one thing that seems to work is completely abandoning the thing I'm trying to do. That simply can't be the answer here.

For what it's worth, here's a fuller picture of both common events for Lufin and the entirety of the cutscene code.
and where is that event? nothing in the event commands so far would explain what is happening.
I need to see the rest of the Lufin event as well as what commands are in that second event.

although there is one thing that might explain everything:
autoruns and parallels loop automatically, so if nothing in the rest of the lufin event stops that or transfers the player out, then the lufin event will run (and change the sprites) sixty times per second.

so your second event might work, just to have the sprites changed back one frame later.
The transfer at the end of the lufin event, is that to a different map or to a different place on the same map?
Different map. That's how all my cutscenes work: they run on separate maps just for them, with the player and followers made transparent while I have events represent the party members instead (still no other code, Lufin's the only one here actually running anything).

That's also part of why talk of stopping the event to break the loop worries me: that's not how my cutscenes work. The player is never supposed to have full control on this map because it only exists to play this one scene.
yes, that is how it works in this case - if you didn't transfer away with the last command, then the event would repeat itself. but it doesn't exist on the other map.

That basically leaves only two remaining possibilities that I can think of:
either something resets the event to the default picture, or the structure of the sprites messes up with the directions.

please test what happens if you remove the sprite from the Lufin event. This should not make a direct difference since you set it to the down sprite at the beginning of the event.
but it should result either in the new sprite being kept because nothing overrides it or in the sprite vanishing (if t is indeed the event structure that updates the sprite on its own).

If that test does not change anything in the behaviour, then I would need to see both spritesheets (the one for down and the one for up) to check if something is wrong there.
Tbh there was actually an earlier event where this was a problem, but there it was bypassed BECAUSE I was removing the sprite. I just set the events to transparent instead of changing them to no image.

What happened before I did that? Well, the affected characters would disappear, and then just not come back.

Which is what implies to me that the problem is the conditional branches checking the classes breaking for no reason. Because I can tell the event to just change the sprite, it's not reverting back to a default image, but specifically when I have a conditional branch set to check the class again does the event just ignore my instructions.
Just tested the scene with no default graphic on the event. Zero change whatsoever.
In that case, here are the spritesheets. Though I'm not entirely sure why these would be the problem, especially since the issue is that my class check and sprite change works the first time per cutscene but not a second.

Should also note, these sheets might change soon. Existing sprites will stay as they are, but I'm currently in the process of adding new job, and by extension filling some of the extra space on here.
Though I'm not entirely sure why these would be the problem,
I was checking if an automatic turn toward player would have gotten to the wrong sprite, in case you combined several different ones.

implies to me that the problem is the conditional branches checking the classes breaking
while that is theoretically possible (I've seen worse cases of unidentified conditions), it would be like saying "my car broke down because I forgot to close my fridge door at home".

There simply is no direct connection between the command and the sprite that could cause this.

My guess is now that something in your plugins have changed the engine behaviour in unexpected ways. Can you post screenshots of your plugin manager with all your plugins and their order?
This should be the full list. Plus a shot of my Class Change Core settings; I can send other specific plugin settings if needed, that just seemed like the most likely to cause problems in this case.
I should have asked earlier...
in 90% of all cases when something really strange is going, it is the wrong order of yanfly plugins.

all of yanfly's plugins have to be in exactly the order they are listed in his main list on yanfly.moe
because otherwise they can affect and mess up each other.
You can add other plugins between them where necessary, but do not change their order.

and there are several such wrong orders in your list, especially the class change plugin is much, much too far down. It needs a higher priority.

please remember that reordering those plugins will make all older savefiles incompatible, you need to start new playtests after that.
Ah. Would not have expected that. I already figured plugins dependent on other plugins should be close to those (and of course needed to be below them), but I didn't realize keeping the main ones in order was that important.

As it happens, I need to playtest everything again anyway. I only just recently thought to have sections with temporary party members, and one of those sections was back in parts I already made, so I have to start over anyway to test how that works. As for how that might affect the cutscene issue, though, uh...see you again in 20+ hours.
In a lot of cases it doesn't matter, but Yanfly is too complex.

and changes to classes affect almost everything else, so if other plugins reference to those changes then the class core needs to be above them all.

Original thread: https://forums.rpgmakerweb.com/threads/class-sprite-change-function-broken.183720/