Do not call IsHarvested() when SKSE is not loaded, added a couple SKSE checks
This commit is contained in:
parent
02ec6d9ac3
commit
8d71367ba4
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…
Reference in New Issue
Block a user