QuestStateListeners does not update when loading Dialogue Database
Posted: Fri Apr 25, 2025 4:24 am
Hey, Tony!
In my project I use QuestStateListener and QuestStateDispatcher (actually derived components from them, but it doesn't matter)
I also use saving and loading the Dialogue Database via PersistentDataManager.ApplySaveData/GetSaveData and passing to a third party API to store string representation of database.
However, I noticed: after loading the database, listeners are not notified that the quest has loaded from, for example, the default unnasigned state to the active state. Moreover - having tried the traditional approach with the SaveSystem component - the listeners did not get the update either. The db itself, quests state and track status are loaded completely fine.
I know that in my custom dispatcher I can subscribe to OnSaveDataApplied, but I would like to ask:
1) maybe I'm missing something or doing something wrong?
2) maybe in the load method I can call some kind of global update of the dialogue database so that quest listeners and other systems, if any, can be notified of the change in the state of the database?
Thanks!
In my project I use QuestStateListener and QuestStateDispatcher (actually derived components from them, but it doesn't matter)
I also use saving and loading the Dialogue Database via PersistentDataManager.ApplySaveData/GetSaveData and passing to a third party API to store string representation of database.
However, I noticed: after loading the database, listeners are not notified that the quest has loaded from, for example, the default unnasigned state to the active state. Moreover - having tried the traditional approach with the SaveSystem component - the listeners did not get the update either. The db itself, quests state and track status are loaded completely fine.
I know that in my custom dispatcher I can subscribe to OnSaveDataApplied, but I would like to ask:
1) maybe I'm missing something or doing something wrong?
2) maybe in the load method I can call some kind of global update of the dialogue database so that quest listeners and other systems, if any, can be notified of the change in the state of the database?
Thanks!