Update 1 (16:11):
Having the functions outside of the main scope (( the (() => { // code })(); )) bits seemed to work, but that doesn't make sense, and won't work for me (since I need some of the constants inside the main scope). In theory it should be working (and is a problem I have not had in MV..) since it:
* creates the objects (Game_Actors), so should be initialized,
* extracts save data (so should be re-applied)
* corrects errors (removes illegal actors)
So there shouldn't be anything that's preventing it from loading. Even a breakpoint showed that line 536 (const inv = this.leader()._inventory) shows the actor's inventory, including the gold with the @ symbols LordV_Inventories()... so it's recognizing the data, just not the function?
Main Post:
At first it wouldn't let me load the save file (but that issue is somewhere in my TimeSystem plugin.. however right now (this issue) is that I'm getting errors that (..) is not a function. First some of my faction stuff (so I changed them a bit), now my Inventories.
Why is it that "Load Game" won't reload all of the functions as it does in New Game? Game_Factions() is created on new objects; Contents are saved and extracted. Inventories are all attached to actors or events, so they're already saved and extracted.
Having the functions outside of the main scope (( the (() => { // code })(); )) bits seemed to work, but that doesn't make sense, and won't work for me (since I need some of the constants inside the main scope). In theory it should be working (and is a problem I have not had in MV..) since it:
* creates the objects (Game_Actors), so should be initialized,
* extracts save data (so should be re-applied)
* corrects errors (removes illegal actors)
So there shouldn't be anything that's preventing it from loading. Even a breakpoint showed that line 536 (const inv = this.leader()._inventory) shows the actor's inventory, including the gold with the @ symbols LordV_Inventories()... so it's recognizing the data, just not the function?
Main Post:
At first it wouldn't let me load the save file (but that issue is somewhere in my TimeSystem plugin.. however right now (this issue) is that I'm getting errors that (..) is not a function. First some of my faction stuff (so I changed them a bit), now my Inventories.
Why is it that "Load Game" won't reload all of the functions as it does in New Game? Game_Factions() is created on new objects; Contents are saved and extracted. Inventories are all attached to actors or events, so they're already saved and extracted.