MV Frog Magic: Saving & loading bug.

This plugin is amazing by @Frogboy! Here is a link to the plugin's thread: [FROG] Magic - Supercharge Your Class Mechanics!
This plugin has a couple of unique skill types called prepared & retrieved spells that do not use Game_Actor's learnSkill function in rpg_objects.js. At first prepared & retrieved spells work perfectly fine, but upon saving and loading the skills cannot be used even when you should be able to.
The skills become unusable after loading the skill's because dataClass is not 'skill' or 'item', due some of the skill's data being null. Game_BattlerBase's canUse function in rpg_objects.js finds that the skill don't have 'skill' or 'item' dataClass and returns false by default, rendering the skill unusable.

Before save & load:
1726542030685.png


After save & load:
1726542102347.png


Forcing the skill to be usable by making canUse's default case return true and then using the skill causes a type error of "Cannot read property 'score' of null" at around rpg_objects'js line 1302. This error does not occur before the save and load. This lead me to believe some of the prepared & retrieved spell data is being lost on the save and reload, however, I don't know why this happens. For reference, Frogboy states in the plugin thread that most of the plugin's data is saved with the actors. Also, the bug occurs regardless of whether Frog Magic's saveMagicObject parameter is true or false.
After some investigation, I found that the Frog Magic plugin increases the save file size to about 203063 characters, which triggers a console warning from rpg_managers.js at line 374 for being over 200000. I don't know if this is causing the issue, but I thought it was worth noting.

Steps the replicate the bug:
Download, open, and play test the Frog Magic demo project. Select Skill in the menu, select Marsha, go to Memorize, then select Wizard E Support L0. Go back, select Cast, and Wizard E Support L0 should be usable. Then, save the game, quit to title, and reload your save. Return to Marsha's Cast list and Wizard E Support L0 should now be unusable. This bug can be done with any spell caster that does not permanently learn spells, like Lucius and Marsha in the Frog Magic demo.

Any assist is very appreciated 🙂
If you don't want to post this in the actual plugin thread that you linked to, it probably makes sense to tag @Frogboy since he'd already be familiar with the plugin and its code 😉
Thanks! I had an instinctual desire to avoid necroposting when I made this thread :hswt:
I had an instinctual desire to avoid necroposting when I made this thread
that doesnt apply to plugin release threads, so you were fine to report it there (or PM him directly. hes not inactive on the forums)
1726546078717.png
But unfortunately, tagging a person in an edit doesn't push a notification. In order to invoke the summoning ritual properly you'll need to make a new post and @Frogboy by the might of your thighs and the whip of your tongue, a fly is here, leap into action!

That's the proper way to summon. Takes a little time to get it right, just keep training your conjuration skill.

Edit:
Turan already did it! I may have trained my conjuration, but my perception is super low! 👋

Original thread: https://forums.rpgmakerweb.com/threads/frog-magic-saving-loading-bug.171958/