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!

Components go negative but default Medium "categories" setting showing net gain

spacefiddle

Well-Known Member
Messages
576
Look at building mats here -

1619278385387.png
Steel and Wood have gone critically negative, somehow.... daily updates are still decrementing those components. However, in the detault view for the mode I chose, I only saw "building materials" with a net gain per day, since the other components were incrementing.
Additionally, the negative components are being added together with the others when calculating my storage use - so Steel and Wood are effectively giving me almost 10k bonus "phantom" storage, which the other components are gleefully filling up - they're subtracting from my active storage use.

It seems that components in the workshop are not being used for daily operating costs, despite the "use mats from workbench" option being on. Does that option not affect the operating costs? If so, was I supposed to be actively donating directly to the City Planner's Desk regularly? The option in the menu makes it sound like that's unneccesary, but plots are shutting down due to unpaid operating costs since individual components were negative, despite the Category view showing me plenty of available resources.

Manually paying costs IS taking from the workbench, because I am able to run around and hit up the ASAMs on the shut-down plots and turn them back on, without donating to the Planner's Desk.

I'm somehow in a place where Starlight Drive-In, with 11 people, is eating almost 400 steel net loss per day, despite having the advanced scrapyard from Katherine Drake plus some other plots. Other settlements are similarly showing huge daily deficits once you expand the view to look at individual components.

And, of course, the shutdowns every daily update have a domino effect of killing links / shutting down more plots / causing more shortfalls.

And lastly a question: the intro text for mode selection made it sound like if I chose the middle option, 4 categories, then I "only need to track Building Materials," for example, making it sound like any of them will work for a building mat cost. However plots are still demanding individual components, even if others in the same category are available, and shutting down (and possibly also still debiting the total anyway, driving it into negatives!). Is this supposed to be happening in this mode?
 
I have a similar resource issue in my save. There are several people having similar negative resource issues and it's lot clear yet what causes it.

Can you remember on which version of ss2 you started that save? There was a bug which caused scrap being added instead of being substracted when building plots and not having enough resources in the settlement you're building in. When the resources needed were pulled from the network the bug happened. I suspect this having caused my resources to go massively off the rails.
What you say about the operating cost and e.g. massive steel usage is new to me.

Check out those posts:

 
Huh.... interesting, and you know what, I initially set up the game with option 3 - component level tracking. This was not conducive to get up and running quickly (you need some pretty hardcore components right off the bat, to do anything at all), and I was advised to try the middle option if i didn't want it totally ez-mode.

So early on in this playthrough, I WAS at component-level requirements, and MCM'ed it to the 4-Categories option.

I wonder if this change is either 1) not supported, or 2) the origin of the breakage where some systems are still tracking components but others are going by the categories. It seems like it would be a pretty terrific coincidence if it wasn't related.

I see msalaba mentioned that massive negative shortfalls were a known issue with no root cause yet identified - but i haven't seen anything on the order of millions like you did. In my game it seems like costs are debiting the total even when there isn't enough, causing it to go negative, and daily updates keep making it worse.

No idea why some settlements are demanding several hundred steel, or wood, per day, even with active Industrial plots present; but this also might be related to my switching the resource granularity.

OK, thanks. I think i'll create a new profile and start a new game with consistent settings, see what happens.
 
New game, as soon as I exited the Vault and loaded mods I went into MCM and set all settings for everything the way I want them - including the Medium "4 Categories" option for SS2, so it's saved and in place before the SS2 systems activate.

Sure enough, once Jake had me slapping down tutorial plots, my HUD widget is only showing the 4 categories - not the full breakdown. So: switching from Full Components to Four Categories, after the SS2 quests and systems kicked off, broke everything badly.

From my screens above you can see that even tho I am in 4-cat the systems are still tracking individual components, and having some systems care about them while others don't is almost certainly what went wrong here. This is my widget now on a new game started from a clean, modless save:

1619309120280.png

I suspect this solves the major issue in my case but that negative 14 million adhesive or whatever is on another level entirely....xD

@msalaba the bad references, arrays out of range, and other Bad Craziness seems to be an artifact of half the systems using one setting, while some continue to to look for the individual components. If this wasn't known or expected, might be good to note in new-player materials somewhere that switching this setting, once you've kicked off SS either thru meeting Jake or via the tape directly, is not supported.
 
the bad references, arrays out of range, and other Bad Craziness seems to be an artifact of half the systems using one setting, while some continue to to look for the individual components. If this wasn't known or expected, might be good to note in new-player materials somewhere that switching this setting, once you've kicked off SS either thru meeting Jake or via the tape directly, is not supported.
It sounds like something really went south on you! How many networked settlements did you have? How long did you wait from changing the setting until you tried to build something, build/upgrade a plot or other virtual resource calculating activities? Maybe bad RNG caused a daily update right as you changed the setting. It might need some code to delay the change if a daily update is in progress... I know I have changed it a few playthroughs ago. Both ways. I do not recall having any negative numbers in the HUD. The chance of success might increase if done in an interior location like Home Plate.

The only negative numbers I see are the daily numbers. Steel is the worst. I'll have like -3500 daily steel and when the update runs, I can watch the network amount of steel increase. That one is a total head scratcher.

I hear you about the "Bad Craziness." I looked at my Papyrus log and found it was looking for a Struct in a script that didn't exist from a test I did back in Feb. and a bunch of other missing test junk... The worst part is I'm pretty careful not to make saves when testing stuff... DOH! New game #11 for me...

Edit-
It seems that components in the workshop are not being used for daily operating costs, despite the "use mats from workbench" option being on.
IIRC, that only happens if the settlement is loaded... i.e. The Player is there... I think. :scratchhead
 
Aha - new game, Virtual resource panel for the settlement shows 196 caps, but the Junk Heap i just built shut down "unpaid operating costs" of 2 caps, which i paid manually - and it started right up.

So it seems there is still some sort of issue with settlements unable to access the Virtual resources properly, and plots shutting down as Unpaid even though the necessary resources are available.
 
I know I have changed it a few playthroughs ago. Both ways.
When you switched it, did the HUD elements match the new setting properly? I didn't realize that mine did not. When I went from All Components to 4-Categories, as you see with all the huge negative number screenshots, my HUD widget remained the All Components version - and parts of the system were still demanding specific components.

Your suggestion about having possibly pulled the rug out from under SS2 while it was running a daily update makes sense. I can't imagine that this kind of change, while it's actually processing components, would be healthy for it at all :grin .Checking for running updates and holding that setting's changes until they finish would probably go a long way to preventing most of this.

In my new game, having chosen all options BEFORE summoning Jake with the beacon, the HUD element is properly only showing the categories. Moreover, the daily numbers currently make sense for what (little so far) I have built.

In the earlier madness it wasn't just the daily change that was negative - it was my totals for current inventory showing negatives (see screens), which in turn had the effect of those negative numbers being SUBTRACTED from my storage totals, when my storage usage was tallied up (since they were negatrive numbers.....) And in the new current game which is mostly behaving - as just mentioned, a plot just failed because it claimed it couldn't afford 2 caps - despite there being 196 caps in Virtual, according to the HUD widget. So there is some lingering issue with settlements, on daily update, not accessing the Virtual resources properly.

Edit: check that, DEFINTIELY an issue. This new game is 2 hours old. Jake just gave me my box of ASAMs and I just recruited Old Paul. I'm at the step where it says to build the basics for everyone - and ALL plots just failed their costs on daily update, despite my not only having 196 caps showing in Virtual but i specifically donated 100 caps manually via the Planner Desk to make sure. And all Industrial and Agri plots just shut down saying they didn't have the caps, in this new game.

...sure enough, logs are showing the exact same errors from ResourceManager, pertaining to Virtual Resources - bombing out: @msalaba are there any more tests or specific things i can do in this relatively clean file that might help nail this down?


Code:
[04/24/2021 - 08:53:26PM] error: Array index -1 is out of range (0-9)
stack:
    [SS2_ResourceManager (0F020B1E)].simsettlementsv2:quests:resourcemanager.IsVirtualResourceInCategory() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\ResourceManager.psc" Line 1128
    [SS2_PlotManager (0F00EB47)].simsettlementsv2:quests:plotmanager.GetCostIcons() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\PlotManager.psc" Line 6265
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.TryToUnlockLevel() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 4523
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.AssignPlotPlanSet() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 2162
[04/24/2021 - 08:53:26PM] error: Cannot access a variable of a None struct
stack:
    [SS2_ResourceManager (0F020B1E)].simsettlementsv2:quests:resourcemanager.IsVirtualResourceInCategory() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\ResourceManager.psc" Line 1128
    [SS2_PlotManager (0F00EB47)].simsettlementsv2:quests:plotmanager.GetCostIcons() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\PlotManager.psc" Line 6265
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.TryToUnlockLevel() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 4523
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.AssignPlotPlanSet() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 2162
 
Last edited:
Code:
[04/24/2021 - 08:53:26PM] error: Array index -1 is out of range (0-9)
stack:
    [SS2_ResourceManager (0F020B1E)].simsettlementsv2:quests:resourcemanager.IsVirtualResourceInCategory() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\ResourceManager.psc" Line 1128
    [SS2_PlotManager (0F00EB47)].simsettlementsv2:quests:plotmanager.GetCostIcons() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\PlotManager.psc" Line 6265
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.TryToUnlockLevel() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 4523
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.AssignPlotPlanSet() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 2162
[04/24/2021 - 08:53:26PM] error: Cannot access a variable of a None struct
stack:
    [SS2_ResourceManager (0F020B1E)].simsettlementsv2:quests:resourcemanager.IsVirtualResourceInCategory() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\ResourceManager.psc" Line 1128
    [SS2_PlotManager (0F00EB47)].simsettlementsv2:quests:plotmanager.GetCostIcons() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\Quests\PlotManager.psc" Line 6265
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.TryToUnlockLevel() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 4523
    [ (FF006CC9)].simsettlementsv2:objectreferences:simplot.AssignPlotPlanSet() - "C:\Program Files (x86)\Steam\steamapps\common\CC-F\Data\Scripts\Source\User\SimSettlementsV2\ObjectReferences\SimPlot.psc" Line 2162
This is likely caused by some improperly set values in the ResourceManager.VirtualResourceCategoryMaps property. It seems that IsVirtualResourceInCategory searches ResourceManager.VirtualResourceCategoryMaps for an index into the ResourceManager.VirtualResourceCategories property. In this case in particular, it is searching if an AV passed into IsVirtualResourceInCategory has a index value of 0. This value corresponds to SS2_VirtualResourceCategory_Scrap, which is the parent category for all scrap categories. However, all the scrap categories found in ResourceManager.VirtualResourceCategoryMaps have an index value of -1. So when this function is called with any of the scrap category AVs passed in, it will always throw an index out of bounds error.
 
Huh. Interesting. I was happily switching back and forth between scrap settings in my game as well. I did switch off operating cost pretty early, though.

How do I create and access the logs? I'd like to have a look as well.
 
Huh. Interesting. I was happily switching back and forth between scrap settings in my game as well. I did switch off operating cost pretty early, though.

How do I create and access the logs? I'd like to have a look as well.
Go to (most likely)
Documents\My Games\Fallout4\
and edit Fallout4Custom.ini - edit the one that has CUSTOM in the name, not fallout4.ini!
Look for a section that starts
[Papyrus]
If it doesn't already exist, make one. It should have these entrries below it - add them if they aren't there or, more likely, change =0 to =1, so it looks like:
Code:
[Papyrus]
bEnableLogging=1
bEnableTrace=1
bLoadDebugInformation=1
bEnableProfiling=1

Your logs will then be in the Logs\Script subdirectory of the directory you found Fallout4Custom.ini in. Inside that, the most recent or current file will be named
Papyrus.0.log
 
Top