Hey everyone, I have an issue that seems strange to me but might just be normal. I am nearly done with this plugin I am working on and I am testing the saving and loading of the object I have created to store data for this plugin into the save file. Everything is working fine, the data is saving to the save file and loading fine as well except for one issue.
When I examine the global var in the console, under the Object prototype drop down all of the functions I defined for the object are gone and replaced with generic looking junk. Here is what I mean below with images because I can't figure a way to express the issue properly:
The object functions during a new game:
The object functions after a save has been loaded:
The end result is when I go to call the function I have set a watch variable for, the game crashes with a $gameBanks.bankExists is not a function error message.
Anyone have any ideas? I have looked at how other such global vars like $gameParty are loaded and saved and I cannot find where there is a different to how I have added in my global var to the rpg_managers.js file. If you need more code like the Game_Banks definition or the stuff I added to rpg_managers please let me know.
When I examine the global var in the console, under the Object prototype drop down all of the functions I defined for the object are gone and replaced with generic looking junk. Here is what I mean below with images because I can't figure a way to express the issue properly:
The object functions during a new game:
The object functions after a save has been loaded:
The end result is when I go to call the function I have set a watch variable for, the game crashes with a $gameBanks.bankExists is not a function error message.
Anyone have any ideas? I have looked at how other such global vars like $gameParty are loaded and saved and I cannot find where there is a different to how I have added in my global var to the rpg_managers.js file. If you need more code like the Game_Banks definition or the stuff I added to rpg_managers please let me know.