Deleting Save Games
- 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
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.
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- 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
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?
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
https://cherylitou.wordpress.com
- 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
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- 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
Fantastic. Thank you very much!
sakevisual visual novels (and stuff) | sakevisual dev blog
-
- 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
Is that intuitive enough?PyTom wrote:It's not a button. You just put the mouse over a save slot, and hit the delete key on your keyboard.
Don't worry, we can get through it together. I didn't forget about you! I just got overwhelmed.
https://cherylitou.wordpress.com
https://cherylitou.wordpress.com
- 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
Why that? can't you just save the string in an external file?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.
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)
- 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
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...Is that intuitive enough?
(don't mind me, four hours sleep.)
- 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
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.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
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
- 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
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 elsePyTom 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.
Re: Deleting Save Games
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?PyTom wrote:It's not a button. You just put the mouse over a save slot, and hit the delete key on your keyboard.
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.jack_norton wrote: Why that? can't you just save the string in an external file?
Server error: user 'Jake' not found
- 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
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.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?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Deleting Save Games
Yeah? I was sure I looked around for such a method before and found nothing...PyTom wrote: There's already renpy.unlink_save to delete save games.
Server error: user 'Jake' not found
-
- 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
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
https://cherylitou.wordpress.com
Who is online
Users browsing this forum: No registered users