From 1ff82174348347e27e109f9a288aaf7691e41d30 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Thu, 30 Jun 2022 23:59:31 +0100 Subject: [PATCH] Save compatibility * Version bump * Updated save compatibility --- game/scripts/options.rpy | 2 +- game/scripts/utility/updater.rpy | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/game/scripts/options.rpy b/game/scripts/options.rpy index 77bb30b6..45332ac5 100644 --- a/game/scripts/options.rpy +++ b/game/scripts/options.rpy @@ -30,7 +30,7 @@ define config.developer = "auto" define config.console = True # Game version and naming -define config.version = "1.43.1" +define config.version = "1.43.2" define compatible_version = 1.43 define config.name = "Witch Trainer Silver" diff --git a/game/scripts/utility/updater.rpy b/game/scripts/utility/updater.rpy index 796466aa..5fa8ddd7 100644 --- a/game/scripts/utility/updater.rpy +++ b/game/scripts/utility/updater.rpy @@ -66,6 +66,15 @@ init python: # For unknown reasons, sometimes version is missing from the save, so we need a fallback 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: raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))