- Messages
- 5,185
I've been working on some pretty complex code to improve the way provisioner resource sharing works and kept running into the 4294 bug so I finally decided to track down the cause.
It turns out that if you have more of an unassigned resource than that settlement is producing and you leave the settlement, as soon as the game next goes to update that settlement, it applies a value of -1 * total unassigned resource production.
So for example, if you have a level 3 farm and a level 1 farm, and the level 3 is unassigned, even though you are producing 2 food, the game sees that unassigned level 3 farm as a negative and uses that value instead.
For Beds, this is likely related to shelter. Ie. if your unsheltered beds exceed your sheltered beds, it triggers the same issue.
So if you're running into the 4294 bug, the solution is to eliminate unassigned objects of that type. For Beds, ultimately the solution is to use Workshop Framework and turn off Shelter because it is a buggy mechanic.
It turns out that if you have more of an unassigned resource than that settlement is producing and you leave the settlement, as soon as the game next goes to update that settlement, it applies a value of -1 * total unassigned resource production.
So for example, if you have a level 3 farm and a level 1 farm, and the level 3 is unassigned, even though you are producing 2 food, the game sees that unassigned level 3 farm as a negative and uses that value instead.
For Beds, this is likely related to shelter. Ie. if your unsheltered beds exceed your sheltered beds, it triggers the same issue.
So if you're running into the 4294 bug, the solution is to eliminate unassigned objects of that type. For Beds, ultimately the solution is to use Workshop Framework and turn off Shelter because it is a buggy mechanic.