Can't delete saves on custom save/load screen

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
gogospirit
Newbie
Posts: 16
Joined: Sun Mar 03, 2013 5:58 pm
Contact:

Can't delete saves on custom save/load screen

#1 Post by gogospirit » Mon Mar 18, 2013 11:44 am

For some reason, when I inputted my custom save/load screen, the feature to delete saves by using the delete key on the keyboard no longer works and the saves don't disappear by deleting the persistent data either.
I tried everything I could to fix this issue, but to no avail, so I decided I'd make a forum post regarding this issue as I'm clearly missing something...

Here's my code: (I've also tried to put the key "save_delete" action FileDelete(number) under the screen_file_picker but it didn't make any difference.)

Code: Select all

screen load_save_slot:
    $ file_text = "{size=+4}{i}%s{/i}{/size}\n%s: %s" % (
                        FileSaveName(number),
                        FileSlotName(number, 4),
                        FileTime(number, format='%B %d, %Y \n    (%I:%M%p)', empty=_("Empty Slot."))
                        )

    add FileScreenshot(number) xpos 15 ypos 8
    text file_text xpos 20 ypos 105 size 18 color "#ffffff"
    
    key "save_delete" action FileDelete(number)
    
screen file_picker:
    key "m" action MainMenu(confirm=True)
    key "p" action ShowMenu("preferences")
    key "K_ESCAPE" action Return()
    
    imagemap:
            ground "lc_saveloadscreen_ground.png"
            idle "lc_saveloadscreen_idle.png"
            hover "lc_saveloadscreen_hover.png"
            selected_idle "lc_saveloadscreen_idle.png"

            hotspot (550, 23, 41, 55) clicked FilePage(1)
            hotspot (594, 23, 46, 55) clicked FilePage(2)
            hotspot (643, 23, 41, 55) clicked FilePage(3)
            hotspot (688, 23, 39, 55) clicked FilePage(4)
            hotspot (732, 23, 41, 55) clicked FilePage(5)
            hotspot (777, 23, 42, 55) clicked FilePage(6)
            hotspot (823, 23, 41, 55) clicked FilePage(7)
            hotspot (869, 23, 39, 55) clicked FilePage(8)
            hotspot (909, 23, 40, 55) clicked FilePage(9)
            hotspot (952, 23, 60, 55) clicked FilePage(10)

            hotspot (123, 158, 328, 202) clicked FileAction(1):
                use load_save_slot(number=1)
            hotspot (567, 158, 328, 201) clicked FileAction(2):
                use load_save_slot(number=2)
            hotspot (123, 421, 329, 200) clicked FileAction(3):
                use load_save_slot(number=3)
            hotspot (567, 420, 329, 202) clicked FileAction(4):
                use load_save_slot(number=4)
                
            hotspot (628, 659, 89, 62) action Quit()
            hotspot (478, 659, 107, 62) action MainMenu()
            hotspot (300, 660, 130, 61) action Return()

screen save:
    key "s" action Return()
    # This ensures that any other menu screen is replaced.
    tag menu

    use file_picker
    add "lc_savegame.png"

screen load:
    key "l" action Return()
    # This ensures that any other menu screen is replaced.
    tag menu

    use file_picker
    add "lc_loadgame.png"         
I would like to be able to delete saves by clicking delete on the keyboard, so if you have any insights on this, help would be greatly appreciated.

User avatar
mjshi
Regular
Posts: 179
Joined: Wed Mar 13, 2013 9:55 pm
Completed: MazeSite01, Ponderings of Time
Contact:

Re: Can't delete saves on custom save/load screen

#2 Post by mjshi » Sun Mar 24, 2013 10:25 pm

PyTom wrote:The saves are stored on your computer, and not included in the distribution. They won't be there when someone else unzips the file.
http://lemmasoft.renai.us/forums/viewto ... 71#p258372

If you need to delete a save on your computer for some reason other than distributing a game, there are two places you need to check.
  • 1. Your %appdata% folder (tested)
    • Windows 7
      a. Hit microsoft logo key + r to call up the run task application.
      b. Type in "%appdata%" without quotes.
      c. Scroll down and find folder titled "RenPy".
      d. Open, find the folder with the game's name on it (Ex. game is Lemma Ten, folder is "Lemma Ten-1356722170")
      e. delete the desired *.save files.

      Windows (other than Windows 7)
      a. Get the Run application running, from Start> All programs> Accessories> Run
      b. Follow steps b-d on Windows 7.
      Method 2
      a. Open Task Manager (usually, CTRL+ALT+DEL)
      b. Click "New Task"
      c. Follow steps b-d on Windows 7.

      Other platforms
      a. Somehow get the Run application running, or navigate to C:\Users\[user name]\AppData\Roaming or similar (are Macs styled like Windows?)
      b. Follow steps b-d on Windows 7
    2. The game directory itself (not tested, "back up" files before trying)
    • a. Go to the game directory (ex. C:\Users\[user name]\Desktop\A Ren'py Game)
      b. Open the "game" folder
      c. Open the "saves" folder
      d. Delete accordingly.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]