Data saving properly but ApplySaveData() not working
Posted: Tue Apr 13, 2021 12:30 am
Hi there, just bought the asset and it's pretty great!
Although, I hit a small snag when it comes to saving the game. I'm using ES3 to save my data and following this thread (https://www.pixelcrushers.com/phpbb/vie ... ata#p21632) I was able to set up the save system.
However, when calling my load function and ApplySaveData(), the variables just refuse to change. It's weird because through a debug.log of the save string on load() I can see the string reflecting the changes in the saved data (a bool "conversationFinished" changed to true) but it doesn't actually change the variable and the conversation continues as if I'm starting the conversation for the first time.
Weirder still, it appears to work when I save the bool as false, speak to the NPC (it gets set to true) and then load(). The variable get set back to false. But not the other way around.
It doesn't appear to be the way I've set up variable change (through the dialogue entry editor) as it works just fine when entering playmode (and through scene changes as well).
Also, the variable doesn't update in the variables list during runtime. (Although it's updated fine internally and the conditions work). Edit: Just learnt that the variables list doesnt update at runtime. However, it doesn't even show up in the Watches list either
Although, I hit a small snag when it comes to saving the game. I'm using ES3 to save my data and following this thread (https://www.pixelcrushers.com/phpbb/vie ... ata#p21632) I was able to set up the save system.
However, when calling my load function and ApplySaveData(), the variables just refuse to change. It's weird because through a debug.log of the save string on load() I can see the string reflecting the changes in the saved data (a bool "conversationFinished" changed to true) but it doesn't actually change the variable and the conversation continues as if I'm starting the conversation for the first time.
Weirder still, it appears to work when I save the bool as false, speak to the NPC (it gets set to true) and then load(). The variable get set back to false. But not the other way around.
It doesn't appear to be the way I've set up variable change (through the dialogue entry editor) as it works just fine when entering playmode (and through scene changes as well).
Also, the variable doesn't update in the variables list during runtime. (Although it's updated fine internally and the conditions work). Edit: Just learnt that the variables list doesnt update at runtime. However, it doesn't even show up in the Watches list either