Question about Extra Databases component
Posted: Sat Feb 03, 2024 9:42 pm
Hello,
I'm having an issue with getting the Dialogue System variables to load properly when loading a saved game from a different scene (Main Menu for example) and with the Extra Databases component.
When I choose the save file to load from the Main Menu (or any other different scene), and the scene is loaded using Load Game From Slot, every Saver component and everything else works fine except for the variables in the Dialogue system that don't get set.
But if I load the save file again AFTER I'm already in the scene, then the dialogue variables get set properly.
I'm using the Extra Databases component which loads the extra dialogue database OnStart and is synced with my Global Database which holds constant variables related to the Player.
Once I disabled the Extra Databases component the variables then also got set properly once I loaded the game.
However, if I disable the Extra Databases component and go to the scene without a save file, then the NPCs lose their connection to the Dialogue Database since it never got loaded.
What can I do here? I thought I could use Apply Saved Game Data but that action has a problem that creates a duplicate of any Spawned object every time it's called even when the spawned object is already in the scene
Thank you
I'm having an issue with getting the Dialogue System variables to load properly when loading a saved game from a different scene (Main Menu for example) and with the Extra Databases component.
When I choose the save file to load from the Main Menu (or any other different scene), and the scene is loaded using Load Game From Slot, every Saver component and everything else works fine except for the variables in the Dialogue system that don't get set.
But if I load the save file again AFTER I'm already in the scene, then the dialogue variables get set properly.
I'm using the Extra Databases component which loads the extra dialogue database OnStart and is synced with my Global Database which holds constant variables related to the Player.
Once I disabled the Extra Databases component the variables then also got set properly once I loaded the game.
However, if I disable the Extra Databases component and go to the scene without a save file, then the NPCs lose their connection to the Dialogue Database since it never got loaded.
What can I do here? I thought I could use Apply Saved Game Data but that action has a problem that creates a duplicate of any Spawned object every time it's called even when the spawned object is already in the scene
Thank you