How to define config.save_directory to release additional chapters to a vn?

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
pastelciel
Regular
Posts: 26
Joined: Sun Nov 23, 2014 8:32 pm
Projects: 【Pitch Black Serenade】
Organization: 97Circle
itch: 97circle
Contact:

How to define config.save_directory to release additional chapters to a vn?

#1 Post by pastelciel »

I was looking for more information about how this variable works: define config.save_directory

i.e. I'd like to release updated versions of my game (with corrections, new scenes/chapters, etc.) and I'd like players to retain their original save slots and permanent data. Can I achieve it just by setting the same save directory folder name for the updated software?

Sorry if this sounds lame, I'm new to programming.
---------------------------------------------------------------------------------
【Pitch Black Serenade】 demo is out! ⇒ [itch.io]

TakeHomeTheCup
Newbie
Posts: 15
Joined: Tue Oct 09, 2018 9:12 pm
Contact:

Re: How to define config.save_directory to release additional chapters to a vn?

#2 Post by TakeHomeTheCup »

It says you should avoid changing it. As long as it's the same as the previous release, your players should be able to load their saves from the previous release.
So yeah, you could achieve it by just setting the same save directory folder name.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3785
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: How to define config.save_directory to release additional chapters to a vn?

#3 Post by Imperf3kt »

You generally don't touch that config option.
If your players update, then you need to think about variables - they must be defined in the old save file if you want to avoid problems. Make sure you use "default" to set variables outside any label.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
pastelciel
Regular
Posts: 26
Joined: Sun Nov 23, 2014 8:32 pm
Projects: 【Pitch Black Serenade】
Organization: 97Circle
itch: 97circle
Contact:

Re: How to define config.save_directory to release additional chapters to a vn?

#4 Post by pastelciel »

TakeHomeTheCup, Imperf3kt, thank you so much for your replies! Now I understand the matter better!
---------------------------------------------------------------------------------
【Pitch Black Serenade】 demo is out! ⇒ [itch.io]

Post Reply

Who is online

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