[Solved] Showing Quicksave Data on Quick FilePage

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
inahochama
Regular
Posts: 39
Joined: Tue Dec 15, 2009 12:38 am
Contact:

[Solved] Showing Quicksave Data on Quick FilePage

#1 Post by inahochama »

I really, really need to fix this so I can finally proceed to beta test my game. I have quick-save and quick-load in-game-menu buttons and they both work just fine. The only problem is the quicksave data don't show up on the Auto FilePage of the Save/Load Screens.

Here's the QSave & QLoad in-game-buttons code.

Code: Select all

textbutton "Q.Save" clicked [renpy.curried_call_in_new_context("_quick_save")]
textbutton "Q.Load" clicked [renpy.curried_call_in_new_context("_quick_load")]
Here's the QSave & QLoad labels called when buttons are clicked.

Code: Select all

label _quick_save:

    # Saves the game.
    $ renpy.save('quicksave', _('Quick Save'))
    return

# This is called when the quick load button is clicked, to load the
# game.
label _quick_load:
    $ renpy.load('quicksave')
    return
Isn't Auto FilePage the section where quicksave files can be found, or do I have to make a separate section to show the qucksaved files? I've been trying to figure this out for days. Would really appreciate some help on it.
Last edited by inahochama on Wed May 18, 2011 5:31 am, edited 1 time in total.

User avatar
Chu-3
Veteran
Posts: 424
Joined: Fri Oct 01, 2010 12:01 am
Completed: CAFE 0~The Drowned Mermaid~,duplicity~Beyond the Lies~, East Tower Series,How to Take Off Your Mask,CAFE 0 ~The Sleeping Beast~, How to Fool a Liar King
Projects: How to Fool a Liar King
Organization: roseVeRte
Tumblr: roseverte
itch: roseverte
Contact:

Re: Problem Showing Quicksave Data on Auto FilePage

#2 Post by Chu-3 »

auto save and quick save is different. auto save is made automaticly after some interacts you've done while playing the game.

add

Code: Select all

init -1 python hide:
    config.has_quicksave = True  
then use the screen language:

Code: Select all

screen save:

    # This ensures that any other menu screen is replaced.
    tag menu

    use navigation

    frame:
        has vbox

        # The buttons at the top allow the user to pick a
        # page of files.
        hbox:
            textbutton _("Previous") action FilePagePrevious()
            textbutton _("Quick") action FilePage("quick")#change here

            for i in range(1, 9):
                textbutton str(i) action FilePage(i)

            textbutton _("Next") action FilePageNext()

        # Display a grid of file slots.
        grid 2 5:
            transpose True
            xfill True

            # Display ten file slots, numbered 1 - 10.
            for i in range(1, 11):

                # Each file slot is a button.
                button:
                    action FileAction(i)
                    xfill True
                    style "large_button"

                    has hbox

                    # Add the screenshot and the description to the
                    # button.
                    add FileScreenshot(i)
                    text ( " %2d. " % i
                           + FileTime(i, empty=_("Empty Slot."))
                           + "\n"
                           + FileSaveName(i)) style "large_button_text"
hope that helps...

User avatar
inahochama
Regular
Posts: 39
Joined: Tue Dec 15, 2009 12:38 am
Contact:

Re: Problem Showing Quicksave Data on Auto FilePage

#3 Post by inahochama »

Thanks! Gonna try the code out and see if it works.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Problem Showing Quicksave Data on Auto FilePage

#4 Post by PyTom »

For the quicksave page to work, the files need to be named "quick-1", "quick-2", etc. IIRC, the "quicksave" filename won't be matched by the pattern used by quicksave, and so won't be loaded.
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
inahochama
Regular
Posts: 39
Joined: Tue Dec 15, 2009 12:38 am
Contact:

Re: Problem Showing Quicksave Data on Auto FilePage

#5 Post by inahochama »

Is there a particular way I can name it as you mentioned above so the files can load properly, or should I just recreate a quicksave screen on its own? I'm very new to screen language so some hints would be great. I really don't want to give up on this feature because it can be quite handy.

EDIT:

Thanks to Chu-3 for this link: http://lemmasoft.renai.us/forums/viewto ... f=8&t=8028

Post Reply

Who is online

Users browsing this forum: No registered users