Welcome to the AFK Mods bug tracker. In order to report an issue, you need to have a VALIDATED account to post one. Once you have followed the link the registration email sent you, please select a project from the drop down menu below. Select “Open New Issue” and fill out the form with as many details as possible.

Please also consider sending your bug report to Bethesda if you are reporting on an issue with Skyrim Special Edition, Fallout 4, or Starfield. Doing so will help everyone on all platforms.

Issue Data
Status: Closed
Issue Type: Bug Report
Project: Unofficial Fallout 4 Patch
Component: Fallout 4: Vanilla
Category: Papyrus
Assigned To: Sclerocephalus
Platform: All
Severity: Very Low
Votes: 0
Watching: N/A
Opened By Sclerocephalus on Nov 21, 2018 1:04 pm
Last Edited By Sclerocephalus on Sep 12, 2019 5:41 am
Closed By Sclerocephalus on Sep 21, 2019 5:32 am
Resolution: Fixed
Comment: Fixed for UFO4P 2.0.9

Issue #25354: MinRadiantOwned10ChangeLocOnly - none error

 
[11/21/2018 - 05:17:06PM] error: None: is not a valid object to check distance with.
stack:
[MinRadiantOwned10ChangeLocOnly (00109D73)].MinRadiantOwned10Script.RegisterForDistanceLessThanEvent() - "<native>" Line ?
[MinRadiantOwned10ChangeLocOnly (00109D73)].rescript.Startup() - "C:\Users\Dr. Peter Haas\AppData\Local\Temp\PapyrusTemp\REScript.psc" Line 174
[MinRadiantOwned10ChangeLocOnly (00109D73)].MinRadiantOwned10Script.Startup() - "g:\_F4\Art\Raw\Scripts\MinRecruitQuestScript.psc" Line 230
[MinRadiantOwned10ChangeLocOnly (00109D73)].Fragments:Quests:QF_MinRadiantOwned10ChangeLo_00109D73.Fragment_Stage_0010_Item_00() - "g:\_F4\Art\Raw\Scripts\Fragments\Quests\QF_MinRadiantOwned10ChangeLo_00109D73.psc" Line 12

Related Issues: 27439  

Comments

2 comment(s) [Closed]
Sclerocephalus said:
 
:facepalm:

Now that's the stuff FO4 is infamous for: MinRadiantOwned10ChangeLocOnly extends MinRecruitQuestScript which extends REScript and it's a convoluted mess because the extensions do not properly overwrite the functionality of their parents.

If the quest runs its startup, the Startup() function on MinRecruitQuestScript is called. The first thing this does is to run the StartUp() function on the parent script, i.e. REScript, and that function tries to register for a distance event with the RE trigger because there is a RangeCheckDistance property other than zero specified. This is required because MinRadiantOwned10ChangeLocOnly, whose startup runs last, will register for a distance event with one of its quest aliases.

Remains one problem though: if RangeCheckDistance is not zero, REScript will try to register for a distance event with its myTrigger property no matter what, and this fails because there is no trigger: the minutemen quests are using the functions on REScript but they are not started from a trigger. It would have been better here to define a new property for the distance on one of the child scripts: in order to avoid kicking off special code on REScript that is predestined to fail - but they didn't. Thus, we have just another misuse of REScript here: one of its properties being used for other purposes, and not caring the least about superfluous code running as a result of that.

Will add another sanity check.

Sclerocephalus said:
 
Will also make a new ticket for the unknown quest objectives, because that's an entirely different error.

Showing Comments 1 - 2 of 2