[SOLVED] In-game QuickSave action

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
erencross
Newbie
Posts: 4
Joined: Sat Jul 07, 2018 8:39 pm
Deviantart: erencross
Contact:

[SOLVED] In-game QuickSave action

#1 Post by erencross »

Hi guys ~ sorry for possible language errors
I want to 'quick save' my game when the player go on in a specific part/label; how can I do it?
I try to use "$ QuickSave ()" before the label ends, but don't work!!
Last edited by erencross on Wed Oct 17, 2018 11:57 pm, edited 1 time in total.

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: In-game QuickSave action

#2 Post by Per K Grok »

erencross wrote: Sat Jul 07, 2018 8:44 pm Hi guys ~ sorry for possible language errors
I want to 'quick save' my game when the player go on in a specific part/label; how can I do it?
I try to use "$ QuickSave ()" before the label ends, but don't work!!
The quicksave command is only for actions from screens I believe.

You could do an automatic save in-game like this

Code: Select all

$ renpy.screenshot("scr1")
$ renpy.save("savepoint1")
$ renpy.notify("Automatic save made")
Notify is not necessary to make the save, but you might want to inform the player about the save.

I'm sure this could be done more sophisticated, but it is at least a start :)

User avatar
erencross
Newbie
Posts: 4
Joined: Sat Jul 07, 2018 8:39 pm
Deviantart: erencross
Contact:

Re: In-game QuickSave action

#3 Post by erencross »

Ohh, thanksssssss!!!! :)
Last question...
I need to load this file ("savepoint1") in a screen. How can I do it?
I cognize the code "FileLoad()", but this code its associated with a slot; how can I find the slot name/number?

User avatar
Per K Grok
Miko-Class Veteran
Posts: 882
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls, Defenders of Adacan Part 1-3, the Phantom Flyer
itch: per-k-grok
Location: Sverige
Contact:

Re: In-game QuickSave action

#4 Post by Per K Grok »

erencross wrote: Tue Jul 10, 2018 9:13 pm Ohh, thanksssssss!!!! :)
Last question...
I need to load this file ("savepoint1") in a screen. How can I do it?
I cognize the code "FileLoad()", but this code its associated with a slot; how can I find the slot name/number?
You could try
$ renpy.load("savepoint1")

User avatar
erencross
Newbie
Posts: 4
Joined: Sat Jul 07, 2018 8:39 pm
Deviantart: erencross
Contact:

Re: [SOLVED] In-game QuickSave action

#5 Post by erencross »

Really tks, Per!
This solved my problem.

Post Reply

Who is online

Users browsing this forum: No registered users