I'm having a bit of a trouble regarding my multi-persistent datas.
(As in, the ones stored in « User/Appdata/Roaming/Renpy/Name-of-the-game»)
Sometime, when I'm testing and/or troublechecking my game, my persistent datas reset on their own.
So far, I've yet to figure out what triggers it.
As far as I can tell, it's completely random whether or not it'll happen on a given day.
I'm absolutely sure this has nothing to do with me editing the script, I've had instances of the persistent datas resetting without me altering the script in any way.
And I know it has nothing to do with me exiting the game OR exiting Renpy.
I've tried many things, yet I haven't been able to link any given action to the clearance of the aformentioned datas.
And yet, they keep reseting themselves every now and then.
For the record, the code regarding the persistent datas reads:
Code: Select all
init python:
mp = MultiPersistent("Name-of-the-game")
For chapter completion, it reads :
Code: Select all
$ mp.ch4fini = True
$ mp.save()
Code: Select all
menu:
"Option 1":
$ mp.c2 = "A"
$ mp.save()
jump A2
"Option 2":
$ mp.c2 = "B"
$ mp.save()
jump A2