Skill Learning / Upgrading adds other skills that are not supposed to be learned.

This is an odd bug so it's not easy to re-produce it.

So here's how it gets triggered:

1. From the script file (http://1drv.ms/1y3eDX8), use Yanfly's Skill Learn Engine, JP Manager and Kread-EX's Skill Upgrade.

2. Set up some skills (includes both on the Classes and with notetags for the scripts, see their instructions).

3. Set up a party of 4 (more or less than).

4. Gain enough JP.

5. Upgrade or Learn a new skill.

Once it's done, some skills from an other character are also added to the character that you were doing upgrades or learning skills.

NOTE: Usage of the entire script set requires TRGSSX.dll file (KGC bitmap).
Anybody?
Consider setting up a demo to show the issue in addition to just explaining how to reproduce it.
Well, after a quick testing, it turns out that Yanfly's Skill Learn caused this. 

I'm uploading a demo video right now (sorry for the video quality, I had to use Intel Quick Sync Video codec to make the game run better when I was recording it with OBS).

EDIT: Now availiable: 
I mean, a demo for people to try if they are interested in looking into the issue. Unless you have already resolved it after figuring out that it was another script causing the issue.
Oh... Sorry. I got it wrong...

One moment...

EDIT: Here: http://1drv.ms/18qet0M

Just make sure that you open the treasure chest before proceeding to learn a skill.
Somebody?
Is it the "debug" file?


Ideally the demo should be a new project set up to reproduce the bug in case it's something completely different that's causing it (like another script). This is so that you can more accurately determine what is causing the bug and saves others time from having to find the bug.


Have you verified that this is a bug with just the three scripts you've mentioned?
The file BugKiller.7z is the demo.

After doing a quick check, it seems that the Skill Learning script is mostly the culprit, Skill upgrades does not trigger that glitch. I'll do some testing at a latter time because Steamworks implementation is bad and it takes some time to start testing (having to wait some time in order to create a cloud copy of a new project, opening the Project Manager to remove it from the cloud so it won't sync it, etc.) 
I'm still stuck with that bug. Anybody?
It is a known bug in Yanfly's script.


Any skill which requires lvl1 (aka no level requirement) will be learned instantly when the player learns any skill on the list.


To avoid this, make a level requirement for every skill which you want to add to the learning list (meaning at least lvl2 requirement).
Nope, not working.
Sorry, I totally forgot that there are note-tags for level requirements in that script too...


Well, I meant the default level requirements in the editor where you set up the skills for your classes, not the ones you add with note-tags.


Set all of those above lvl1 and the issue will disappear.
Ok, it works, but it's annoying, since some of them need to be startup skills.

Is there any bug fix or a workaround?
Not that I know of, sorry.


I am sure it can be fixed somehow, but regardless of how many times I look at the code, I can't figure out why these skills are learned when they should not be learned.
Somebody help!
If the skills need to be starter skills, wouldn't adding them to actors manually through an event at the start of the game work? In that case, the level 1 skills could be removed from the class skill setup in the database which would hopefully avoid triggering that odd bug.
This worked! I don't know if it fixed it entirely, but so far it works.

Thank you Assjacket!

Original thread: https://forums.rpgmakerweb.com/threads/skill-learning-upgrading-adds-other-skills-that-are-not-supposed-to-be-learned.36207/