MV Yanfly Class Core Not Changing Image

I'm trying to use Yanfly's Class Core to have my character image change based on what Class she is and nothing is working. I've tried:

<Class 005 Character: Anna 0>
<Class 5 Face: Anna 0>

and

<Anna Character: Anna 0>
<Anna Face: Anna 0>

And even replaced the 0 with 1 for all 4 ways. I've also tried them and then changed maps. Nothing. Anyone know the secret to getting it to work? Her name is Anna, and the Class is called Anna. It also hasn't worked for any of the other Classes by number or name nor 0 or 1.

As a side not, her other Classes have a space and parentheses such as Anna (Archer). Will that cause any issues?

EDIT: So I found that if I make the file name wrong in the Notetag, the game errors out on load so it is reading it. BUT, it only errors out if the Class with the bad name is the Class she starts as in a new game.
Example:
Anna (Archer) is correct
'Anna (Dark Mage)' is wrong

Start as Archer. Game loads perfectly fine. Plugin doesn't work.
Start as Dark Mage, game errors out on load.
Start as Archer, switch to Dark Mage, save game, end game, load in, no problems, plugin doesn't work.
What are the file names of the images you're trying to use for this?
These note tags are set so that it's looking for the filename of the image file to use, it checks in the img/characters folder for the character sprite, and the img/faces folder for the face.

Basically with the tag you're using, you'd be telling it to load a file named Anna.png and use the characterset in position 0, and if that image doesn't exist, it would probably fail entirely and not do anything. If Anna already is already using the first characterset on that sprite sheet, no change would be noticed, but when you did Anna 1 it should've changed to the second spriteset.
What are the file names of the images you're trying to use for this?
These note tags are set so that it's looking for the filename of the image file to use, it checks in the img/characters folder for the character sprite, and the img/faces folder for the face.

Basically with the tag you're using, you'd be telling it to load a file named Anna.png and use the characterset in position 0, and if that image doesn't exist, it would probably fail entirely and not do anything. If Anna already is already using the first characterset on that sprite sheet, no change would be noticed, but when you did Anna 1 it should've changed to the second spriteset.

Anna for both. I checked to make sure that the names were correct when I first set it up. I also tried putting ' ' around Anna (Dark Mage) and it failed to load on startup. She starts as a Dark Mage so the Anna Class would be new to her. It seems that the plugin is only checking the Class she is at a new game. When I kept it as 'Anna (Dark Mage)' and loaded her as an Archer, it loaded perfectly fine. Switching her to Dark Mage also didn't crash the game nor did saving as that Class and completely closing and reloading.
Looking at the documentation, the correct syntax is:
<Class x Character: filename y>
so
<Class 5 Character: Anna 0>
and the same with Face. We never use leading zeros, and we never put quotations unless directed to.

A few things to check.
- Since it looks like your filenames are all the same as the classes, you may want to edit that. MV is HTML-based, and things like spaces and parentheses break networking filename rules. So consider renaming your files to something like Anna_Dark_Mage.

- Any time you make changes to your database or plugins, you must start a new play test game, not load a save game.

After that, you're down to error-checking the plugin.
- Check your plugin manager against the YEP library page to make sure all Yanfly plugins are in the correct order.

- Make sure your plugins are the latest version, and your MV project version is 1.6.2.

Turn off all plugins except the class change core. If that works, then you know it's a conflict and you turn on others one at a time. If that doesn't work, then you post again with screenshots of your plugin manager, classes with notetags, and img\characters directory so we can see your filenames.
Changed the names to how you said, changed the commands to how you said, removed any further tags past Dark Mage to make sure they weren't affecting it, made sure to load a new game, and turned off every Plugin except Class Change Core and tried it with Core Engine both on and off. No luck. I also compared the order and the versions and they're correct.

Plugin Manger: These are the only two on.
Spoiler
1640574378237.png

Classes:
Spoiler
1640574501777.png


Anna Class Notetags:

<Equip Slot>
Weapon
Shield
Head
Body
Gloves
Belt
Legs
Feet
Earring
Necklace
Bracelet
Accessory
Accessory
</Equip Slot>

<Icon: 65>

Dark Mage Class Notetags

<Default Row: 3>
<Row Lock>

<Item Cost: 50% Ice Rune>
<Item Cost: 50% Fire Rune>
<Item Cost: 50% Water Rune>
<Item Cost: 50% Thunder Rune>
<Item Cost: 50% Earth Rune>
<Item Cost: 50% Air Rune>

<Equip Slot>
Weapon
Head
Body
Gloves
Feet
Earring
Necklace
Bracelet
Accessory
Accessory
</Equip Slot>

<Icon: 78>

Archer Class Notetags:

<Default Row: 3>
<Row Lock>

<Equip Slot>
Weapon
Head
Body
Gloves
Feet
Earring
Necklace
Bracelet
Accessory
Accessory
Arrow
</Equip Slot>

<Icon: 102>

Anna Actor Notetags:

<Default Row: 2>
<Level Up Recover All>
<maxmp Plus: +100 * user.level> (Doesn't work)

<Class 5 Character: Anna 0>
<Class 5 Face: Anna 0>

<Class 6 Character: Anna_Archer 0>
<Class 6 Face: Anna_Archer 0>

<Class 7 Character: Anna_Dark_Mage 0>
<Class 7 Face: Anna_Dark_Mage 0>

Img Folders:
Spoiler
Characters:
1640575732580.png


Faces:
1640575622892.png
I can't reproduce your bug - it works perfectly for me.

Are you sure your images are in the correct format? It looks like your character spritesheets are taking up 1/3rd of the image horizontally and 1/2 of it vertically, but they should be taking up 1/4th of it horizontally - e.g. it looks like your images are only 432 pixels wide instead of 576.

An incorrect asset size would definitely cause problems. The code might not give you a loading error, because it is finding the filename as specified, but it's not in the right format for the engine to use it.

(for that matter, why not have all/multiple of these classes in one image, and use the appropriate index for the class you're switching to? That's kind of the point.)
Just checked and it is 1/4 x 1/2. None of the images are custom made or edited and everything is from the Generator. I've also never had any issues with the sprites over the past 5 months. As for why they're not all on one image, it's because I didn't like it. I started out doing that and 3 in found it didn't look/feel/organize right. There's 11 Classes over all so technically I'd only need 2 files but yeah.
Well, dunno what to say - is your MV project file at version 1.6.2?

Your notetags don't look wrong. The image files do, but I'll trust you that they're correctly 576x384.

If you press F8 during the game and go to the console tab, are there any errors? If you direct it to one of the standard assets (like Actor1) does it work any differently?

All I can say at this point is that it works as expected for me in a new project, so it has to be something in your project that's malfunctioning.
After way too much trial and error copying stuff in a brand new project, the issue is solved. I was using a Common Event when interacting with the Events to change Classes, and in it I had the "Change Actor Images" from the Event Commands from before I found Yanfly's command. For some reason, that was jamming it. Once I removed that line the problem went away. I tested by changing to Anna, Dark Mage, and Archer with that command removed and it worked perfect. I then changed to Healer and it stopped working. Removed that command from Healer and tried again and it worked.


Spoiler
1640583885555.png

I did try using Actor1 earlier and that failed too. No errors were ever reported in the console so that was throwing me off also. Whatever that Change Actor Images is supposed to do, it was doing it "correctly" and messing me up. If needed for future reference (IDK why), I copied over all the files in "js" one by one without any issues and all the main files in "data" without any issues. It wasn't until I coped Map001.json did it replace my Events and add the Common Event to them.

Thanks for the help! Even if it did turn out to be something different I appreciate you trying.

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-class-core-not-changing-image.143321/