This is a wired question. When I save at the old version, the newer version can see what I save in this computer. It also happen on many questions as screen resolution and the persistent data I made from script.
How can I let these settings can't be inherit from old version
Wrong inheritance about save and persistent data
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.
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.
- hell_oh_world
- Miko-Class Veteran
- Posts: 777
- Joined: Fri Jul 12, 2019 5:21 am
- Contact:
Re: Wrong inheritance about save and persistent data
I'm confused... Do you want your newer version of the game to not read saves from an older version? Is that what you're trying to achieve?yuuri88 wrote: ↑Thu Aug 29, 2019 8:40 pm This is a wired question. When I save at the old version, the newer version can see what I save in this computer. It also happen on many questions as screen resolution and the persistent data I made from script.
How can I let these settings can't be inherit from old version
Re: Wrong inheritance about save and persistent data
Yes, that's the part of what I want.
All in all is to prevent the old version influence the newer version
All in all is to prevent the old version influence the newer version
- isobellesophia
- Miko-Class Veteran
- Posts: 979
- Joined: Mon Jan 07, 2019 2:55 am
- Completed: None
- Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
- Organization: Friendly Teachers series
- Deviantart: SophBelle
- itch: Child Creation
- Location: Philippines, Mindanao
- Contact:
Re: Wrong inheritance about save and persistent data
How about you'll try copying the save file from its game? And paste it right after, just maybe because newer version had changed alot though.. and try edit out some things first.
- hell_oh_world
- Miko-Class Veteran
- Posts: 777
- Joined: Fri Jul 12, 2019 5:21 am
- Contact:
Re: Wrong inheritance about save and persistent data
That's a bit tricky... I'm sure others have their own much easier workaround for this but this is mine...
Assuming that youre still using the default file_slots screen in screens.rpy....
**YOU CAN FIND THESE IN file_slots screen in screens.rpy**
Code: Select all
for i in range(gui.file_slot_cols * gui.file_slot_rows):
$ slot = i + 1
button:
action FileAction(slot)
has vbox
add FileScreenshot(slot) xalign 0.5
text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
style "slot_time_text"
text FileSaveName(slot):
style "slot_name_text"
key "save_delete" action FileDelete(slot)
Code: Select all
for i in range(gui.file_slot_cols * gui.file_slot_rows):
$ slot = i + 1
if FileSaveName(slot) == config.version: ## Added a condition which checks the version of the save file.
button:
action FileAction(slot)
has vbox
add FileScreenshot(slot) xalign 0.5
text FileTime(slot, format=_("{#file_time}%A, %B %d %Y, %H:%M"), empty=_("empty slot")):
style "slot_time_text"
text FileSaveName(slot):
style "slot_name_text"
key "save_delete" action FileDelete(slot)
Therefore, you have different labels that will be called or jumped for the start of each episode...
Eg. version 0.1.0 is your episode1.rpy and version 0.2.0 is your episode2.rpy.
Code: Select all
## IN YOUR episode1.rpy (version 0.1.0)
label start:
$ save_name = config.version # The save name version will be 0.1.0
## IN YOUR episode2.rpy (version 0.2.0)
label episode2_start:
$ save_name = config.version # The save name version will be 0.2.0
## Trying to load a game with an older version from this point and onwards will not be feasible.
## But if you save a game from this point and onwards that saved game will be eligible for loading.
Who is online
Users browsing this forum: Google [Bot]