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:
After save & load:
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 🙂
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:
After save & load:
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 🙂