save fileformat

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
sarka
Newbie
Posts: 15
Joined: Tue Mar 06, 2018 9:04 pm
Contact:

save fileformat

#1 Post by sarka »

Hi all

Where can i find the fileformat of save file?

Thanks

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: save fileformat

#2 Post by Ocelot »

It is a zip file.
extra_info, renpy_version and json are raw text, screenshot.png is png file. log is IIRC a pickled (or cPickled depending on settings) game state binary data.
< < insert Rick Cook quote here > >

sarka
Newbie
Posts: 15
Joined: Tue Mar 06, 2018 9:04 pm
Contact:

Re: save fileformat

#3 Post by sarka »

IIRC? how to decode this file 'log'?

kivik
Miko-Class Veteran
Posts: 786
Joined: Fri Jun 24, 2016 5:58 pm
Contact:

Re: save fileformat

#4 Post by kivik »

IIRC == "If I remember correctly"

What exactly are you trying to do decoding a save file?

sarka
Newbie
Posts: 15
Joined: Tue Mar 06, 2018 9:04 pm
Contact:

Re: save fileformat

#5 Post by sarka »

English is not my native language :)

I need to edit Renpy save file.

User avatar
Ocelot
Lemma-Class Veteran
Posts: 2400
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: save fileformat

#6 Post by Ocelot »

You unpickle it obviously. It will result in a python object representing game state. Then you will need to figure out how RenPy works to find data you want to change.

Why do you need to edit save? It is generally a bad idea to do so, as different function might expect data to not change between save and load, breaking the game. Maybe there are other options?
< < insert Rick Cook quote here > >

sarka
Newbie
Posts: 15
Joined: Tue Mar 06, 2018 9:04 pm
Contact:

Re: save fileformat

#7 Post by sarka »

This is for the development of Renpy games MOD. I need to access the information contained in the backup, not specially to modify them;)

Thanks a lot Ocelot and Kivik for your help

Post Reply

Who is online

Users browsing this forum: Andredron, Google [Bot]