Deleting Save Games

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Deleting Save Games

#1 Post by PyTom »

I finally got around to implementing an interface for deleting save games. Now, a user can just hit delete on a game slot, and Ren'Py will ask them if they want to delete the game.

I also tried implementing a means for people to change the info associated with a game, but eventually gave up. The problem here is that if we allow the user to enter arbitrary strings, then it can really break the way Ren'Py lays out save slots.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

JinzouTamashii
Eileen-Class Veteran
Posts: 1686
Joined: Mon Sep 21, 2009 8:03 pm
Projects: E-mail me if you wanna rock the planet
Location: USA
Contact:

Re: Deleting Save Games

#2 Post by JinzouTamashii »

Great. Even though there's a long page of save slots, it's nice to be tidy.

What will the save delete button be called?
Don't worry, we can get through it together. I didn't forget about you! I just got overwhelmed.
https://cherylitou.wordpress.com

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Deleting Save Games

#3 Post by PyTom »

It's not a button. You just put the mouse over a save slot, and hit the delete key on your keyboard.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
sake-bento
Eileen-Class Veteran
Posts: 1909
Joined: Sat Jan 26, 2008 5:58 pm
Completed: http://sakevisual.com/games.html
Projects: Every Sunrise, Shinsei
Organization: sakevisual
Tumblr: sakevisual
Deviantart: sakevisual
itch: sakevisual
Contact:

Re: Deleting Save Games

#4 Post by sake-bento »

Fantastic. Thank you very much!

JinzouTamashii
Eileen-Class Veteran
Posts: 1686
Joined: Mon Sep 21, 2009 8:03 pm
Projects: E-mail me if you wanna rock the planet
Location: USA
Contact:

Re: Deleting Save Games

#5 Post by JinzouTamashii »

PyTom wrote:It's not a button. You just put the mouse over a save slot, and hit the delete key on your keyboard.
Is that intuitive enough?
Don't worry, we can get through it together. I didn't forget about you! I just got overwhelmed.
https://cherylitou.wordpress.com

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4084
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Deleting Save Games

#6 Post by jack_norton »

PyTom wrote: I also tried implementing a means for people to change the info associated with a game, but eventually gave up. The problem here is that if we allow the user to enter arbitrary strings, then it can really break the way Ren'Py lays out save slots.
Why that? can't you just save the string in an external file?
When I open a save file, I see it's an archive with:

Code: Select all

extra_info (save name)
log (the variables)
screenshot.tga (if you enabled thumbnails)
why is a problem to let the user enter a save name in the extra_info? To be honest, I think isn't really needed, but just curious :)
follow me on Image Image Image
computer games

User avatar
papillon
Arbiter of the Internets
Posts: 4107
Joined: Tue Aug 26, 2003 4:37 am
Completed: lots; see website!
Projects: something mysterious involving yuri, usually
Organization: Hanako Games
Tumblr: hanakogames
Contact:

Re: Deleting Save Games

#7 Post by papillon »

Is that intuitive enough?
a convenient save-deleting method will be very useful for testing and development once we know about it, don't know how oftena ctual playiers ened it...

(don't mind me, four hours sleep.)

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Deleting Save Games

#8 Post by PyTom »

why is a problem to let the user enter a save name in the extra_info? To be honest, I think isn't really needed, but just curious :)
If the user can enter an arbitrary string, then he can enter in a string that's too big for the button, and especially one that's both too big, and doesn't have any breakpoints. This can cause Ren'Py to have to grow the size of a button, which in turn causes us to grow the size of _all_ of the buttons, which could, for example, cause the save buttons to overlap the menu navigation.

Trying to pick an appropriate default is difficult with proportional text, as a fixed number of characters may have a wildly varying length. If the user typed MMMM... we could only support 18 characters, while if the user gave us iiiiii we can support about three times that.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
jack_norton
Lemma-Class Veteran
Posts: 4084
Joined: Mon Jul 21, 2008 5:41 pm
Completed: Too many! See my homepage
Projects: A lot! See www.winterwolves.com
Tumblr: winterwolvesgames
Contact:

Re: Deleting Save Games

#9 Post by jack_norton »

PyTom wrote: Trying to pick an appropriate default is difficult with proportional text, as a fixed number of characters may have a wildly varying length. If the user typed MMMM... we could only support 18 characters, while if the user gave us iiiiii we can support about three times that.
Ah yes I see. In my C code I used to have a function that would calculate the PIXEL width of the string, so I would set a limit based on pixels and not characters. Anyway personally if the game provide a good automatic savegame description (in my case chapter title+save time) and a screenshot, I don't need anything else :)
follow me on Image Image Image
computer games

Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Deleting Save Games

#10 Post by Jake »

PyTom wrote:It's not a button. You just put the mouse over a save slot, and hit the delete key on your keyboard.
Out of interest, will this also have a useful user-exposed function, so that it can be used by the game code (e.g. in custom UIs), or are you keeping it just for secret Ren'Py purposes?
jack_norton wrote: Why that? can't you just save the string in an external file?
I presume that if one cared, one could fairly easily replace the load/save UI with their own interface, and maintain a dictionary from save-time to save-name (or vice versa) in a persistent variable, presenting the user with those names instead of the time/chapter title or whatever.
Server error: user 'Jake' not found

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Deleting Save Games

#11 Post by PyTom »

Jake wrote:Out of interest, will this also have a useful user-exposed function, so that it can be used by the game code (e.g. in custom UIs), or are you keeping it just for secret Ren'Py purposes?
Which function? There's already renpy.unlink_save to delete save games. The new functionality is the keymap argument to button, which will become documented in 6.10.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: Deleting Save Games

#12 Post by Jake »

PyTom wrote: There's already renpy.unlink_save to delete save games.
Yeah? I was sure I looked around for such a method before and found nothing...
Server error: user 'Jake' not found

JinzouTamashii
Eileen-Class Veteran
Posts: 1686
Joined: Mon Sep 21, 2009 8:03 pm
Projects: E-mail me if you wanna rock the planet
Location: USA
Contact:

Re: Deleting Save Games

#13 Post by JinzouTamashii »

You forgot to look into PyTom's skull...
Don't worry, we can get through it together. I didn't forget about you! I just got overwhelmed.
https://cherylitou.wordpress.com

Post Reply

Who is online

Users browsing this forum: No registered users