Page 1 of 1

Need to delete both persistent files (app data and dev saves folder) to reset player Preferences

Posted: Sat Feb 17, 2024 11:53 am
by komehara
Apparently Preferences are stored in the persistent data file (this is unfortunately not told explicitly in https://www.renpy.org/doc/html/persistent.html, this should probably be).

I deleted the one in my local project dev game/saves/folder, but it didn't reset my preferences (I did it with game closed to be sure, then launched game, but it still had the old preferences).

Then I deleted the one in my app data folder (on Linux: ~/.renpy/[config.save_directory]), but it didn't reset my preferences.

Then I deleted BOTH before reopening the game, and there my preferences were reset!

Could it be that local projects in development search through *both* persistent files for fallback?

Is it intended, and should I open an issue on GitHub?

Re: Need to delete both persistent files (app data and dev saves folder) to reset player Preferences

Posted: Sun Mar 03, 2024 6:18 am
by m_from_space
komehara wrote: Sat Feb 17, 2024 11:53 am Is it intended, and should I open an issue on GitHub?
I can't answer your question directly, but since Renpy 8.2, there is this new function to delete all persistent data: https://www.renpy.org/doc/html/persiste ... ent._clear

Code: Select all

$ persistent._clear()

# or to clear more

$ persistent._clear(progress=True)