Save dialogue System to Firebase

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
VietLinh
Posts: 4
Joined: Sun Nov 07, 2021 5:43 am

Save dialogue System to Firebase

Post by VietLinh »

Hello Tony,
I read your manual
1.PNG
1.PNG (28.75 KiB) Viewed 202 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 202 times
Do you have any solution for this problem?
User avatar
Tony Li
Posts: 21961
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save dialogue System to Firebase

Post 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.
VietLinh
Posts: 4
Joined: Sun Nov 07, 2021 5:43 am

Re: Save dialogue System to Firebase

Post by VietLinh »

Hi Tony,
Thank you for your help. I was able to restore the state.
User avatar
Tony Li
Posts: 21961
Joined: Thu Jul 18, 2013 1:27 pm

Re: Save dialogue System to Firebase

Post by Tony Li »

Glad to help!
Post Reply