Show a warning and quit to main menu, when a pre-1.62 savegame is loaded
This commit is contained in:
parent
f7dc50f40c
commit
846a1ebaa8
Binary file not shown.
@ -1,7 +1,7 @@
|
|||||||
Scriptname _00E_PlayerSetUpScript extends ObjectReference
|
Scriptname _00E_PlayerSetUpScript extends ObjectReference
|
||||||
{Initializes all the necessary Quests, maintains the player, contains various OnPlayerLoadGame() failsafes}
|
{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
|
; 2.0.9
|
||||||
;=====================================================================================
|
;=====================================================================================
|
||||||
|
|
||||||
Function Update_209()
|
Function Update_210()
|
||||||
Spell abSoulcaller = Game.GetFormFromFile(0x002F0EA, "Enderal - Forgotten Stories.esm") as Spell
|
Spell abSoulcaller = Game.GetFormFromFile(0x002F0EA, "Enderal - Forgotten Stories.esm") as Spell
|
||||||
If PlayerREF.HasSpell(abSoulcaller)
|
If PlayerREF.HasSpell(abSoulcaller)
|
||||||
PlayerREF.RemoveSpell(abSoulcaller)
|
PlayerREF.RemoveSpell(abSoulcaller)
|
||||||
@ -367,19 +367,13 @@ EndFunction
|
|||||||
|
|
||||||
Function Maintenance()
|
Function Maintenance()
|
||||||
|
|
||||||
If fPatchVersion < 1.62 && !bdoOnce
|
if fPatchVersion < 1.62
|
||||||
int iButton01 = _00E_Game_OldSaves_01.Show()
|
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.")
|
||||||
If iButton01 == 0
|
|
||||||
Game.QuitToMainMenu()
|
Game.QuitToMainMenu()
|
||||||
ElseIf iButton01 == 1
|
return
|
||||||
int iButton02 = _00E_Game_OldSaves_02.Show()
|
endif
|
||||||
If iButton02 == 0
|
|
||||||
Game.QuitToMainMenu()
|
if fPatchVersion < CURRENT_PATCH_VERSION
|
||||||
ElseIf iButton02 == 1
|
|
||||||
bdoOnce = true
|
|
||||||
EndIf
|
|
||||||
EndIf
|
|
||||||
ElseIf fPatchVersion >= 1.62 && fPatchVersion < CURRENT_PATCH_VERSION
|
|
||||||
; only do this once when update 2.0.6 (SE) is applied
|
; only do this once when update 2.0.6 (SE) is applied
|
||||||
If fPatchVersion < 2.06
|
If fPatchVersion < 2.06
|
||||||
UpdateMQ12b_206()
|
UpdateMQ12b_206()
|
||||||
@ -388,12 +382,12 @@ Function Maintenance()
|
|||||||
If fPatchVersion < 2.08
|
If fPatchVersion < 2.08
|
||||||
Update_208()
|
Update_208()
|
||||||
EndIf
|
EndIf
|
||||||
; only do this once when update 2.0.9 (SE) is applied
|
; only do this once when update 2.0.10 (SE) is applied
|
||||||
If fPatchVersion < 2.09
|
If fPatchVersion < 2.10
|
||||||
Update_209()
|
Update_210()
|
||||||
EndIf
|
EndIf
|
||||||
fPatchVersion = CURRENT_PATCH_VERSION
|
fPatchVersion = CURRENT_PATCH_VERSION
|
||||||
EndIf
|
endif
|
||||||
|
|
||||||
; changes to the actor value healrate will not persist in consecutive saves
|
; 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
|
; 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…
x
Reference in New Issue
Block a user