MV YEP plugin (allegedly) prevents skills from showing up in battle

Hello everyone, sorry to bother you again !

So, my problem is pretty "simple" : I made an event in my game consisting on a cinematic before a boss fight. In the event, I used a command to change the classes of my characters and then the battle starts. But when in the battle, the skills of the characters don't show up in the "Technique" menu. The menu shows up, but it's just completely empty...

I checked that my skills are under the right category (technique), that they are being learnt from level 1, etc etc. I've seen that, apparently, Yanfly's plugin "YEP_SkillCore" could cause that problem, but I couldn't find a way to fix it. My plugin is up to date, and I double checked the plugins' list to make sure they were in the right order.

If anyone encountered this problem or heard about it, do you know a way to fix it ? I can provide screenshots if you need it. Thank you ! ^^
I don't know what issue you have, but you can check [here] as it has
many fixes, so it might be a fix you need, so you can alter it on your own.

there is further in the thread about the skill issues, so try to read them
and maybe it solves your problem, or explain a bit what you look for.
Thank you for your reply !

I tried to browse through the list but there doesn't seem to be anything related to my problem unfortunately 🙁 I still fixed a line in the SkillCore plugin that was given in the list, but it didn't fix my problem.
can you show a screenshot of what you did so that we can see the exact process to get the issue?
Sure ! Here are the screenshots of the part of the Event that may be affecting/affected by it and my plugins list ! ^^

Spoiler: Screenshots
SkillsNotShowing01.jpg

SkillsNotShowing02.jpg
I'm half guessing here tbh, but I don't think swapping out the class via the plugin is gonna learn them the skills.
So as a sanity check, what happens if you manually learn them the skills they're supposed to have? Will they show up?
Sure ! Here are the screenshots of the part of the Event that may be affecting/affected by it and my plugins list ! ^^
huh. i got your bug and kept removing plugins till there were none left. its not a plugin issue. its a base game issue. it seemingly doesnt update learned skills after a class change.
Yanfly's class change plugin does, so if you have a copy, you could try installing it and hide the class change menus as a half measure.
I'm half guessing here tbh, but I don't think swapping out the class via the plugin is gonna learn them the skills.
So as a sanity check, what happens if you manually learn them the skills they're supposed to have? Will they show up?
They do, but since I want to give the option to the player to swap classes whenever they want later in the game I was worried it would mess with the skills... I guess I could still do that though. And I didn't use the plugin to swap classes ^^

huh. i got your bug and kept removing plugins till there were none left. its not a plugin issue. its a base game issue. it seemingly doesnt update learned skills after a class change.
Yanfly's class change plugin does, so if you have a copy, you could try installing it and hide the class change menus
Ah I see, that's annoying XP But thank you for the tip, I'll try that !

Thank you all for your help !
Well, if you want classes to be changeable, why not use yanfly's class change plugin? BUnch of settings for skills in there too.
Well, if you want classes to be changeable, why not use yanfly's class change plugin? BUnch of settings for skills in there too.
I'll give it a shot ! ^^ Thank you for the advice !
huh. i got your bug and kept removing plugins till there were none left. its not a plugin issue. its a base game issue. it seemingly doesnt update learned skills after a class change.
Yanfly's class change plugin does, so if you have a copy, you could try installing it and hide the class change menus as a half measure.
Yeah, that is right. The skills are only learned if at the moment you level up.

There is an easy solution though:
The original class doesn't know that skill type? Then make them learn the skills while leveling up. They can learn it even before they learn the skill type.

Than after the class change, when they learn the skill type, they already know the skill.
Yeah, that is right. The skills are only learned if at the moment you level up.

There is an easy solution though:
The original class doesn't know that skill type? Then make them learn the skills while leveling up. They can learn it even before they learn the skill type.

Than after the class change, when they learn the skill type, they already know the skill.
Okay, that sounds like a good solution indeed ! In the gameplay of my game there are only four skills attached to each classes though, so it's not too teddious to make them learn the skills manually, but I'll remember your idea ! Thank you ^^
Well, what I like to do, is to make a skill type for each class. And I make skill types that are for general magic skills, general melee skills and general ranged skills.

So I have a weak healing spell in the general magic skill type, anyone who can do magic can learn this.
And I have more powerful healing and supporting skills in the priest skill type. Anyone can learn those too, but only when they are priest, they can actually use it, or even see it in their skills list.

In addition, I like to bind the general melee skill type, the general ranged skill type and the general magic skill type, to weapons. That way only someone with a melee weapon equipped, can use melee skills, and only someone with a wand equipped, can use magic.

Because I have skills for each class, I can just teach them to any class during leveling process, to make sure they know all skills at the right level, no matter what class they are.

There is a little downside, though... The lvl-up screen will show that the player has unlocked skills, even though they can not use or even find the skill, until they change to the right class.

Edit:
Spoiler: Alternative approach
Something I also like, a lot, is to teach the player the basic skills, and have them learn new skills not by leveling up, but by completing in-game quests and train/buy skills at NPC's.

Let NPC's make the player kill 10 boars and 30 wolves to learn a double hit. Then sell them training for 90 gold to learn tripple hit too. They obviously need to kill 10 more boars and 30 more wolves first.

Warriors train at the barracks, hunters at the stables, mages in the library and priests at the temple. Or something like that.

Now you can still learn any skill at later levels, without just getting them handed to you when you switch classes.

This way of leveling has to fit your game style though. But if you are going for an open-world-ish kind of fantasy RPG, than this can be a great gameplay addition, even when you don't change classes. I makes playing as one class actually different than the other class, because they actually do different things to learn their skills.
Ah I see, you group skills under different skill types based on the class they belong to, basically ? It's actually an interesting idea to bind that to weapons too ! I don't know how it'd adapt to my current project though since there are multiple characters sharing the same classes but having different skills and stats ^^
I wouldn't know how things are handled in your game, so I can't help you there. But everything you like and can't use in this project, can still be useful for the sequel. 😛 There is going to be a sequel, right?
huh. i got your bug and kept removing plugins till there were none left. its not a plugin issue. its a base game issue. it seemingly doesnt update learned skills after a class change.
I haven't made a test game, but I don't see how it wouldn't.

Game_Actor.changeClass() calls the changeExp() method which calls levelUp() which learns skills.

In the OP's event, however, the argument is not given to maintain exp - the "false" means the Save Level checkbox is not selected. So no levels are being gained.

I haven't looked super deeply so I supposed there could be a bug where that combination of options means the actor doesn't learn the new class' level 1 skills. But, again, changeExp() is being called and that results in the skill list being checked.

I suspect it might work the way you want if you check Save Level.
n the OP's event, however, the argument is not given to maintain exp - the "false" means the Save Level checkbox is not selected. So no levels are being gained.
thats a bit of info i glossed over, but i did keep save level on in my test. just tried it without and it seems to happen regardless of its value.
i didnt look into the core code either, but i remembered that yanfly's class change plugin does modify the process and tried the event with it installed. it did work after
i remembered that yanfly's class change plugin does modify the process
Yeah, the Class Change Core completely rewrites how classes are tracked - it separates actor level and class level into two separate properties.

But I found it - when changing class with the default command, it doesn't actually initialize the level. That means that if you're maintaining exp, if the two classes have the same experience curve, you won't re-level which means you won't get skills checked.

So paste the below into a text editor, save as a *.js file, include as a plugin. If you end up using any other class plugins, keep this above them.

Code:
Game_Actor.prototype.changeClass = function(classId, keepExp) {
    if (keepExp) {
        this._exp[classId] = this.currentExp();
    }
    this._classId = classId;
    this._level = 1;
    this.currentClass().learnings.forEach(function(learning) {
        if (learning.level === this._level) {
            this.learnSkill(learning.skillId);
        }
    }, this);
    this.changeExp(this._exp[this._classId] || 0, false);
    this.refresh();
};
i gave into my curiosity as well and ended up focusing elsewhere 🤣

That means that if you're maintaining exp, if the two classes have the same experience curve, you won't re-level which means you won't get skills checked.
when you mentioned that levelUp calls learnSkill i thought something in levelUp might be causing it. I changed the curves so that the actor that changed classes would level up during the class change to see what happens. turns out, the levelUp doesnt call learnSkill if the actor doesnt hit the level to learn the skill while going through the levels gained during the swap. for the same reason you noted. no level initialization
Code:
Game_Actor.prototype.levelUp = function() {
    this._level++;
    this.currentClass().learnings.forEach(function(learning) {
        if (learning.level === this._level) {
            this.learnSkill(learning.skillId);
        }
    }, this);
};
I was going to suggest changing it from equals to less than or equal to, but if it works it works
I was going to suggest changing it from equals to less than or equal to, but if it works it works
I did it that way for the cases where you end up as level 1 - whether you don't Save Level, or your experience is insufficient to make you higher than level 1. (in which case changeExp() and levelUp() would never be entered)

So it will give you any level 1 skills you should have, and then those changes make the rest of it work as expected.

Original thread: https://forums.rpgmakerweb.com/threads/yep-plugin-allegedly-prevents-skills-from-showing-up-in-battle.169732/