Ported with Open Permissions! Thank you to Glitchfinder for allowing me to port their work. <3
Nexus: www.nexusmods.com
== Description ==
Did you know there’s a problem with settler AI packages that can make settlers behave super oddly? As in “stand in a circle in the center of your settlement all night?” levels of weird? No? That’s good - it probably means your settlements aren’t too big. This is for people (and mod authors) with settlements whose girth cannot be ignored.
FEATURES
Addresses a bug involving the “Travel” procedure in the settler AI package that runs from 12-8 AM.
This fix restores normal behavior for settlers in extra large settlements, during those hours.
FAQ
- Can I install this on an existing save?
Absolutely, yes. - What even is this “Midnight Cult” bug?
Right, okay. So settlers have a bunch of different AI packages that can run depending on the time of day and what their assignments are. Several of these packages involve a “Travel” procedure that tells the settler to make sure they are inside your settlement’s area before they try to do whatever they are trying to do. In theory, this is a good idea.
In practice, this procedure can fail to end properly if the destination (specifically, the settlement’s “sandbox” build volume) is too big. This results in them getting stuck “traveling” to that settlement, where they will then stand as close to the center of the settlement as they can get. And they will stay there until another AI package comes into effect. I added a simple check that cancels the Travel procedure within a set distance of the destination.
- You said this affects multiple settler AI packages. What about the others?
This was the only one I could safely edit without doing a ton of testing. There are half a dozen other package templates that likely suffer from the same problem, but they are used by literally thousands of things in the game and so I do not feel comfortable sharing changes to those until they have received enough testing for me to be confident they won’t break your game. - Why isn’t this fixing my settlers?
Unfortunately, the midnight cult bug isn’t the only thing that can prevent settlers from moving. It is also easy to break the navmeshing in settlements, which results in them standing in place at semi-random locations in your settlement. It is also possible that another AI package is currently being used, and that package has the same or a similar bug.