Quicksave saves in wrong slot order

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
Smaymay
Regular
Posts: 70
Joined: Fri Jul 01, 2016 11:35 am
Completed: Vicboys demo
Tumblr: esmmeh
Deviantart: Smaymay
Location: The Netherlands
Contact:

Quicksave saves in wrong slot order

#1 Post by Smaymay »

Hi! I got this problem with my Quicksave page. Whenever the game makes a Quicksave it saves the game in a completely different order. You would expect your first Quick save to appear in the first save slot. Well... Mine appears in the bottom left one. It somehow never uses the first slot. Haha.
Image
Any idea what might have gone wrong? Thanks :)
(I used this Imagebutton GUI Framework)

Code: Select all

#______   SAVE/LOAD FILE SLOTS   ________________________________________

init -2 python:
    x=0
    y=0
screen load_save_slot:
    $ name_text = "%s" % (FileSaveName(number, empty="Empty saveslot"))
    $ time_text = "% s\n" % (FileTime(number, empty=""))
    $x1=x+9                     
    $y1=y+8                     
    add FileScreenshot(number) xpos x1 ypos y1

    $x2=x+58                   
    $y2=y+168                   
    $x3=x+65                    
    $y3=y+180                   

# Save slot file text customization
    text name_text xpos x2 ypos y2 size 14 color "#abc4d2" kerning 2 font "fonts/name_font.otf"
    text time_text xpos x3 ypos y3 size 12 color "#abc4d2" kerning 2 font "fonts/name_font.otf"

Code: Select all

#______     SAVE SCREEN     _____________________________________________

screen save:
    tag menu
    add "images/GUI/saveload/savescreen_background.png"
    use file_picker
    use navigation_menu

#______     LOAD SCREEN     _____________________________________________

screen load:
    tag menu
    add "images/GUI/saveload/loadscreen_background.png"
    use file_picker
    use navigation_menu

Code: Select all

#______     SAVE/LOAD FILE PICKER     ___________________________________

screen file_picker:
    tag menu

    #FILE PAGES BUTTONS
    imagebutton:
        auto "images/GUI/saveload/filepage_1_%s.png"
        xpos 323 ypos 714 focus_mask None
        action FilePage(1)
        hovered [ Play ("Soundeffect_1", "audio/soundeffects/menu_hover.wav") ]
    imagebutton:
        auto "images/GUI/saveload/filepage_2_%s.png"
        xpos 387 ypos 714 focus_mask None
        action FilePage(2)
        hovered [ Play ("Soundeffect_2", "audio/soundeffects/menu_hover.wav") ]
    imagebutton:
        auto "images/GUI/saveload/filepage_3_%s.png"
        xpos 454 ypos 714 focus_mask None
        action FilePage(3)
        hovered [ Play ("Soundeffect_3", "audio/soundeffects/menu_hover.wav") ]
    imagebutton:
        auto "images/GUI/saveload/filepage_4_%s.png"
        xpos 520 ypos 714 focus_mask None
        action FilePage(4)
        hovered [ Play ("Soundeffect_4", "audio/soundeffects/menu_hover.wav") ]

    #QUICK SAVES BUTTON
    imagebutton:
        auto "images/GUI/saveload/quicksaves_filepage_%s.png"
        xpos 349 ypos 515 focus_mask True
        action FilePage("quick")
        hovered [ Play ("Soundeffect_2", "audio/soundeffects/menu_hover.wav") ]

#SAVE SLOTS
    $ x=709                    
    for j in range(0, 3):       
        $ y = 346              

        for k in range(0,2):    
            $ i = j*2+k         

            button:
                xysize (286, 207)
                xpos x ypos y focus_mask True
                background "images/GUI/saveload/saveslot_idle.png"
                hover_background "images/GUI/saveload/saveslot_hover.png"
                selected_idle_background "images/GUI/saveload/saveslot_selected_idle.png"
                selected_hover_background "images/GUI/saveload/saveslot_selected_hover.png"
                action FileAction(i)
                hovered [ Play ("Soundeffect_2", "audio/soundeffects/menu_hover.wav") ]
                key "save_delete" action FileDelete(i)

            use load_save_slot(number=i, x=x, y=y)      

            $ y+=234                                   
        $ x += 343                                     

init -2 python:
    config.thumbnail_width = 267                        
    config.thumbnail_height = 148   
Last edited by Smaymay on Thu Jan 31, 2019 5:32 am, edited 2 times in total.

User avatar
Smaymay
Regular
Posts: 70
Joined: Fri Jul 01, 2016 11:35 am
Completed: Vicboys demo
Tumblr: esmmeh
Deviantart: Smaymay
Location: The Netherlands
Contact:

Re: 'Quicksave' saves in wrong slot order

#2 Post by Smaymay »

I wonder if the player will be bothered by it if I don't end up fixing this bug. It's a weird problem that's for sure.

User avatar
Smaymay
Regular
Posts: 70
Joined: Fri Jul 01, 2016 11:35 am
Completed: Vicboys demo
Tumblr: esmmeh
Deviantart: Smaymay
Location: The Netherlands
Contact:

Re: Quicksave saves in wrong slot order

#3 Post by Smaymay »

UPDATE
So I kinda forgot about this bug... It's still a problem actually. Maybe now someone knows what I did wrong? :o

Post Reply

Who is online

Users browsing this forum: Bing [Bot]