4
Fork 0

Show a warning and quit to main menu, when a pre-1.62 savegame is loaded

english-generic-dialogue
Eddoursul 2 years ago
parent f7dc50f40c
commit 846a1ebaa8
  1. BIN
      scripts/_00e_playersetupscript.pex
  2. 32
      source/scripts/_00e_playersetupscript.psc

@ -1,7 +1,7 @@
Scriptname _00E_PlayerSetUpScript extends ObjectReference
{Initializes all the necessary Quests, maintains the player, contains various OnPlayerLoadGame() failsafes}
Float Property CURRENT_PATCH_VERSION = 2.09 AutoReadOnly
Float Property CURRENT_PATCH_VERSION = 2.10 AutoReadOnly
;=====================================================================================
@ -183,7 +183,7 @@ EndFunction
; 2.0.9
;=====================================================================================
Function Update_209()
Function Update_210()
Spell abSoulcaller = Game.GetFormFromFile(0x002F0EA, "Enderal - Forgotten Stories.esm") as Spell
If PlayerREF.HasSpell(abSoulcaller)
PlayerREF.RemoveSpell(abSoulcaller)
@ -367,19 +367,13 @@ EndFunction
Function Maintenance()
If fPatchVersion < 1.62 && !bdoOnce
int iButton01 = _00E_Game_OldSaves_01.Show()
If iButton01 == 0
Game.QuitToMainMenu()
ElseIf iButton01 == 1
int iButton02 = _00E_Game_OldSaves_02.Show()
If iButton02 == 0
Game.QuitToMainMenu()
ElseIf iButton02 == 1
bdoOnce = true
EndIf
EndIf
ElseIf fPatchVersion >= 1.62 && fPatchVersion < CURRENT_PATCH_VERSION
if fPatchVersion < 1.62
Debug.MessageBox("A savegame was loaded which was made before the release of Enderal SE. In this save, several new features won't be available and there is a chance that you'll encounter grave bugs. Please, start a new game.")
Game.QuitToMainMenu()
return
endif
if fPatchVersion < CURRENT_PATCH_VERSION
; only do this once when update 2.0.6 (SE) is applied
If fPatchVersion < 2.06
UpdateMQ12b_206()
@ -388,12 +382,12 @@ Function Maintenance()
If fPatchVersion < 2.08
Update_208()
EndIf
; only do this once when update 2.0.9 (SE) is applied
If fPatchVersion < 2.09
Update_209()
; only do this once when update 2.0.10 (SE) is applied
If fPatchVersion < 2.10
Update_210()
EndIf
fPatchVersion = CURRENT_PATCH_VERSION
EndIf
endif
; changes to the actor value healrate will not persist in consecutive saves
; every time a save gets loaded the healrate needs to be set to 0, otherwise it will go back again to default at 0.7

Loading…
Cancel
Save