the Sim Settlements forums!

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Virtual resources going haywire in v2.2.1

YudaiNao

New Member
Messages
3
Ever since updating, my virtual resource counts keep jumping up and down like crazy. I had 6~7k machine parts and organics before and I've seen their numbers increase by the tens of thousands, even over 100k at one point, and then drop back down. This is with only a single machine parts and a single organics plot and around 15k total storage. It's most noticeable after fast traveling, but I can sit there doing nothing with the settlement HUD open and watch smaller amounts of materials being added to and subtracted from all 4 scrap categories as little floating numbers. It seemed to start as soon as I lowered the maximum amount of resource storage by taking a settler off a machine parts gathering plot, and again when I reloaded to an earlier save and built a shipping container to up the maximum storage. Coming into this patch my resources were in excess of my maximum virtual storage limit because earlier glitches had been erroneously miscounting the total as lower than it really was, allowing more to generate than should have; now the total shows virtual storage completely full, like 14600/14600, despite having much more than that.

I don't think this is just a display glitch, either. It does in fact seem to be stopping my building materials and rare materials plots from generating resources (although it's hard to know if I can trust the totals displayed in my HUD), but when I installed the Excess Resources Manager mod to dump 10k machine parts it only removed around 5k, which I believe was the amount I should have had at that time if it weren't for the glitch. Building projects in the HQ workshop menu are also reporting the inflated numbers, same as the settlement HUD. I was able to temporarily fix the totals by using ss2_resourcemanager's adjustsettlementvirtualresource command on the workshop ID of my main industrial settlement, but that didn't last long before the numbers spiked right back up into the tens of thousands.

I'm pretty sure I don't have any mods installed that would be affecting virtual storage (other than SS2 Excess Resources Manager), much less any I'd just installed at the same time as the update. Here's my load order, which is around 30 mods total:
00 Fallout4.esm
01 DLCRobot.esm
02 DLCworkshop01.esm
03 DLCCoast.esm
04 DLCWorkshop02.esm
05 DLCWorkshop03.esm
06 DLCNukaWorld.esm
07 ArmorKeywords.esm [Version 8.6.0]
08 XDI.esm
09 HUDFramework.esm
0A WorkshopFramework.esm [Version 2.2.3]
0B SS2.esm [Version 2.2.1]
0C SS2_XPAC_Chapter2.esm [Version 2.2.1]
0D mso_sms.esl
0E hangmansalleypatch.esp
0F ValdacilsItemSorting-00-ValsPicks-DLCVersion-VanillaWeight.esp
10 ValdacilsItemSorting-ZY-DLCAutomatron.esp
11 ValdacilsItemSorting-ZY-DLCNukaWorld.esp
12 ValdacilsItemSorting-ZY-DLCFarHarbor.esp
13 ValdacilsItemSorting-Aid.esp
14 ValdacilsItemSorting-Ammo.esp
15 ValdacilsItemSorting-ArmorBySlot.esp
16 ValdacilsItemSorting-CosmeticsByClass.esp
17 ValdacilsItemSorting-ExplosivesSortTop.esp
18 ValdacilsItemSorting-Junk+DEF_INV.esp
19 ValdacilsItemSorting-Misc.esp
1A ValdacilsItemSorting-Mods.esp
1B ValdacilsItemSorting-NotJunk.esp
1C ValdacilsItemSorting-Perks.esp
1D ValdacilsItemSorting-Weapons.esp
1E ValdacilsItemSorting-ZY-DLCContraptions.esp
1F ValdacilsItemSorting-ZY-DLCVaultTec.esp
20 ResetHome.esp
21 SS2Extended.esp [Version 2.2.0]
22 PCDugTriangularRevolution.esp
23 ss2_caravanshipment.esp
24 FO4Hotkeys.esp
25 HoloTime.esp
26 LongerPowerLines3x.esp
27 Loot Detector.esp
28 OutfitSwitcher.esp
29 RespecHolotape.esp
2A SS2_XDI Patch.esp
2B MS SkipPreWar.esp [Version 1.0.0]
2C Visible Idle Markers.esp
2D SS2 Excess Resource Manager.esp
2E Eli_Faction Housing Overhaul - AiO.esp

This bug is making it impossible to build anything as my virtual resource storage is always full of organics and machine parts, leaving no room for building materials or rare materials; I can't even donate any from my stockpile of junk. Is it safe to roll back to 2.2.0 with my current 2.2.1 save, or do I need to start back on my pre-update save?
 
It seemed to start as soon as I lowered the maximum amount of resource storage by taking a settler off a machine parts gathering plot
That checks out with where the bug is in the code.
When the update runs each day it will correct the base resource numbers so they don't exceed total storage capacity - but they will spike again if maximum storage drops because of the bug.
Because the component storage amounts exceed the maximum storage that may cause the issue with Excess Resource Manager not reducing the correct amount.
 
Glad to know this is a known issue-- with a fix, no less-- and not just affecting me. Is there anything I can do to solve it in the mean time, like go through each of my settlements and dump out all the machine parts and organics from their workshops with ss2_resourcemanager? That didn't work when I just tried it with my industrial hub, but I do have industrial plots and storage containers elsewhere.

Edit: Went ahead and tried using adjustsettlementvirtualresource to remove 100k machine parts and organics from each settlement with a batch file, which of course didn't floor the value at 0, so now I have -3.4 mil resources on my total, but it does seem stable at least. Now I just have to figure out how to read each settlement's virtual resource values and only decrease them by that much instead... I don't suppose there's documentation for ss2_resourcemanager somewhere, is there?
 
Last edited:
The cause of this has been identified (it was my fault actually, whoops) and is an easy fix (a variable is not being set properly). Not sure if KingGath will do a hotfix for it or if it will need to wait for the next patch. I only just found it and have let him know about it.
that's awesome, I'd love to see a hotfix for that!
 
Is there anything I can do to solve it in the mean time
If you sleep for 24 hours, it will force the daily update to run, which should fix all the numbers so they add to your total storage. From there, it should only mess up again if your storage in a settlement drops - the problem is, there is also the bug where settlers unassign themselves and if they do that from certain plots, the storage total drops :wacko
If you give it a few days there should be either a hotfix or I could at least give you the fixed resourcemanager script.
Another option would be to roll back to the previous update, although you'd want to also go back to a save from before you updated.
 
From what I have seen, even if don't mess with the virtual storage total, one of my resources goes crazy high. Kinggath's update brings down the total correctly, but the percentages are way off and lowers my building materials to almost nothing. My only option I can think of is raising my resource minimums so they don't get dropped by the bug, and wait till I can get equal amounts in all categories. Then have equal amounts of production to keep it from going haywire again, but upkeep and upgrades are what is going to upset that balance though right? At this point, seems better to switch to Simple and wait for hotfix.
 
You may not be messing with the virtual storage total, but if a settler gets unassigned from a plot (due to a current bug with workshop framework being looked into), it can drop without you realising.
The building materials probably end up so low because when the fix is made the ratio of building materials to other resources is low (it reduces them by ratio).
I wouldn't recommend switching to simple - currently when you switch back you will just end up with thousands of building materials and nothing in the other categories. I'm submitting a change to KingGath that will instead distribute resources based on production, but it wouldn't come in until the next patch at the earliest.
 
Really? I went back and forth a few times and didn't notice that happen. I thought your mod made it so that doesn't happen? Guess I will find out the next time I try and play.
 
If you sleep for 24 hours, it will force the daily update to run, which should fix all the numbers so they add to your total storage. From there, it should only mess up again if your storage in a settlement drops - the problem is, there is also the bug where settlers unassign themselves and if they do that from certain plots, the storage total drops :wacko
If you give it a few days there should be either a hotfix or I could at least give you the fixed resourcemanager script.
Another option would be to roll back to the previous update, although you'd want to also go back to a save from before you updated.
They did eventually even out so that the total number of virtual resources actually does add up to my total storage capacity, however it's still acting pretty wonky: any time there's space free it just gets filled by machine parts and organics with almost no building or rare materials getting generated, and I'm still seeing numbers being added and subtracted in quick succession as it does so.
I'll keep an eye out for that hotfix. Thanks for getting this solved so quickly!

[ . . . ] At this point, seems better to switch to Simple and wait for hotfix.
Oh, right. I completely forgot about Simple resource mode. That's an easy fix for now.

You may not be messing with the virtual storage total, but if a settler gets unassigned from a plot (due to a current bug with workshop framework being looked into), it can drop without you realising.
The building materials probably end up so low because when the fix is made the ratio of building materials to other resources is low (it reduces them by ratio).
I wouldn't recommend switching to simple - currently when you switch back you will just end up with thousands of building materials and nothing in the other categories. I'm submitting a change to KingGath that will instead distribute resources based on production, but it wouldn't come in until the next patch at the earliest.
The latest WSFW does seem to improve the unassignment situation a lot, thankfully.
Better to have scads of building materials than organic and machine parts, I think. I can always purge them with your mod and start with a clean slate if need be.

Really? I went back and forth a few times and didn't notice that happen. I thought your mod made it so that doesn't happen? Guess I will find out the next time I try and play.
LOL. I forgot about that. Yep, you can use my mod to do that. :good
Oh nice, even better! I'll use your console to switch modes. Thanks for the tip.
 
Top