Removed support for upgrading from pre-1.6.4 versions

This commit is contained in:
Eddoursul 2021-10-13 20:14:48 +02:00
parent f9e6a69b1e
commit 5508c50051
2 changed files with 2 additions and 208 deletions

Binary file not shown.

View File

@ -83,114 +83,10 @@ Function CheckIfForgottenStoriesIsLoaded()
EndFunction
;=====================================================================================
; 1.5.6.0
;=====================================================================================
Function ResetFSNQR05Temple()
; resets the cells which is needed due to the fixes on enemies and ambushes in patch 1.5.6.0
Quest FS_NQR05 = Game.GetFormFromFile(0x000438D2,"Skyrim.esm") as Quest
Cell FS_NQR05_Temple_02_New = Game.GetFormFromFile(0x00045101,"Skyrim.esm") as Cell
If FS_NQR05.GetStage() < 165
FS_NQR05_Temple_02_New.Reset()
EndIf
EndFunction
;=====================================================================================
; 1.5.7.0
;=====================================================================================
Function CleanMQ12bGhostFlags()
; cleans old ghost flags on certain NPCs after the siege when patch 1.5.7.0 is applied
; only needed once, since it won't happen anymore for everyone with a save before the siege
_00E_MQ12b_Functions MQ12bFunctions = Game.GetFormFromFile(0x0002EBAD,"Skyrim.esm") as _00E_MQ12b_Functions
MQ12bFunctions.OldRemoveGhostFlag()
EndFunction
;=====================================================================================
; 1.5.8.0
;=====================================================================================
Function ResetAuroraOnLoad()
; resets Aurora if she was stuck during the ritual scene due to the gamehour change while she was in the smoking animation
_00E_FS_NQ07_Functions FS_NQ07Functions = Game.GetFormFromFile(0x0101CA09,"Enderal - Forgotten Stories.esm") as _00E_FS_NQ07_Functions
FS_NQ07Functions.ResetAurora()
EndFunction
Function DisableMQ12bPanicTriggerbox()
; disables MQ12b_SC3_PanicTriggerboxREF when patch 1.5.8.0 is applied
_00E_MQ12b_Functions MQ12bFunctions = Game.GetFormFromFile(0x0002EBAD,"Skyrim.esm") as _00E_MQ12b_Functions
If MQ12bFunctions.IsCompleted()
MQ12bFunctions.DisablePanicTriggerbox()
EndIf
EndFunction
Function ReAddDarkKeeperAffinity()
; Dark Keeper Affinity Update
Spell _00E_Affinity_AbDarkKeeper = Game.GetFormFromFile(0x00143340,"Skyrim.esm") as Spell
If PlayerREF.HasSpell(_00E_Affinity_AbDarkKeeper)
PlayerREF.RemoveSpell(_00E_Affinity_AbDarkKeeper)
Utility.Wait(1)
PlayerREF.AddSpell(_00E_Affinity_AbDarkKeeper, false)
EndIf
EndFunction
Function ReAddFuryDrivenPerk()
; Fury Driven ability update
Spell abFuryDriven = Game.GetFormFromFile(0x000855CE, "Skyrim.esm") as Spell
If PlayerREF.HasSpell(abFuryDriven)
PlayerREF.RemoveSpell(abFuryDriven)
Utility.Wait(1)
PlayerREF.AddSpell(abFuryDriven, False)
EndIf
EndFunction
Function UpdateLivingTempleTrigger()
; Living Temple's ambush trigger update
ObjectReference triggerRef = Game.GetFormFromFile(0x000C6766, "Skyrim.esm") as ObjectReference
(triggerRef as defaultActivateSelf).playerAndAlliesOnly = True
EndFunction
Function UpdateMQ11a()
; MQ11a update
ObjectReference portcullisRef = Game.GetFormFromFile(0x000E1D1F, "Skyrim.esm") as ObjectReference
Quest MQ11a = Game.GetFormFromFile(0x0002EBA9, "Skyrim.esm") as Quest
If (MQ11a.GetStage() <= 125) && (portcullisRef.Is3DLoaded() == False)
(portcullisRef as _00E_DUNGate01Script).isOpen = False
EndIf
If MQ11a.IsRunning() && (MQ11a.IsCompleted() == False)
(MQ11a as _00E_MQ11a_Functions).UpdateCaliaAliasScriptState()
EndIf
ObjectReference NQ34_EnableMarkerREF = Game.GetFormFromFile(0x000480E8, "Skyrim.esm") as ObjectReference
If MQ11a.GetStage() >= 45
NQ34_EnableMarkerREF.Enable()
EndIf
Actor NQ34_WildMageREF = Game.GetFormFromFile(0x00141F00, "Skyrim.esm") as Actor
Quest NQ34 = Game.GetFormFromFile(0x00020A12, "Skyrim.esm") as Quest
If NQ34.GetStage() == 15 || NQ34.GetStage() == 20
NQ34_WildMageREF.Enable()
EndIf
If NQ34_WildMageREF.IsDead() && NQ34.GetStage() == 15
NQ34.SetStage(20)
EndIf
EndFunction
Function AddPerks()
; adds the new Balancing perks for alchemy potions to the player, this is needed because of the changes with the Lycantroph
@ -218,76 +114,6 @@ Function StartQuests(Formlist QuestList)
EndFunction
;=====================================================================================
; 1.6.0.0
;=====================================================================================
Function UpdatePhasmalistContainer()
ObjectReference Phasmalist_ApparationInventory_Bandit_Tier4 = Game.GetFormFromFile(0x0101E99B, "Enderal - Forgotten Stories.esm") as ObjectReference
ObjectReference Phasmalist_ApparationInventory_Archer_Tier5 = Game.GetFormFromFile(0x0101E9CA, "Enderal - Forgotten Stories.esm") as ObjectReference
Armor _00E_Phasmalist_Trinket_Bandit_Tier4 = Game.GetFormFromFile(0x0101E9A6, "Enderal - Forgotten Stories.esm") as Armor
Armor _00E_Phasmalist_Trinket_Archer_Tier5 = Game.GetFormFromFile(0x0101E9D4, "Enderal - Forgotten Stories.esm") as Armor
_00E_Phasmalist_ApparationSC _36E_Phasmalist_Apparation_Hybrid_Tier4 = Game.GetFormFromFile(0x01025309, "Enderal - Forgotten Stories.esm") as _00E_Phasmalist_ApparationSC
_36E_Phasmalist_Apparation_Hybrid_Tier4.inventoryContainer = Phasmalist_ApparationInventory_Bandit_Tier4
If (PlayerREF.GetItemCount(_00E_Phasmalist_Trinket_Bandit_Tier4) > 0 && PlayerREF.GetItemCount(_00E_Phasmalist_Trinket_Archer_Tier5) == 0)
Phasmalist_ApparationInventory_Archer_Tier5.RemoveAllItems(Phasmalist_ApparationInventory_Bandit_Tier4, false, true)
EndIf
EndFunction
Function UpdatePassengerBookAtShipwreck()
_00E_FS_NQ02_Functions FS_NQ02_Functions = (Game.GetFormFromFile(0x000438AC, "Skyrim.esm") as Quest) as _00E_FS_NQ02_Functions
FS_NQ02_Functions.UpdatePassengerBook()
EndFunction
Function ResetMQ02Riddle()
GlobalVariable _00E_MQ02Riddle = Game.GetFormFromFile(0x00074B07, "Skyrim.esm") as GlobalVariable
If _00E_MQ02Riddle.GetValueInt() > 0
_00E_MQ02_Functions MQ02Functions = Game.GetFormFromFile(0x0002EBA1, "Skyrim.esm") as _00E_MQ02_Functions
MQ02Functions.ResetRiddle()
EndIf
EndFunction
;=====================================================================================
; 1.6.1.0
;=====================================================================================
Function UpdateMQ02()
_00E_MQ02_Functions MQ02Functions = Game.GetFormFromFile(0x0002EBA1, "Skyrim.esm") as _00E_MQ02_Functions
Int mq02stage = MQ02Functions.GetStage()
If mq02stage >= 138 && mq02stage < 170
MQ02Functions.MQ02_TripToArkEnableMarker.EnableNoWait()
EndIf
EndFunction
;=====================================================================================
; 1.6.2.0
;=====================================================================================
Function UpdateItemHandler()
Cell ClassMenue = Game.GetFormFromFile(0x000A7FBC, "Skyrim.esm") as Cell
If PlayerREF.GetParentCell() == ClassMenue
Quest ClassMenuItemHandler = Game.GetFormFromFile(0x00048442, "Skyrim.esm") as Quest
ReferenceAlias Player = ClassMenuItemHandler.GetAliasByName("Player") as ReferenceAlias
Player.ForceRefTo(PlayerREF)
EndIf
EndFunction
;=====================================================================================
; 2.0.6
@ -538,7 +364,7 @@ EndFunction
Function Maintenance()
If fPatchVersion <= 1.25 && !bdoOnce
If fPatchVersion < 1.62 && !bdoOnce
int iButton01 = _00E_Game_OldSaves_01.Show()
If iButton01 == 0
Game.QuitToMainMenu()
@ -550,39 +376,7 @@ Function Maintenance()
bdoOnce = true
EndIf
EndIf
ElseIf fPatchVersion >= 1.5 && fPatchVersion < CURRENT_PATCH_VERSION
; only do this once when update 1.5.6.0 is applied
If fPatchVersion < 1.56
ResetFSNQR05Temple()
EndIf
; only do this once when update 1.5.7.0 is applied
If fPatchVersion < 1.57
CleanMQ12bGhostFlags()
EndIf
; only do this once when update 1.5.8.0 is applied
If fPatchVersion < 1.58
ResetAuroraOnLoad()
DisableMQ12bPanicTriggerbox()
ReAddDarkKeeperAffinity()
ReAddFuryDrivenPerk()
UpdateLivingTempleTrigger()
UpdateMQ11a()
EndIf
; only do this once when update 1.6.0.0 is applied
If fPatchVersion < 1.60
UpdatePhasmalistContainer()
UpdatePassengerBookAtShipwreck()
ResetMQ02Riddle()
EndIf
; only do this once when update 1.6.1.0 is applied
If fPatchVersion < 1.61
UpdateMQ02()
EndIf
; only do this once when update 1.6.2.0 is applied
If fPatchVersion < 1.62
UpdateItemHandler()
EndIf
ElseIf fPatchVersion >= 1.62 && fPatchVersion < CURRENT_PATCH_VERSION
; only do this once when update 2.0.6 (SE) is applied
If fPatchVersion < 2.06
UpdateMQ12b_206()