Unofficial Fallout 4 Patch

  • Status Fix Pending
  • Percent Complete
    100%
  • Task Type Bug Report
  • Category Papyrus
  • Assigned To
    Sclerocephalus
  • Operating System All
  • Severity Low
  • Priority Medium
  • Reported Version Fallout 4: Vanilla
  • Due in Version Undecided
  • Due Date Undecided
  • Votes
  • Private
Attached to Project: Unofficial Fallout 4 Patch
Opened by Sclerocephalus - March 16 2017
Last edited by Sclerocephalus - March 16 2017

FS#22148 - QF_REChokepointSC06_FactionM_001B06C3 - cannot access a None struct / None array

[03/12/2017 - 10:05:50AM] error: Cannot access an element of a None array
stack:

[REChokepointSC06_FactionMMDefenders (001B06C3)].rescript.UpdateDeadCountGroupSize() - "C:\Users\Samson\AppData\Local\Temp\PapyrusTemp\REScript.psc" Line 446
[REChokepointSC06_FactionMMDefenders (001B06C3)].REAssaultSC_FactionScript.ResolveActors() - "g:\_F4\Art\Raw\ScriptsMilestone\REAssaultSC_FactionScript.psc" Line 117
[REChokepointSC06_FactionMMDefenders (001B06C3)].Fragments:Quests:QF_REChokepointSC06_FactionM_001B06C3.Fragment_Stage_0010_Item_00() - "g:\_F4\Art\Raw\ScriptsMilestone\Fragments\Quests\QF_REChokepointSC06_FactionM_001B06C3.psc" Line 15

[03/12/2017 - 10:05:50AM] error: Cannot access a variable of a None struct
stack:

[REChokepointSC06_FactionMMDefenders (001B06C3)].rescript.UpdateDeadCountGroupSize() - "C:\Users\Samson\AppData\Local\Temp\PapyrusTemp\REScript.psc" Line 446
[REChokepointSC06_FactionMMDefenders (001B06C3)].REAssaultSC_FactionScript.ResolveActors() - "g:\_F4\Art\Raw\ScriptsMilestone\REAssaultSC_FactionScript.psc" Line 117
[REChokepointSC06_FactionMMDefenders (001B06C3)].Fragments:Quests:QF_REChokepointSC06_FactionM_001B06C3.Fragment_Stage_0010_Item_00() - "g:\_F4\Art\Raw\ScriptsMilestone\Fragments\Quests\QF_REChokepointSC06_FactionM_001B06C3.psc" Line 15

This is a relatively frequent error thrown by all RE quests that (1) do not use all of the actors filled in the aliases at quest start, and (2) do not track the death counts of individual actor groups.

These two functionalities are not dependent on each other. Nonetheless, the vanilla scripts are not conceived to handle quests that are configured in this specific manner. If they are not using all of the available actors, they are running REAssaultSC_FactionScript in addition to REScript. REAssaultSC_FactionScript reduces the actor count to a random number, clears the aliases of all excess actors and deletes them. Subsequently, it calls a function on REScript to update the actor group sizes in the DeathCountGroups array. This array however is not even initialized (i.e. it doesn’t exist) on quests that do not track death counts. REAssaultSC_FactionScript does not check whether the quest is actually using that functionality before it calls REScript. In fact, it can’t check it because there is no property nor variable on that script to tell it.

To fix this, I added a check to the offending function on REScript to skip the code if the DeathCountGroups is not initialized.

Loading...

Available keyboard shortcuts

Tasklist

Task Details

Task Editing