Quicksave saves in wrong slot order
Posted: Wed Dec 27, 2017 7:31 pm
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.

Any idea what might have gone wrong? Thanks
(I used this Imagebutton GUI Framework)

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_menuCode: 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