Save compatibility

* Version bump
* Updated save compatibility
This commit is contained in:
LoafyLemon 2022-06-30 23:59:31 +01:00
parent 3da96a8101
commit 1ff8217434
2 changed files with 10 additions and 1 deletions

View File

@ -30,7 +30,7 @@ define config.developer = "auto"
define config.console = True define config.console = True
# Game version and naming # Game version and naming
define config.version = "1.43.1" define config.version = "1.43.2"
define compatible_version = 1.43 define compatible_version = 1.43
define config.name = "Witch Trainer Silver" define config.name = "Witch Trainer Silver"

View File

@ -66,6 +66,15 @@ init python:
# For unknown reasons, sometimes version is missing from the save, so we need a fallback # For unknown reasons, sometimes version is missing from the save, so we need a fallback
current = getattr(renpy.store, "version", latest) current = getattr(renpy.store, "version", latest)
if current <= 1.431:
for i in CHARACTERS:
char = get_character_object(i)
if isinstance(char.animation, list) and char.animation:
char.animation = char.animation[0]
else:
char.animation = None
if current > latest: if current > latest:
raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest)) raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))