From 598bff0d7cb0bc5c6178daee6ba06479af5d0be3 Mon Sep 17 00:00:00 2001 From: LoafyLemon Date: Mon, 15 May 2023 19:36:08 +0100 Subject: [PATCH] Save compatibility and version bump MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Updated save compatibility script * Updated Ren'py to version 8.1 stable release 🎉 --- game/scripts/options.rpy | 2 +- game/scripts/utility/updater.rpy | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/game/scripts/options.rpy b/game/scripts/options.rpy index 9799d58b..0a01ea8e 100644 --- a/game/scripts/options.rpy +++ b/game/scripts/options.rpy @@ -35,7 +35,7 @@ define config.developer = "auto" define config.console = True # Game version and naming -define config.version = "1.45.0.1" +define config.version = "1.45.0.2" define compatible_version = 1.45 define config.name = "Witch Trainer Silver" define prerelease = True# if not config.developer else False diff --git a/game/scripts/utility/updater.rpy b/game/scripts/utility/updater.rpy index ebdc8557..96aa4ef3 100644 --- a/game/scripts/utility/updater.rpy +++ b/game/scripts/utility/updater.rpy @@ -79,6 +79,30 @@ init python: # if current <= 1.431: # # code + if current <= 1.4501: + if states.ton.unlocked and not states.ton.ev.intro.e1_complete: + states.ton.ev.intro.e1_complete = True + states.ton.ev.intro.e2_complete = True + states.ton.ev.intro.e3_complete = True + + for i in states.dolls: + i = getattr(renpy.store, i) + + for j in i.outfits: + j.group.sort() + + j._hash = j.generate_hash() + + if hasattr(states.her.ev.yule_ball, "completed"): + states.her.ev.yule_ball.complete = states.her.ev.yule_ball.completed + del states.her.ev.yule_ball.completed + + if hasattr(states.her.ev.suck_it, "cock_kiss"): + states.her.ev.give_me_a_handy.cock_kiss = states.her.ev.suck_it.cock_kiss + del states.her.ev.suck_it.cock_kiss + + hooch_chibi.hide() + if current > latest: raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))