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?
Need to delete both persistent files (app data and dev saves folder) to reset player Preferences
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.
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.
- 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
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)
Who is online
Users browsing this forum: Ahrefs [Bot], Google [Bot]