Defining persistent data location

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
silversporksama
Regular
Posts: 114
Joined: Tue Jul 27, 2010 4:57 am
Completed: Senpai WataMite, Last Couple Minutes
Organization: Tokkimeki
Tumblr: Tokkimeki
Deviantart: Tokkimeki
itch: tokkimeki
Location: Philippines
Contact:

Defining persistent data location

#1 Post by silversporksama » Sun Oct 25, 2015 6:34 am

Howdy, it's been around four or five years(?!?!) since I've last popped up on these boards and only now has a problem with no workaround hit me so bad I needed to drop by again :/ (that, and the fact that I'm actually almost done with a project for once! haha!)

Anyway, on to the actual issue I have...

So, there's a specific directory for all persistent data, right?
I was wondering if there was a way you could get renpy put all the persistent data in the same folder as the game, so the persistent data gets deleted when the game does (but the multi-persistent data remains in the system) for a certain little trick I'm trying to implement with one of my current projects. (Hopefully that's something workable.)

The trick itself is something a little complicated to explain, but if it'll help me get an answer then I can try to put it into words somehow!

Thanks for your time, everybody!

User avatar
PyTom
Ren'Py Creator
Posts: 15893
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Defining persistent data location

#2 Post by PyTom » Sun Oct 25, 2015 11:02 am

The persistent data is placed in the same location as the save directory. You can get rid of the global save directory by editing options.rpy and setting:

Code: Select all

python early:
    config.save_directory = None
(Replacing the config.save_directory line that is there now.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
silversporksama
Regular
Posts: 114
Joined: Tue Jul 27, 2010 4:57 am
Completed: Senpai WataMite, Last Couple Minutes
Organization: Tokkimeki
Tumblr: Tokkimeki
Deviantart: Tokkimeki
itch: tokkimeki
Location: Philippines
Contact:

Re: Defining persistent data location

#3 Post by silversporksama » Sun Oct 25, 2015 11:15 am

PyTom wrote:The persistent data is placed in the same location as the save directory. You can get rid of the global save directory by editing options.rpy and setting:

Code: Select all

python early:
    config.save_directory = None
(Replacing the config.save_directory line that is there now.)
Aaaah, goodness, I didn't expect it to be that simple! Thank you so much!

Post Reply

Who is online

Users browsing this forum: Bing [Bot]