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.
Since you use an in_title trigger to control autosave, try this in 00layout.rpy
(the 00layout.rpy has an init python block with a -1400 priority. If you get errors try defining in_title with a -1401 priority or move it in 00layout.rpy)
label _main_menu_prompt:
$ renpy.loadsave.force_autosave()
if layout.yesno_prompt(None, layout.MAIN_MENU):
$ in_title = False #add this
$ renpy.full_restart(transition=config.game_main_transition)
else:
return
Because, if the user plays a bit, then go back to main menu (it will autosave properly) and then quit, it will still autosave since the in_title will be True. (Unless you have a way of changing it already, so disregard this).