Issue Data
|
Issue #29196: Another potential stack dump contributor
ARTH_CRF_CR03PlayerAliasScript does not have an inventory event filter and as such contributes to stack dumps when large quantities are transferred. If possible an inventory event filter should be added.
Not tested the following yet but may be a possible solution: Spoiler:Scriptname ARTH_CRF_CR03PlayerAliasScript extends ReferenceAlias {Counts the number of skins for Aela's pelt collection quest. Handles dropping them too.} CR03QuestScript Property CR03 Auto Event OnInit() AddInventoryEventFilter(CR03.TargetSkins) EndEvent Event OnPlayerLoadGame() AddInventoryEventFilter(CR03.TargetSkins) EndEvent Event OnItemAdded(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akSourceContainer) if CR03.GetStage() == 10 if akBaseItem == CR03.TargetSkins CR03.CountSkins() endif endif endEvent Event OnItemRemoved(Form akBaseItem, int aiItemCount, ObjectReference akItemReference, ObjectReference akDestContainer) if CR03.GetStage() == 10 if akBaseItem == CR03.TargetSkins CR03.CountSkins() endif endif endEvent Inclusion of the OnPlayerLoadGame event should allow it to function without having to start a new game. Although, I am curious why the quest associated with this script is running prior to interacting with the Companions in any way. Aren't there prerequisites before being able to collect the pelts for Aela and thus start the quest associated with this? |
Related Issues: 29068
+1, it is definitely a stack dump contributor, was just discussing with several people with the same issue.
This should be fixed on the 3.1.10 update.
There is no need for the OnPlayerLoadGame() event to be added.
The modified CR03QuestScript already had an event filter in place, but it didn't get activated until the quest was actually accepted. Due to the nature of how Companion quests work, this should have been done in the setup function instead since these quests cycle regularly on visits to Whiterun.
There is no need for the OnPlayerLoadGame() event to be added.
The modified CR03QuestScript already had an event filter in place, but it didn't get activated until the quest was actually accepted. Due to the nature of how Companion quests work, this should have been done in the setup function instead since these quests cycle regularly on visits to Whiterun.
Showing Comments 1 - 2 of 2