How do I…
How do I fix the game failing to save the yarn dialogue?
I can’t tell if it’s the way I setup the dialogue system with the game, or the save/load system itself…
What is the expected result
The game should resume from the last save and be able to save its current state
What is the actual result
It restarts from the beginning…
Related screenshots
Actual Save & Load Events:
Dialogue System Setup Events:
Project files (optional)
![:shushing_face: :shushing_face:](https://forum.gdevelop.io/images/emoji/apple/shushing_face.png?v=12)
![:deaf_person: :deaf_person:](https://forum.gdevelop.io/images/emoji/apple/deaf_person.png?v=12)
If I remember correctly, I don’t believe Yarn dialogue works 100% the same as other variables, and may not work in the same way with storage.
I’d recommend checking what the gameSave variable looks when running the preview debugger, and then the same thing for the tempSave variable to compare the differences.
1 Like
Just ran the debugger, here is the gameSave global variable:
![image](https://forum.gdevelop.io/uploads/default/original/3X/8/9/892e84c6437c9da668ece50ce30a98f35b169de8.png)
And here is the tempSave variable:
![image](https://forum.gdevelop.io/uploads/default/original/3X/6/0/6041b7ad08b12c8077ed58b5c7d31aa129887dce.png)
Anything I might’ve screwed up?
Well, your gamesave variable is outright empty, (other than start = true) so it doesn’t seem like anything is getting stored there.
1 Like
I’m trying to make my own saving system (a terrible one?) that saves the current branch and line in the branch which seems like it should be easier to handle on paper however, is there a way to check how far the player is into a particular branch?