Ren'Py Save and Load pages

Jul 16, 2018
101
49
Hi everyone, I have a problem with coding. I am using imagemap for the GUI. And now I don’t know how to label pages in Save and Load. I mean auto, quick, 1, 2, 3 etc pages. Like If I need to open preferences then I write hotspot(something) action ShowMenu('preferences'), what do I need to write for pages?
The second problem is that when I save then the frame from the game is not displayed on save or load slot. It just shows the background that I set. Just a white square. I tried a transparent background then there’s just nothing but saving works.

Here is a sample code:

Code:
screen save:
    tag menu
    imagemap:
        ground 'something'
        idle 'something'
        hover 'something'
        hotspot(-1, -1, -1, -1) action FilePage('auto')
        hotspot(something) action Start('start')
        hotspot(something) action ShowMenu('preferences')
        hotspot(something) action ShowMenu('load')
        hotspot(something) action FileAction(0):
            use load_save_slot(number=0)
screen load:
    tag menu
    imagemap:
        ground 'something'
        idle 'something'
        hover 'something'
        hotspot(-1, -1, -1, -1) action FilePage('auto')
        hotspot(something) action Start('start')
        hotspot(something) action ShowMenu('preferences')
        hotspot(something) action ShowMenu('load')
        hotspot(something) action FileAction(0):
            use load_save_slot(number=0)   
screen load_save_slot
This is not the final code, but it basically shows all the aspects that are needed. And to be honest, I have no idea what "hotspot(-1, -1, -1, -1) action FilePage('auto')" does.
 

anne O'nymous

I'm not grumpy, I'm just coded that way.
Modder
Donor
Respected User
Jun 10, 2017
10,969
16,222
[Quoting OP being actually broken, sorry for the strange looking answer]

what do I need to write for pages?
hotspot(something) action FilePage(Number_Of_The_Page)


The second problem is that when I save then the frame from the game is not displayed on save or load slot. It just shows the background that I set. Just a white square. I tried a transparent background then there’s just nothing but saving works.
Probably because Ren'py do not understood that it was on the save page. But I can be wrong on this one.


And to be honest, I have no idea what "hotspot(-1, -1, -1, -1) action FilePage('auto')" does.
It open the "auto save" page. And FilePage("quick") open the "quick save" page.
 
  • Heart
Reactions: Conniver's Kunai
Jul 16, 2018
101
49
[Quoting OP being actually broken, sorry for the strange looking answer]



hotspot(something) action FilePage(Number_Of_The_Page)




Probably because Ren'py do not understood that it was on the save page. But I can be wrong on this one.




It open the "auto save" page. And FilePage("quick") open the "quick save" page.
Thank you a lot! I will try this