Ren'Py Issues with Persistent Data not saving in between closing and opening Ren'Py games. Possibly Tokens Folder related

HaseoOfDeath

Engaged Member
Game Developer
Sep 13, 2017
3,256
6,080
So...

In the last maybe... 2 months, I've noticed that when I open any game, all my settings are reverted on certain Ren'Py games. It's not global mind you as I just dropped like 12 hours into Desert Stalker but for some reason, I finally noticed it extended.

Of late, I've been playing The King of Summer and upon launching the game, all my settings are set to default. Stuff like skipping unseen text or my music levels will default to max. Basically just thought it was a bug that happened with the last Ren'Py update sent out to devs. But then, I finally noticed none of my Persistent Data is being saved.

So in King of Summer, you have 3 different Routes and you have to go through a very lengthy arc to choose carefully into what Route you're in. The issue is, yesterday I redid the event 3 times so I have access to the 3 Routes. I load my save today, and my Routes are wiped despite me having a save in Ren'py before hand. Also, my settings were once again wiped.

I tried to google it but it the only thing I found is in regards to the Ren'py Tokens folder. Awhile back, I couldn't load any save from another game because it said the save was from another system. Around then, the cure was to wipe the Tokens Folder and the Security Key. It seems THAT"S the issue but the user who reported it, never responded if it still works.

So that is my question. Can can anyone tell me how to fix this and if so, what I am supposed to do with my Token Folder OR if there's something else I can do entirely.

Thank you.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
11,803
18,281
I load my save today, and my Routes are wiped despite me having a save in Ren'py before hand.
If you mean by this that you can't skip through the previously seen dialog lines, it's not necessarily an issue with persistent data. If the rpyc files have been rebuilt from scratch, the ID assigned to each dialog lines, and used by Ren'Py to know if the said line have been seen or not, can perfectly have changed. Therefore, from Ren'Py side, you haven't seen those lines even if the persistent data are corrects.

But for the settings it's something else. It happened to me some times, but personally I never found an issue related to the persistent data; what doesn't mean that there isn't one in your case.


[...] the cure was to wipe the Tokens Folder and the Security Key.
Well, in this case, yes, all persistent data generated previously to the wipe will be seen as invalid and therefore discarded.


Can can anyone tell me how to fix this and if so, what I am supposed to do with my Token Folder OR if there's something else I can do entirely.
You can only fix this by restoring the previous token and security values. And you are supposed to not deleted one or the other.
 

HaseoOfDeath

Engaged Member
Game Developer
Sep 13, 2017
3,256
6,080
If you mean by this that you can't skip through the previously seen dialog lines, it's not necessarily an issue with persistent data. If the rpyc files have been rebuilt from scratch, the ID assigned to each dialog lines, and used by Ren'Py to know if the said line have been seen or not, can perfectly have changed. Therefore, from Ren'Py side, you haven't seen those lines even if the persistent data are corrects.

But for the settings it's something else. It happened to me some times, but personally I never found an issue related to the persistent data; what doesn't mean that there isn't one in your case.


Well, in this case, yes, all persistent data generated previously to the wipe will be seen as invalid and therefore discarded.


You can only fix this by restoring the previous token and security values. And you are supposed to not deleted one or the other.
That helps to narrow it down. Time to restore the keys then lol.

Thanks!