Bug fixes

* Added checkpoints to forbid the editor from rolling back to menu context
* Added forced checkpoint for when the editor is being opened to avoid rolling back to before it was opened (by opening a console for example)
* Alleviated the issue for when the game tries to recover from the place it cannot stop rolling back, but version var is unavailable because of it being not initialized in that moment
This commit is contained in:
LoafyLemon 2022-06-17 22:05:08 +01:00
parent 754d139f31
commit cd485b2bac
9 changed files with 19 additions and 9 deletions

View File

@ -9,6 +9,8 @@ label summon_astoria:
#call update_ast_tier
call update_astoria
$ renpy.checkpoint(hard=True)
# Clothes Events
call astoria_summon_setup

View File

@ -10,6 +10,8 @@ label summon_cho:
#call update_cho_tier
call update_cho
$ renpy.checkpoint(hard=True)
if has_cho_panties:
if cho_tier == 2:
jump cho_panties_response_T2

View File

@ -12,6 +12,8 @@ label summon_hermione:
call update_hermione
call update_her_tier
$ renpy.checkpoint(hard=True)
# Clothes Events
call hermione_summon_setup

View File

@ -9,6 +9,8 @@ label summon_luna:
call update_luna
call update_lun_tier
$ renpy.checkpoint(hard=True)
call play_music("luna")
call play_sound("door")
call lun_chibi("stand","mid","base")

View File

@ -9,6 +9,8 @@ label summon_snape:
call sna_chibi("stand","mid","base")
with d3
$ renpy.checkpoint(hard=True)
sna "Yes, what is it?" ("snape_01",xpos="base",ypos="base", trans=d3)
label snape_ready:

View File

@ -8,6 +8,8 @@ label summon_susan:
call update_susan
$ renpy.checkpoint(hard=True)
call play_music("susan")
call play_sound("door")

View File

@ -12,6 +12,8 @@ label summon_tonks:
call play_music("tonks")
call play_sound("door")
$ renpy.checkpoint(hard=True)
# Clothes Events
call tonks_summon_setup

View File

@ -424,6 +424,8 @@ init python:
renpy.show_screen("editor")
renpy.restart_interaction()
renpy.game.context().force_checkpoint = True
renpy.checkpoint(hard=True)
if config.developer:
e = Editor()
@ -444,8 +446,7 @@ screen editor():
drag:
pos (50, 50)
xminimum 500
xmaximum 500
maximum (500, 500)
xsize 500
frame:

View File

@ -63,13 +63,8 @@ init python:
return
latest = version_float()
if not hasattr(renpy.store, "version"):
if hasattr(renpy.store, "save_internal_version"):
raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(getattr(renpy.store, "save_internal_version")), latest)
raise Exception("Loaded save file is incompatible. (Save Version: Unknown, Game Version: {})".format(latest))
current = version
# For unknown reasons, sometimes version is missing from the save, so we need a fallback
current = getattr(renpy.store, "version", latest)
if current > latest:
raise Exception("Loaded save file is incompatible. (Save Version: {}, Game Version: {})".format(current, latest))