Dialogue System Saver causing issue with storing actor field
Posted: Sat Jul 04, 2020 12:11 pm
Hello,
I'm experiencing a weird issue that I'm not sure how to resolve.
I have two scenes. On Scene A, I have my Dialogue Manager with the following components recommended by the documentation to add for the saving system: Dialogue System Saver, Save System, PlayerPrefs Saved Game Data Storer, Json Data Serializer, and Standard Scene Transition Manager. Scene B does not have a Dialogue Manager present.
The intended purpose of these two scenes is for the player to interact with an object on Scene A that triggers a conversation. Selecting an option in that conversation calls LoadLevel() and transitions the player to Scene B. Scene B has an "On start" trigger that first calls a custom sequence to adjust some fields in the database's Player actor. This same trigger then plays a conversation. There is then an "on conversation end" trigger that transitions the player back to Scene A. I write to the console on each scene to track the changes.
The issue I'm experiencing is that the player fields I'm adjusting on Scene B do not persist after the transition to Scene A -- they revert back to what they originally were. However, if I disable the Dialogue System Saver component on the Dialogue Manager, the field changes do persist.
I'm not sure if I've done something incorrectly regarding the save system or how to further troubleshoot this issue. Any help or advice would be greatly appreciated.
Thank you!
I'm experiencing a weird issue that I'm not sure how to resolve.
I have two scenes. On Scene A, I have my Dialogue Manager with the following components recommended by the documentation to add for the saving system: Dialogue System Saver, Save System, PlayerPrefs Saved Game Data Storer, Json Data Serializer, and Standard Scene Transition Manager. Scene B does not have a Dialogue Manager present.
The intended purpose of these two scenes is for the player to interact with an object on Scene A that triggers a conversation. Selecting an option in that conversation calls LoadLevel() and transitions the player to Scene B. Scene B has an "On start" trigger that first calls a custom sequence to adjust some fields in the database's Player actor. This same trigger then plays a conversation. There is then an "on conversation end" trigger that transitions the player back to Scene A. I write to the console on each scene to track the changes.
The issue I'm experiencing is that the player fields I'm adjusting on Scene B do not persist after the transition to Scene A -- they revert back to what they originally were. However, if I disable the Dialogue System Saver component on the Dialogue Manager, the field changes do persist.
I'm not sure if I've done something incorrectly regarding the save system or how to further troubleshoot this issue. Any help or advice would be greatly appreciated.
Thank you!