[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 » 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!!
Last edited by erencross on Wed Oct 17, 2018 11:57 pm, edited 1 time in total.

User avatar
Per K Grok
Regular
Posts: 174
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls
Projects: Defenders of Adacan
Deviantart: pekj
itch: per-k-grok
Location: Sverige
Contact:

Re: In-game QuickSave action

#2 Post by Per K Grok » Sun Jul 08, 2018 5:10 am

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 :)
Image Visual Story Telling, DeviantArt Group for animations, comics, games and illustrations https://www.deviantart.com/acgi

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 » 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?

User avatar
Per K Grok
Regular
Posts: 174
Joined: Fri May 18, 2018 1:02 am
Completed: the Ghost Pilot, Sea of Lost Ships, Bubbles and the Pterodactyls
Projects: Defenders of Adacan
Deviantart: pekj
itch: per-k-grok
Location: Sverige
Contact:

Re: In-game QuickSave action

#4 Post by Per K Grok » Wed Jul 11, 2018 8:08 am

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")
Image Visual Story Telling, DeviantArt Group for animations, comics, games and illustrations https://www.deviantart.com/acgi

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 » Thu Oct 18, 2018 12:02 am

Really tks, Per!
This solved my problem.

Post Reply

Who is online

Users browsing this forum: No registered users