4
Fork 0

Do not call IsHarvested() when SKSE is not loaded, added a couple SKSE checks

development
Eddoursul 3 months ago
parent 02ec6d9ac3
commit 8d71367ba4
  1. BIN
      scripts/_00e_func_checkskse.pex
  2. BIN
      scripts/critter.pex
  3. BIN
      scripts/crittermoth.pex
  4. BIN
      scripts/qf_mq101_0003372b.pex
  5. 3
      source/scripts/_00e_func_checkskse.psc
  6. 3
      source/scripts/critter.psc
  7. 2
      source/scripts/crittermoth.psc
  8. 2
      source/scripts/qf_mq101_0003372b.psc

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -8,8 +8,7 @@ Function Run() global
if SKSEVer == 0
Utility.wait(2.0)
Game.QuitToMainMenu()
Debug.MessageBox("SKSE is not detected! Start Enderal through the launcher or skse64_loader.exe in the game directory.")
Return
Debug.MessageBox("SKSE is not detected! Start Enderal through skse64_loader.exe in the game directory.")
endif
EndFunction

@ -119,6 +119,8 @@ bool property bCalculating = false auto hidden
bool bDeleting = false
; don't do DisableAndDelete() a second time
bool Property bSKSE = true Auto Hidden
;----------------------------------------------
; Events
;----------------------------------------------
@ -289,6 +291,7 @@ Event OnInit()
; We know default properties are good
bDefaultPropertiesInitialized = true
bAttached = true
bSKSE = (SKSE.GetVersion() > 0)
; If everything else is also good, start doing stuff
CheckStateAndStart()
endEvent

@ -326,7 +326,7 @@ ObjectReference Function PickPlant(float x, float y, float z, float searchDistan
endif
endif
if (!newPlant.IsHarvested() || IgnoreHarvestedPlants.Find(plantForm) == -1)
if ! bSKSE || (!newPlant.IsHarvested() || IgnoreHarvestedPlants.Find(plantForm) == -1)
return newPlant; [USKP 2.0.1b]
endif
endif

@ -17,7 +17,7 @@ Actor PlayerREF = Game.GetForm(0x14) as Actor
PlayerREF.RemoveAllItems(none, false, false)
PlayerREF.MoveTo(PlayerStartMarkerNew)
if EnderalFunctions.GetNewGameCount() > 1
if SKSE.GetVersion() > 0 && EnderalFunctions.GetNewGameCount() > 1
Game.QuitToMainMenu()
Debug.MessageBox("Due to an engine bug, new game should not be started after quitting to the main menu. Please, restart Enderal first.")
endif

Loading…
Cancel
Save