Hi! I started programmning my first Ren'Py game and now I'm struggling with the save/load state function.
I want something like this in my game (is this even possible?):
Further I want that my game has an autosave function so there wont be a save, load and menu button in-game. I'm working with choices and different endings, so once you've decided to for example either pick the blue or the red pill you can't jump back, you play the game until the end.
I don't know if someone already solved this problem and I didn't find any topic to this.
I'd be grateful for every help, thank you! -AP
Timeline Save States
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.
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.
- Milkymalk
- Miko-Class Veteran
- Posts: 753
- Joined: Wed Nov 23, 2011 5:30 pm
- Completed: Don't Look (AGS game)
- Projects: KANPEKI! ★Perfect Play★
- Organization: Crappy White Wings
- Location: Germany
- Contact:
Re: Timeline Save States
I see what you are going for. You want each decision be final and to have impact, and to make the player think about what he wants to choose.
That's not really a problem. Remove all keybindings and buttons that bring up the load/save screen and set this as True:This saves whenever the player quits, closes the game or exits to the main menu.
Note that this will not help you as it saves BEFORE a choice:
After each choice, block rollback using this:
And "manually" save using:
https://www.renpy.org/doc/html/save_loa ... renpy.save
Though I'm not sure how you can force the function to save over an autosave.
Then replace the "Load Game" button in the main menu with "Continue" and make it so that it loads your one save.
That's not really a problem. Remove all keybindings and buttons that bring up the load/save screen and set this as True:
Code: Select all
define config.has_autosave = True
define config.autosave_on_quit = True
define config.autosave_slots = 1
Note that this will not help you as it saves BEFORE a choice:
Code: Select all
define config.autosave_on_choice = True
Code: Select all
$ renpy.block_rollback()
https://www.renpy.org/doc/html/save_loa ... renpy.save
Though I'm not sure how you can force the function to save over an autosave.
Then replace the "Load Game" button in the main menu with "Continue" and make it so that it loads your one save.
Crappy White Wings (currently quite inactive)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Working on: KANPEKI!
(On Hold: New Eden, Imperial Sea, Pure Light)
Who is online
Users browsing this forum: Ahrefs [Bot]