Can I make my game autosave the player's progress?

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
nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Can I make my game autosave the player's progress?

#1 Post by nanashine »

I want to make the player's progress autosave in my game.
Is it possible?
Thanks.
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

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

Re: Can I make my game autosave the player's progress?

#2 Post by Imperf3kt »

Ren'Py has an autosave feature already included. Did you mean to ask how to manipulate it?
https://www.renpy.org/doc/html/search.h ... ea=default
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

nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: Can I make my game autosave the player's progress?

#3 Post by nanashine »

Yes. I wanted to know how to use it.
Like, when the person leaves the game it will autosave without them having to do it themselves.

Do I use "define config.autosave_on_quit = True"? Where should I place it?

Thanks.
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

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

Re: Can I make my game autosave the player's progress?

#4 Post by Imperf3kt »

Sorry. I'll have to let someone else answer that as I disabled autosave in my projects.
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

nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: Can I make my game autosave the player's progress?

#5 Post by nanashine »

No problem. Thanks for your attention :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

User avatar
zankizuna
Veteran
Posts: 416
Joined: Fri May 04, 2012 2:20 am
Completed: Monochrome Valentine
Projects: Softwar
Deviantart: raseru09
itch: ZanKizuna
Location: Manilaaaaaaaa
Contact:

Re: Can I make my game autosave the player's progress?

#6 Post by zankizuna »

You can also use persistent variables..

Code: Select all

$ persistent.Route1done=True
if persistent.Route1done==True:
    "Blah"
These variables stay as they are/retain their values even through out different game playthroughs

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

Re: Can I make my game autosave the player's progress?

#7 Post by Imperf3kt »

nanashine wrote: Wed Jan 17, 2018 7:26 pm Yes. I wanted to know how to use it.
Like, when the person leaves the game it will autosave without them having to do it themselves.

Do I use "define config.autosave_on_quit = True"? Where should I place it?

Thanks.
While looking through the configuration variables for various other reasons, I figured I'd come back and answer this as best I can.

Personally, I would place that inside options.rpy somewhere. Exactly where doesn't matter, but make sure it has no indentation at all.
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

nanashine
Regular
Posts: 129
Joined: Thu Nov 30, 2017 1:44 pm
itch: renpytom
Contact:

Re: Can I make my game autosave the player's progress?

#8 Post by nanashine »

Thank you so much for your help :)
I can't access my other account cause I don't remember the e-mail I used *cries in emoji*.

Post Reply

Who is online

Users browsing this forum: Andredron