Save compatibility
* Version bump * Updated save compatibility
This commit is contained in:
parent
3da96a8101
commit
1ff8217434
@ -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"
|
||||||
|
|
||||||
|
@ -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))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user