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

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
komehara
Regular
Posts: 36
Joined: Fri Jan 31, 2020 10:08 pm
Projects: Spirit Link
Tumblr: hsandt
Deviantart: hsandt
Github: hsandt
itch: komehara
Contact:

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

#1 Post 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?

User avatar
m_from_space
Eileen-Class Veteran
Posts: 1006
Joined: Sun Feb 21, 2021 3:36 am
Contact:

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

#2 Post 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)

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot]