[SOLVED] QuickLoad() function for last manual saved game

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.
Message
Author
User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

[SOLVED] QuickLoad() function for last manual saved game

#1 Post by Pierrou » Sat Jan 17, 2015 7:44 am

Hi :) (sorry for my english :oops:)

I try to do something like the QuickLoad() but without the quick save menu, because i disabled Q.Save and Q.Load menu. I just want load the last saved game with confirm when player, in game, hit a button or CTRL + B keymap. Is it possible ?

I have a pop-up in game that can be opened by right-clicking :

Code: Select all

screen raccourcis:
    key "mouseup_3" action If(renpy.get_screen("pop_up_raccourcis"), Hide("pop_up_raccourcis"), Show("pop_up_raccourcis"))
    key "K_ESCAPE" action If(renpy.get_screen("pop_up_raccourcis"), Hide("pop_up_raccourcis"), Show("pop_up_raccourcis"))
    
screen pop_up_raccourcis:
    tag menu
    zorder 90

    hbox:
        default mouse_clicked = False
        fixed at KeymapTransform([('mousedown_1', SetScreenVariable('mouse_clicked', True)), ('mouseup_1', SetScreenVariable('mouse_clicked', False))]):
            $ x=540
            imagebutton idle "image/ui/raccourcis/cancel_idle.png" hover ("image/ui/raccourcis/cancel_clicked.png" if mouse_clicked else "image/ui/raccourcis/cancel_hover.png") xpos x ypos 58 focus_mask None action Hide("pop_up_raccourcis")
            imagebutton idle "image/ui/raccourcis/messagenon_idle.png" hover ("image/ui/raccourcis/messagenon_clicked.png" if mouse_clicked else "image/ui/raccourcis/messagenon_hover.png") xpos x ypos 84 focus_mask None action HideInterface()
            imagebutton idle "image/ui/raccourcis/skip_idle.png" hover ("image/ui/raccourcis/skip_clicked.png" if mouse_clicked else "image/ui/raccourcis/skip_hover.png") xpos x ypos 110 focus_mask None action Hide("pop_up_raccourcis")
            imagebutton idle "image/ui/raccourcis/select_idle.png" hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png") xpos x ypos 136 focus_mask None action #LOAD THE LAST SAVE WITH CONFIRM <==== HERE
            imagebutton idle "image/ui/raccourcis/log_idle.png" hover ("image/ui/raccourcis/log_clicked.png" if mouse_clicked else "image/ui/raccourcis/log_hover.png") xpos x ypos 162 focus_mask None action ShowMenu("text_history")
            imagebutton idle "image/ui/raccourcis/save_idle.png" hover ("image/ui/raccourcis/save_clicked.png" if mouse_clicked else "image/ui/raccourcis/save_hover.png") xpos x ypos 188 focus_mask None action ShowMenu('save')
            imagebutton idle "image/ui/raccourcis/load_idle.png" hover ("image/ui/raccourcis/load_clicked.png" if mouse_clicked else "image/ui/raccourcis/load_hover.png") xpos x ypos 214 focus_mask None action ShowMenu('load')
            imagebutton idle "image/ui/raccourcis/fullscreen_idle.png" hover ("image/ui/raccourcis/fullscreen_clicked.png" if mouse_clicked else "image/ui/raccourcis/fullscreen_hover.png") xpos x ypos 240 focus_mask None action renpy.toggle_fullscreen
            imagebutton idle "image/ui/raccourcis/config_idle.png" hover ("image/ui/raccourcis/config_clicked.png" if mouse_clicked else "image/ui/raccourcis/config_hover.png") xpos x ypos 266 focus_mask None action ShowMenu("preferences")
            imagebutton idle "image/ui/raccourcis/title_idle.png" hover ("image/ui/raccourcis/title_clicked.png" if mouse_clicked else "image/ui/raccourcis/title_hover.png") xpos x ypos 292 focus_mask None action ShowMenu("main_menu")
            imagebutton idle "image/ui/raccourcis/fin_idle.png" hover ("image/ui/raccourcis/fin_clicked.png" if mouse_clicked else "image/ui/raccourcis/fin_hover.png") xpos x ypos 318 focus_mask None action Quit(confirm=True)
I've disabled the Q.Save and Q.Load like this :

Code: Select all

screen quick_menu:

    # Ajoute un menu rapide au sein du jeu
    hbox:
        style_group "quick"

        xalign 1.0
        yalign 1.0

        textbutton _("Back") action Rollback()
        textbutton _("Save") action ShowMenu('save')
        #textbutton _("Q.Save") action QuickSave()
        #textbutton _("Q.Load") action QuickLoad()
        textbutton _("Skip") action Skip()
        textbutton _("F.Skip") action Skip(fast=True, confirm=True)
        textbutton _("Auto") action Preference("auto-forward", "toggle")
        textbutton _("Prefs") action ShowMenu('preferences')

How can i load the last save when the player click on the button or press CTRL + B ?

I've found this : http://lemmasoft.renai.us/forums/viewto ... f=8&t=3943 but i don't understand how to apply this code for my menu.


Thank you for help :)
Last edited by Pierrou on Mon Jan 19, 2015 8:58 pm, edited 1 time in total.
Sorry for my english, it's not my native language. :s

User avatar
qirien
Miko-Class Veteran
Posts: 538
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Discord: qirien
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#2 Post by qirien » Sun Jan 18, 2015 5:38 pm

It sounds like you want to have a button that loads the most recent save, as opposed to loading the Quicksave? Here is the code I use for a "Continue" button that loads the player's most recent save:

Code: Select all

    $ recent_save = renpy.newest_slot("[^_]")
    if (recent_save is not None):
        $ recent_save_page, recent_save_name = recent_save.split("-")
        imagebutton idle "image/ui/raccourcis/select_idle.png" hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png") xpos x ypos 136 focus_mask None action FileLoad(recent_save_name, confirm=True, page=recent_save_page)
If you really just want to load the quicksave, you can use:

Code: Select all

action QuickLoad()
Finished games:
Image
Image
Image

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#3 Post by Pierrou » Sun Jan 18, 2015 7:59 pm

qirien wrote:It sounds like you want to have a button that loads the most recent save, as opposed to loading the Quicksave? Here is the code I use for a "Continue" button that loads the player's most recent save:

Code: Select all

    $ recent_save = renpy.newest_slot("[^_]")
    if (recent_save is not None):
        $ recent_save_page, recent_save_name = recent_save.split("-")
        imagebutton idle "image/ui/raccourcis/select_idle.png" hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png") xpos x ypos 136 focus_mask None action FileLoad(recent_save_name, confirm=True, page=recent_save_page)
Yes it's something like this ! Thank you to answer me (and sorry if it's hard to understand me :()

I tried to use this code like this :

Code: Select all

screen raccourcis:
    key "mouseup_3" action If(renpy.get_screen("pop_up_raccourcis"), Hide("pop_up_raccourcis"), Show("pop_up_raccourcis"))
    key "K_ESCAPE" action If(renpy.get_screen("pop_up_raccourcis"), Hide("pop_up_raccourcis"), Show("pop_up_raccourcis"))
    
screen pop_up_raccourcis:
    tag menu
    zorder 90


    hbox:
        default mouse_clicked = False
        fixed at KeymapTransform([('mousedown_1', SetScreenVariable('mouse_clicked', True)), ('mouseup_1', SetScreenVariable('mouse_clicked', False))]):
            $ x=540
            $ recent_save = renpy.newest_slot("[^_]")
            if (recent_save is not None):
                $ recent_save_page, recent_save_name = recent_save.split("-")
                imagebutton idle "image/ui/raccourcis/select_idle.png" hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png") xpos x ypos 136 focus_mask None action FileLoad(recent_save_name, confirm=True, page=recent_save_page)
            imagebutton idle "image/ui/raccourcis/cancel_idle.png" hover ("image/ui/raccourcis/cancel_clicked.png" if mouse_clicked else "image/ui/raccourcis/cancel_hover.png") xpos x ypos 58 focus_mask None action Hide("pop_up_raccourcis")
            imagebutton idle "image/ui/raccourcis/messagenon_idle.png" hover ("image/ui/raccourcis/messagenon_clicked.png" if mouse_clicked else "image/ui/raccourcis/messagenon_hover.png") xpos x ypos 84 focus_mask None action [Hide("pop_up_raccourcis"), HideInterface()]
            imagebutton idle "image/ui/raccourcis/skip_idle.png" hover ("image/ui/raccourcis/skip_clicked.png" if mouse_clicked else "image/ui/raccourcis/skip_hover.png") xpos x ypos 110 focus_mask None action Hide("pop_up_raccourcis")
            imagebutton idle "image/ui/raccourcis/select_idle.png" hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png") xpos x ypos 136 focus_mask None action Hide("pop_up_raccourcis")
            imagebutton idle "image/ui/raccourcis/log_idle.png" hover ("image/ui/raccourcis/log_clicked.png" if mouse_clicked else "image/ui/raccourcis/log_hover.png") xpos x ypos 162 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu("text_history")]
            imagebutton idle "image/ui/raccourcis/save_idle.png" hover ("image/ui/raccourcis/save_clicked.png" if mouse_clicked else "image/ui/raccourcis/save_hover.png") xpos x ypos 188 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu('save')]
            imagebutton idle "image/ui/raccourcis/load_idle.png" hover ("image/ui/raccourcis/load_clicked.png" if mouse_clicked else "image/ui/raccourcis/load_hover.png") xpos x ypos 214 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu('load')]
            imagebutton idle "image/ui/raccourcis/fullscreen_idle.png" hover ("image/ui/raccourcis/fullscreen_clicked.png" if mouse_clicked else "image/ui/raccourcis/fullscreen_hover.png") xpos x ypos 240 focus_mask None action [Hide("pop_up_raccourcis"), renpy.toggle_fullscreen]
            imagebutton idle "image/ui/raccourcis/config_idle.png" hover ("image/ui/raccourcis/config_clicked.png" if mouse_clicked else "image/ui/raccourcis/config_hover.png") xpos x ypos 266 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu("preferences")]
            imagebutton idle "image/ui/raccourcis/title_idle.png" hover ("image/ui/raccourcis/title_clicked.png" if mouse_clicked else "image/ui/raccourcis/title_hover.png") xpos x ypos 292 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu("main_menu")]
            imagebutton idle "image/ui/raccourcis/fin_idle.png" hover ("image/ui/raccourcis/fin_clicked.png" if mouse_clicked else "image/ui/raccourcis/fin_hover.png") xpos x ypos 318 focus_mask None action [Hide("pop_up_raccourcis"), Quit(confirm=True)]

But i don't see the button in the right-click menu :/ I don't have any error i just don't see the button... Don't understand why :/ I've 3 saved game.
Sorry for my english, it's not my native language. :s

User avatar
qirien
Miko-Class Veteran
Posts: 538
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Discord: qirien
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#4 Post by qirien » Sun Jan 18, 2015 8:02 pm

Hmmm, I'm not sure. Maybe add a debugging statement to see if it has found your saved games:

Code: Select all

$ recent_save = renpy.newest_slot("[^_]")
text recent_save #This should print the save name that it found.
Finished games:
Image
Image
Image

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#5 Post by xela » Sun Jan 18, 2015 8:25 pm

You have another button at the same coordinates, it's likely that it is simply rendered above the loading button.

"[^_]" <-- Not entirely sure what this is, but it doesn't look like it's messing you up.

*Do note that this will also load auto-saves, not just usersaves.

Code: Select all

hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png")
This is weird code, Ren'Py has it's own tracking system for focused/selected buttons.
Like what we're doing? Support us at:
Image

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#6 Post by Pierrou » Sun Jan 18, 2015 10:06 pm

qirien wrote:Hmmm, I'm not sure. Maybe add a debugging statement to see if it has found your saved games:

Code: Select all

$ recent_save = renpy.newest_slot("[^_]")
text recent_save #This should print the save name that it found.
It shows "auto-1". It doesn't find the save but the autosave but i think it works... I tried to save my game and i used this button and it works fine i think... But i don't know if it was an autosave or the usersave :/

xela wrote:*Do note that this will also load auto-saves, not just usersaves.
Hum... How can i just load the last usersave then ? :oops:

xela wrote:

Code: Select all

hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png")

This is weird code, Ren'Py has it's own tracking system for focused/selected buttons.
Really ? I didn't found how to manage the "clicked" option. Right now i try to use the clicked option for the choice menu but it doesn't work.
Sorry for my english, it's not my native language. :s

User avatar
qirien
Miko-Class Veteran
Posts: 538
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Discord: qirien
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#7 Post by qirien » Sun Jan 18, 2015 11:55 pm

If you just want manual saves, you can use:

Code: Select all

$ recent_save = renpy.newest_slot(r"\d+")
The argument to newest_slot is a regexp of save names to match. So this one will match ones that have just numbers, and not "auto" or "quick".
Finished games:
Image
Image
Image

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#8 Post by Pierrou » Mon Jan 19, 2015 1:07 am

It works fine ! Thank you so much for this help <3
Sorry for my english, it's not my native language. :s

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#9 Post by Pierrou » Mon Jan 19, 2015 2:19 am

Oops :3 I answer too fast ^^°

I've 2 bugs :

1) I tried to add a "lock button" when there's no manual saves

Code: Select all

            $ recent_save = renpy.newest_slot(r"\d+")
            if (recent_save is not None):
                $ recent_save_page, recent_save_name = recent_save.split("-")
                imagebutton idle "image/ui/raccourcis/select_idle.png" hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png") xpos x ypos 136 focus_mask None action [Hide("pop_up_raccourcis"), FileLoad(recent_save_name, confirm=True, page=recent_save_page)]
            else:
                imagebutton idle "image/ui/raccourcis/select_lock.png" xpos x ypos 58
Is that ok ?

2) When there's no manual save, i've an error when i try to open my right-click menu :
I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script/ta0101.rpy", line 6, in script
sgw "Ouais je sais, j'ai enlevé Shiki. {w}Je commencais à en avoir marre de sa tronche"
File "game/screens.rpy", line 1034, in execute
screen pop_up_raccourcis:
File "game/screens.rpy", line 1039, in execute
hbox:
File "game/screens.rpy", line 1041, in execute
fixed at KeymapTransform([('mousedown_1', SetScreenVariable('mouse_clicked', True)), ('mouseup_1', SetScreenVariable('mouse_clicked', False))]):
File "game/screens.rpy", line 1044, in execute
if (recent_save is not None):
File "game/screens.rpy", line 1048, in execute
imagebutton idle "image/ui/raccourcis/select_lock.png" xpos x ypos 58
Exception: Not a displayable: None
What's this ? :s I think it's due to if (recent_save is not None): but I don't understand this error :s


Thank you for your help :oops:
Sorry for my english, it's not my native language. :s

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#10 Post by xela » Mon Jan 19, 2015 3:45 am

You should really figure out how buttons work before working with this.

Otherwise the error lights up because you didn't specify hover image for your imagebutton. Either add that or use If() action for the normal button.
Like what we're doing? Support us at:
Image

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#11 Post by Pierrou » Mon Jan 19, 2015 11:29 am

I know that imagebutton are like that :

Code: Select all

imagebutton auto "image/ui/save_%s.png" xpos x ypos 136 focus_mask None action ShowMenu('save')
But you should really figure out that this code can't show the "clicked" option :

idle
hover
ground
selected_idle
selected_hover

There's is no "on click".
Sorry for my english, it's not my native language. :s

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#12 Post by xela » Mon Jan 19, 2015 2:55 pm

I had to look up the KeymapTransform on the forum :) You're right, there is no such behavior in default Ren'Py.
Like what we're doing? Support us at:
Image

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#13 Post by Pierrou » Mon Jan 19, 2015 5:15 pm

xela wrote:You should really figure out how buttons work before working with this.

Otherwise the error lights up because you didn't specify hover image for your imagebutton. Either add that or use If() action for the normal button.
Asceai gave us this code a while back that made it possible to use the variable called "clicked" when left-click is pressed, but not release like when you drag something with your mouse.

Code: Select all

imagebutton idle "menu/main/start_idle.png" hover ("menu/main/start_clicked.png" if mouse_clicked else "menu/main/start_hover.png") xpos 80 ypos y focus_mask True action Start()
The hover image is specified at "else". It may seem crazy to go at such lenght just for such a minor aditional effect, but it's for the Ren'py port of a Japanese game, so we want it to be as close as possible to the original one.


==

Anyway, i always have the problem with the code :/ When there's no save, I can't open my right-click menu.
Sorry for my english, it's not my native language. :s

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#14 Post by xela » Mon Jan 19, 2015 5:23 pm

You prolly got the indentation wrong somewhere. Can you post the new code?
Like what we're doing? Support us at:
Image

User avatar
Pierrou
Regular
Posts: 53
Joined: Fri Dec 05, 2014 8:25 pm
Projects: Togainu no Chi, DMMD, Omerta, ...
Skype: pierrouney
Location: France
Contact:

Re: Different QuickLoad() function ? (for last saved game)

#15 Post by Pierrou » Mon Jan 19, 2015 5:41 pm

Of course :)

Code: Select all

screen raccourcis:
    key "mouseup_3" action If(renpy.get_screen("pop_up_raccourcis"), Hide("pop_up_raccourcis"), Show("pop_up_raccourcis"))

screen pop_up_raccourcis:
    tag menu
    zorder 90


    hbox:
        default mouse_clicked = False
        fixed at KeymapTransform([('mousedown_1', SetScreenVariable('mouse_clicked', True)), ('mouseup_1', SetScreenVariable('mouse_clicked', False))]):
            $ x=540
            $ recent_save = renpy.newest_slot(r"\d+")
            if (recent_save is not None):
                $ recent_save_page, recent_save_name = recent_save.split("-")
                imagebutton idle "image/ui/raccourcis/select_idle.png" hover ("image/ui/raccourcis/select_clicked.png" if mouse_clicked else "image/ui/raccourcis/select_hover.png") xpos x ypos 136 focus_mask None action [Hide("pop_up_raccourcis"), FileLoad(recent_save_name, confirm=True, page=recent_save_page)]
            else:
                imagebutton idle "image/ui/raccourcis/select_lock.png" xpos x ypos 58
            imagebutton idle "image/ui/raccourcis/cancel_idle.png" hover ("image/ui/raccourcis/cancel_clicked.png" if mouse_clicked else "image/ui/raccourcis/cancel_hover.png") xpos x ypos 58 focus_mask None action Hide("pop_up_raccourcis")
            imagebutton idle "image/ui/raccourcis/messagenon_idle.png" hover ("image/ui/raccourcis/messagenon_clicked.png" if mouse_clicked else "image/ui/raccourcis/messagenon_hover.png") xpos x ypos 84 focus_mask None action [Hide("pop_up_raccourcis"), HideInterface()]
            imagebutton idle "image/ui/raccourcis/skip_idle.png" hover ("image/ui/raccourcis/skip_clicked.png" if mouse_clicked else "image/ui/raccourcis/skip_hover.png") xpos x ypos 110 focus_mask None action [Hide("pop_up_raccourcis"), Skip(confirm=True)]
            imagebutton idle "image/ui/raccourcis/log_idle.png" hover ("image/ui/raccourcis/log_clicked.png" if mouse_clicked else "image/ui/raccourcis/log_hover.png") xpos x ypos 162 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu("text_history")]
            imagebutton idle "image/ui/raccourcis/save_idle.png" hover ("image/ui/raccourcis/save_clicked.png" if mouse_clicked else "image/ui/raccourcis/save_hover.png") xpos x ypos 188 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu('save')]
            imagebutton idle "image/ui/raccourcis/load_idle.png" hover ("image/ui/raccourcis/load_clicked.png" if mouse_clicked else "image/ui/raccourcis/load_hover.png") xpos x ypos 214 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu('load')]
            imagebutton idle "image/ui/raccourcis/fullscreen_idle.png" hover ("image/ui/raccourcis/fullscreen_clicked.png" if mouse_clicked else "image/ui/raccourcis/fullscreen_hover.png") xpos x ypos 240 focus_mask None action [Hide("pop_up_raccourcis"), renpy.toggle_fullscreen]
            imagebutton idle "image/ui/raccourcis/config_idle.png" hover ("image/ui/raccourcis/config_clicked.png" if mouse_clicked else "image/ui/raccourcis/config_hover.png") xpos x ypos 266 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu("preferences")]
            imagebutton idle "image/ui/raccourcis/title_idle.png" hover ("image/ui/raccourcis/title_clicked.png" if mouse_clicked else "image/ui/raccourcis/title_hover.png") xpos x ypos 292 focus_mask None action [Hide("pop_up_raccourcis"), ShowMenu("main_menu")]
            imagebutton idle "image/ui/raccourcis/fin_idle.png" hover ("image/ui/raccourcis/fin_clicked.png" if mouse_clicked else "image/ui/raccourcis/fin_hover.png") xpos x ypos 318 focus_mask None action [Hide("pop_up_raccourcis"), Quit(confirm=True)]
As i said, it's only when there's no save. When i delete all my saves i can't open anymore the right-click :/ But when i have a save, it works fine :)

EDIT : The error :
Error wrote:I'm sorry, but an uncaught exception occurred.

While running game code:
File "game/script/ta0101.rpy", line 6, in script
sgw "Ouais je sais, j'ai enlevé Shiki. {w}Je commencais à en avoir marre de sa tronche"
File "game/screens.rpy", line 1034, in execute
screen pop_up_raccourcis:
File "game/screens.rpy", line 1039, in execute
hbox:
File "game/screens.rpy", line 1041, in execute
fixed at KeymapTransform([('mousedown_1', SetScreenVariable('mouse_clicked', True)), ('mouseup_1', SetScreenVariable('mouse_clicked', False))]):
File "game/screens.rpy", line 1044, in execute
if (recent_save is not None):
File "game/screens.rpy", line 1048, in execute
imagebutton idle "image/ui/raccourcis/select_lock.png" xpos x ypos 58
Exception: Not a displayable: None
Sorry for my english, it's not my native language. :s

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]