Compare commits

..

No commits in common. "e6e3f324fb7adc89e32baf4b18628cc1d9d4cbdb" and "79b654e8f56e454d7eeae80f8b0d1b51d42961ab" have entirely different histories.

12 changed files with 108 additions and 36 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,7 +0,0 @@
Scriptname _00E_AutosaveIntervalAlias extends ReferenceAlias Hidden
Event OnPlayerLoadGame()
(GetOwningQuest() as _00E_AutoSaveSystem_Functions).UpdateAutoSaveInterval()
EndEvent

View File

@ -1,24 +0,0 @@
Scriptname _00E_SetupInitQuestList extends Quest Hidden
Event OnInit()
RegisterForSingleUpdate(1.0) ; Give a few seconds for the game to warm up at the start
EndEvent
Event OnUpdate()
; starts all quests that are in the formlist
Int iIndex = QuestsToStart.GetSize()
While iIndex > 0
iIndex -= 1
Quest kQuest = QuestsToStart.GetAt(iIndex) as Quest
if kQuest && ! kQuest.IsRunning()
kQuest.Start()
endif
endwhile
Stop()
EndEvent
FormList Property QuestsToStart Auto

View File

@ -3,10 +3,6 @@ Scriptname _00E_AutoSaveSystem_Functions extends Quest
Event OnInit() Event OnInit()
fUpdateTime = Utility.GetIniFloat("fAutosaveEveryXMins:SaveGame") fUpdateTime = Utility.GetIniFloat("fAutosaveEveryXMins:SaveGame")
If fUpdateTime <= 0.0 ; just in case
fUpdateTime = 60
EndIf
RegisterForSingleUpdate(fUpdateTime*60) RegisterForSingleUpdate(fUpdateTime*60)
EndEvent EndEvent
@ -28,7 +24,7 @@ EndEvent
Function UpdateAutoSaveInterval() Function UpdateAutoSaveInterval()
fUpdateTime = Utility.GetIniFloat("fAutosaveEveryXMins:SaveGame") fUpdateTime = Utility.GetIniFloat("fAutosaveEveryXMins:SaveGame")
If fUpdateTime <= 0.0 ; just in case If fUpdateTime == 0.0 ; just in case
fUpdateTime = 60 fUpdateTime = 60
EndIf EndIf

View File

@ -18,6 +18,14 @@ Event OnInit()
PlayerREF.SetActorValue("speedMult", 95) PlayerREF.SetActorValue("speedMult", 95)
PlayerREF.SetActorValue("Healrate", 0) PlayerREF.SetActorValue("Healrate", 0)
; starts all quests that are in the formlist
Int iIndex = QuestsToStart.GetSize()
While iIndex > 0
iIndex -= 1
Quest kQuest = QuestsToStart.GetAt(iIndex) as Quest
kQuest.Start()
endwhile
EndEvent EndEvent
Event OnPlayerLoadGame() Event OnPlayerLoadGame()
@ -27,6 +35,19 @@ Event OnPlayerLoadGame()
EndEvent EndEvent
;=====================================================================================
; ALL UPDATES
;=====================================================================================
Function SetAutoSaveInterval()
; updates the autosave interval
_00E_AutoSaveSystem_Functions AutoSaveSystem_Functions = Game.GetFormFromFile(0x00048141, "Skyrim.esm") as _00E_AutoSaveSystem_Functions
AutoSaveSystem_Functions.UpdateAutoSaveInterval()
EndFunction
;===================================================================================== ;=====================================================================================
; MAINTENANCE ; MAINTENANCE
;===================================================================================== ;=====================================================================================
@ -47,6 +68,10 @@ Function Maintenance()
Message.ResetHelpMessage("Clear") Message.ResetHelpMessage("Clear")
(Game.GetForm(0xAC80E) as Message).ShowAsHelpMessage("Clear", 0.1, 1, 1) (Game.GetForm(0xAC80E) as Message).ShowAsHelpMessage("Clear", 0.1, 1, 1)
SetAutoSaveInterval()
SendModEvent("Enderal_GameLoaded")
EndFunction EndFunction
;===================================================================================== ;=====================================================================================
@ -54,3 +79,5 @@ EndFunction
;===================================================================================== ;=====================================================================================
Actor Property PlayerREF Auto Actor Property PlayerREF Auto
FormList Property QuestsToStart Auto

View File

@ -0,0 +1,80 @@
Scriptname FixStuckConversationsScript extends Quest
Event OnInit()
RegisterForSingleUpdate(1.0) ; Give a few seconds for the game to warm up at the start
EndEvent
Event OnUpdate()
ForceStopConversation(Z_Conversations_Arcanist02AndRandomVoice_01)
ForceStopConversation(Z_Conversations_Arcanist02AndRandomVoice_02)
ForceStopConversation(Z_Conversations_Arcanist02AndRandomVoice_03)
ForceStopConversation(Z_Conversations_GossipWomen01)
ForceStopConversation(Z_Conversations_GossipWomen02)
ForceStopConversation(Z_Conversations_GossipWomen03)
ForceStopConversation(Z_Conversations_Guards_Guard02AndGuard01)
ForceStopConversation(Z_Conversations_Guards_Guard02AndGuard03)
ForceStopConversation(Z_Conversations_Guards_Guard03AndGuard01_01)
ForceStopConversation(Z_Conversations_Guards_Guard03AndGuard01_02)
ForceStopConversation(Z_Conversations_HunterAndTraveller)
ForceStopConversation(Z_Conversations_Keeper01FemaleKeeper02)
ForceStopConversation(Z_Conversations_Keeper01Keeper01Female_01)
ForceStopConversation(Z_Conversations_Keeper01Keeper02_01)
ForceStopConversation(Z_Conversations_Keeper01Keeper02_02)
ForceStopConversation(Z_Conversations_Keeper02KeeperFemale_01)
ForceStopConversation(Z_Conversations_Keeper02KeeperFemale_02)
ForceStopConversation(Z_Conversations_MerchantGossipWoman_01)
ForceStopConversation(Z_Conversations_NobleMen_01)
ForceStopConversation(Z_Conversations_NobleMen_02)
ForceStopConversation(Z_Conversations_NobleMen_03)
ForceStopConversation(Z_Conversations_NobleWomanAndCitizen)
ForceStopConversation(Z_Conversations_NobleWomen_01)
ForceStopConversation(Z_Conversations_NobleWomen_02)
ForceStopConversation(Z_Conversations_Novice02AndNoviceFemale02_01)
ForceStopConversation(Z_Conversations_Novice02AndNoviceFemale02_02)
ForceStopConversation(Z_Conversations_Novice02AndNoviceFemale02_03)
ForceStopConversation(Z_Conversations_SailorwomanAndSailor)
ForceStopConversation(Z_Conversations_TwoSailors)
ForceStopConversation(Z_Conversations_TwoWorkers_01)
ForceStopConversation(Z_Conversations_TwoWorkers_02)
Stop()
EndEvent
Function ForceStopConversation(Quest q)
If q.IsRunning()
q.Stop()
Debug.Trace(self + ": forced stopped " + q)
EndIf
EndFunction
Quest Property Z_Conversations_Arcanist02AndRandomVoice_01 Auto
Quest Property Z_Conversations_Arcanist02AndRandomVoice_02 Auto
Quest Property Z_Conversations_Arcanist02AndRandomVoice_03 Auto
Quest Property Z_Conversations_GossipWomen01 Auto
Quest Property Z_Conversations_GossipWomen02 Auto
Quest Property Z_Conversations_GossipWomen03 Auto
Quest Property Z_Conversations_Guards_Guard02AndGuard01 Auto
Quest Property Z_Conversations_Guards_Guard02AndGuard03 Auto
Quest Property Z_Conversations_Guards_Guard03AndGuard01_01 Auto
Quest Property Z_Conversations_Guards_Guard03AndGuard01_02 Auto
Quest Property Z_Conversations_HunterAndTraveller Auto
Quest Property Z_Conversations_Keeper01FemaleKeeper02 Auto
Quest Property Z_Conversations_Keeper01Keeper01Female_01 Auto
Quest Property Z_Conversations_Keeper01Keeper02_01 Auto
Quest Property Z_Conversations_Keeper01Keeper02_02 Auto
Quest Property Z_Conversations_Keeper02KeeperFemale_01 Auto
Quest Property Z_Conversations_Keeper02KeeperFemale_02 Auto
Quest Property Z_Conversations_MerchantGossipWoman_01 Auto
Quest Property Z_Conversations_NobleMen_01 Auto
Quest Property Z_Conversations_NobleMen_02 Auto
Quest Property Z_Conversations_NobleMen_03 Auto
Quest Property Z_Conversations_NobleWomanAndCitizen Auto
Quest Property Z_Conversations_NobleWomen_01 Auto
Quest Property Z_Conversations_NobleWomen_02 Auto
Quest Property Z_Conversations_Novice02AndNoviceFemale02_01 Auto
Quest Property Z_Conversations_Novice02AndNoviceFemale02_02 Auto
Quest Property Z_Conversations_Novice02AndNoviceFemale02_03 Auto
Quest Property Z_Conversations_SailorwomanAndSailor Auto
Quest Property Z_Conversations_TwoSailors Auto
Quest Property Z_Conversations_TwoWorkers_01 Auto
Quest Property Z_Conversations_TwoWorkers_02 Auto