How to turn off auto Reloading on Android?

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
i_jemin
Regular
Posts: 80
Joined: Sat Apr 11, 2015 3:14 pm
Github: i_jemin
Contact:

How to turn off auto Reloading on Android?

#1 Post by i_jemin »

(sorry for bad eng)

One player reports me that when game crashed and he tried to replay it, game fall in infinite loading.
I guess problem is auto Reloading of Android Renpy-When you quit game not by in-game menu, game will restore last known position.
And this will occur player keep move to position that have problem.

I tried these:

Code: Select all

    config.autosave_on_quit = False
    config.autosave_frequency = None
    config.autoreload = False
    config.has_autosave = False
    config.auto_load = None
but these don't work at android. What I have to do?

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: How to turn off auto Reloading on Android?

#2 Post by PyTom »

There basically isn't a way. Android requires games to support saving their state and loading again, so people can put their phones to sleep when they want to.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

i_jemin
Regular
Posts: 80
Joined: Sat Apr 11, 2015 3:14 pm
Github: i_jemin
Contact:

Re: How to turn off auto Reloading on Android?

#3 Post by i_jemin »

Problem is after he completely Kill that Ren'Py App, still he go back to error position.

User avatar
backansi
Veteran
Posts: 224
Joined: Sun May 31, 2009 7:15 am
Location: Korea, Republic of
Contact:

Re: How to turn off auto Reloading on Android?

#4 Post by backansi »

PyTom wrote:There basically isn't a way. Android requires games to support saving their state and loading again, so people can put their phones to sleep when they want to.
(bump)
So does that mean it is not possible to make game start at main menu screen instead of last saved point that exists?

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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: How to turn off auto Reloading on Android?

#5 Post by PyTom »

The most recent nightly has something like this. You can now use:

Code: Select all

define config.save_on_mobile_background = False
And it won't save when going into the background.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
Kiko
Newbie
Posts: 3
Joined: Fri Jul 06, 2018 3:40 am
Contact:

Re: How to turn off auto Reloading on Android?

#6 Post by Kiko »

PyTom wrote: Sun Oct 18, 2015 10:45 am The most recent nightly has something like this. You can now use:

Code: Select all

define config.save_on_mobile_background = False
And it won't save when going into the background.
Where do i put this line in? Script before Start label? Oder somewhere in GUI, screen...?

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: How to turn off auto Reloading on Android?

#7 Post by Remix »

options.rpy is likely the best bet
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: Google [Bot]