Save compatibility and version bump

* Updated save compatibility script
* Updated Ren'py to version 8.1 stable release 🎉
This commit is contained in:
LoafyLemon 2023-05-15 19:36:08 +01:00
parent 65e4582457
commit 598bff0d7c
2 changed files with 25 additions and 1 deletions

View File

@ -35,7 +35,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.45.0.1" define config.version = "1.45.0.2"
define compatible_version = 1.45 define compatible_version = 1.45
define config.name = "Witch Trainer Silver" define config.name = "Witch Trainer Silver"
define prerelease = True# if not config.developer else False define prerelease = True# if not config.developer else False

View File

@ -79,6 +79,30 @@ init python:
# if current <= 1.431: # if current <= 1.431:
# # code # # 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: 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))