Page 1 of 1

Save dialogue System to Firebase

Posted: Mon Jan 30, 2023 8:31 am
by VietLinh
Hello Tony,
I read your manual
1.PNG
1.PNG (28.75 KiB) Viewed 212 times
I want to save the state of the dialogue database ( dialogue database variables, quest states) on Firebase
I saved "string s" to Firebase OK. Then I Load "string s" from Firebase to my game.
But when I restore state, all data lose (quest states = "unassigned", variables = 0)
2.PNG
2.PNG (35.88 KiB) Viewed 212 times
Do you have any solution for this problem?

Re: Save dialogue System to Firebase

Posted: Mon Jan 30, 2023 9:41 am
by Tony Li
Hi,

Remove the last line (DialogueManager.ResetDatabase). That line in the manual is meant to show how to reset the database to its initial state. Don't use it after restoring a saved state.

Re: Save dialogue System to Firebase

Posted: Tue Jan 31, 2023 11:31 am
by VietLinh
Hi Tony,
Thank you for your help. I was able to restore the state.

Re: Save dialogue System to Firebase

Posted: Tue Jan 31, 2023 11:34 am
by Tony Li
Glad to help!