rename existing save

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
nananame
Regular
Posts: 72
Joined: Fri Oct 13, 2017 1:40 pm
Contact:

rename existing save

#1 Post by nananame » Sat Apr 11, 2020 2:56 pm

I'd like to enable renaming of existing saved games.
Looking for an easy solution I found renpy.rename_save(old, new)

I thought this would be great but it doesn't seem to work in a simple test. Does anyone have any idea about it?
Here's my test function:

Code: Select all

init python:
    def rename(slot):
        oldname = FileSaveName(slot)
        renpy.rename_save(oldname,"New name test")
As far as I can see it does nothing.Anyone know something about it? Alternativly, if this doesn't work, does anyone have any idea how to implement renaming? I was thinking perhaps getting json of the save and then somehow saving again, but with the modified value...not sure how to go about it though.

Post Reply

Who is online

Users browsing this forum: Google [Bot], TioNick