Dialogue UI hangs after reset
Posted: Mon May 14, 2018 6:22 am
Hi there.
Loving DS for Unity. It has saved me lots of time, and I'm still finding new areas, where it's useful
My issue is the following using DS and the PersistenceDataManager:
Inspecting a saved game Item called "Abs_Meet" during gameplay, shows it's correctly set. After the first conversation it is set to "active", and if I reset it it's correctly set back to "unassigned". So things are working behind the scenes it seems.
However, when playing again after the reset, the Dialogue UI sort of hangs. I have to force Continue by pressing my Cancel key, which is Escape. First time it just shows the dialogue UI NPC subtitle element without text. Pressing Escape again, shows the text.
I'm not sure why that is happening, as the first time around it works without issues. Here's a short playthrough of the issues (at the end is where I have to force Escape to bring UI and trigger NPC lines):
Inspecting the Dialogue Editor UI during gameplay and watching the Conversation to be started, it shows that the first time through everything runs as intended. The second time after the reset, it hangs like this, where it doesn't move forward to the first dialogue line, unless I force it:
Finally, if I stop the Unity Editor and start playing again, everything works fine as in I can play the conversation without having to force the dialogue lines forward. This would mean that something is stuck during runtime, but is loaded correctly upon start.
Any ideas why Dialogue UI hangs after resetting?
Loving DS for Unity. It has saved me lots of time, and I'm still finding new areas, where it's useful
My issue is the following using DS and the PersistenceDataManager:
- Play a bit, starting the first Conversation, and Save into PlayerPrefs using the PersistenceDataManager
- Use own built menu to Reset the saved game, so player can start over
- Play again starting that same first conversation
Code: Select all
DialogueManager.StopConversation();
DialogueManager.ResetDatabase(DatabaseResetOptions.RevertToDefault);
However, when playing again after the reset, the Dialogue UI sort of hangs. I have to force Continue by pressing my Cancel key, which is Escape. First time it just shows the dialogue UI NPC subtitle element without text. Pressing Escape again, shows the text.
I'm not sure why that is happening, as the first time around it works without issues. Here's a short playthrough of the issues (at the end is where I have to force Escape to bring UI and trigger NPC lines):
Inspecting the Dialogue Editor UI during gameplay and watching the Conversation to be started, it shows that the first time through everything runs as intended. The second time after the reset, it hangs like this, where it doesn't move forward to the first dialogue line, unless I force it:
Finally, if I stop the Unity Editor and start playing again, everything works fine as in I can play the conversation without having to force the dialogue lines forward. This would mean that something is stuck during runtime, but is loaded correctly upon start.
Any ideas why Dialogue UI hangs after resetting?