Cannot load data between different scenes
Posted: Sat Jul 20, 2024 6:24 am
Hello,
I'm using a combination of Dialogue system, Playmaker, Ultimate Inventory System and Easy Save 3.
The save system has been setup to use Dialogue system saver instead of UIS as detailed in documentation.
In my first scene, the save button will start a Playmaker FSM state that has Dialogue System's Save Game action. It store result into a string variable called saveSlot. After that, the next FSM action us Easy Save's Save All action to store the saveSlot and other FSM variables into a file. When loading, I first start a Easy Save's Load All action to load all variables and then start Dialogue System's Load Game action to complete the loading. The above process works fine when used in the first scene. But once player move into another scene with the same setup and make a save or do a load, I got a "NullReferenceException: Object reference not set to an instance of an object"
This error occurred during the Load All action state. At this point, I have no idea what's happening.
I apologize if this sounds so confusing because I was also pretty confused trying to make the save system work across these 3 integrations.
I'm using a combination of Dialogue system, Playmaker, Ultimate Inventory System and Easy Save 3.
The save system has been setup to use Dialogue system saver instead of UIS as detailed in documentation.
In my first scene, the save button will start a Playmaker FSM state that has Dialogue System's Save Game action. It store result into a string variable called saveSlot. After that, the next FSM action us Easy Save's Save All action to store the saveSlot and other FSM variables into a file. When loading, I first start a Easy Save's Load All action to load all variables and then start Dialogue System's Load Game action to complete the loading. The above process works fine when used in the first scene. But once player move into another scene with the same setup and make a save or do a load, I got a "NullReferenceException: Object reference not set to an instance of an object"
This error occurred during the Load All action state. At this point, I have no idea what's happening.
I apologize if this sounds so confusing because I was also pretty confused trying to make the save system work across these 3 integrations.