It patches the BarterMenu initializer function to ensure NPC vendor data (which is mandatory for the linked vendor chest to be found) is present by the time the code is about to populate the item entry list. As for why vendor data is missing, that can come from both vanilla design as well from engine bugs that mostly affect settlers. The vanilla code sometimes just doesn't set it even when native functions GetOffersServicesNow() and IsInFaction(SomeVendorFaction) are True. This usually happens after fast traveling to a location where there are many actors (e.g. at settlements). It also patches GetOffersServicesNow(). This function is often called by the actor background process. The plugin doesn't alter its behavior but adds a simple "clear invalid vendor data" statement to it (checks if the NPC is actually a member of the vendor faction and if not, clears it because vanilla code doesn't always do it (not sure why. Can happen after settler assignments). Thus, the vanilla background process evaluates NPC vendor data in the update phase).
Thanks for the detailed reply, I have had this issue happen to me once and was trying to determine whether it was being caused by a mod conflict on my end, or whether it was a vanilla bug that I should try to fix using your mod (latter seems to be the case).
While download and endorse then. :thumbsup:
Also, thanks for uploading versions for last-gen for those of us who chose not to update, can't stress how useful that is to some of us.
Thought this would fix the Bunker Hill vendors not having inventory, especially Joe Savoldi. All this does is freeze my PC any time I get near Bunker Hill. And yes this was the problem. I tested it over and over and when I unistalled it, all was well.
23 comments
And after the initial trade dialog, I can't talk to her anymore, she will just chase me away
I have reloaded the save 2 times and it's the same.
EDIT: Wait, I just realized I forgot to install this >_> disregard
While download and endorse then. :thumbsup:
Also, thanks for uploading versions for last-gen for those of us who chose not to update, can't stress how useful that is to some of us.