4
Fork 0

Compare commits

...

2 Commits

  1. BIN
      StartQuests.esp
  2. BIN
      UpdateAutosaveInterval.esp
  3. BIN
      scripts/_00E_AutosaveIntervalAlias.pex
  4. BIN
      scripts/_00E_SetupInitQuestList.pex
  5. BIN
      scripts/_00e_autosavesystem_functions.pex
  6. BIN
      scripts/_00e_playersetupscript.pex
  7. BIN
      scripts/fixstuckconversationsscript.pex
  8. 7
      source/scripts/_00E_AutosaveIntervalAlias.psc
  9. 24
      source/scripts/_00E_SetupInitQuestList.psc
  10. 6
      source/scripts/_00e_autosavesystem_functions.psc
  11. 27
      source/scripts/_00e_playersetupscript.psc
  12. 80
      source/scripts/fixstuckconversationsscript.psc

Binary file not shown.

Binary file not shown.

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

@ -0,0 +1,24 @@
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

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

@ -17,14 +17,6 @@ Event OnInit()
PlayerREF.SetActorValue("speedMult", 95)
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
@ -35,19 +27,6 @@ Event OnPlayerLoadGame()
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
;=====================================================================================
@ -68,10 +47,6 @@ Function Maintenance()
Message.ResetHelpMessage("Clear")
(Game.GetForm(0xAC80E) as Message).ShowAsHelpMessage("Clear", 0.1, 1, 1)
SetAutoSaveInterval()
SendModEvent("Enderal_GameLoaded")
EndFunction
;=====================================================================================
@ -79,5 +54,3 @@ EndFunction
;=====================================================================================
Actor Property PlayerREF Auto
FormList Property QuestsToStart Auto

@ -1,80 +0,0 @@
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
Loading…
Cancel
Save