Nanite-Construction-System / NaniteConstructionSystem

A continuation of scripts for the Nanite Construction System
14 stars 13 forks source link

Nanites seem to stop working over time - Also, Ore Detector being active eventually introduces world update lag #192

Open Virkis opened 2 years ago

Virkis commented 2 years ago

So I've been running this mod for close to 100 hours now, and went through two different save files with it. First one was on an existing save where the mod was added post creation, the second was on a new world where the mod was running from the start. What prompted the need for a restart was the eventual world/voxel update lag that would happen with the Ore Detector scanning.

It should be noted that once this lag started, though it could be cleared up by turning the detector off, the Nanite side of the mod would become incredibly slow or have "InvalidTarget" and be stuck at using 0.00001MW and doing nothing a majority of the time.

Power cycling the nanite controller or ore detector would not resolve this issue, nor would exiting the game or reloading the save. Some things would get built, other things wouldn't. I have included the last log file with DebugEnabled that ran from the time I loaded the save with the issues, to when I exited the game to remove the mod.

[NaniteConstructionSystem.log](https://github.com/Nanite-Construction-System/NaniteConstructionSystem/files/9076120/NaniteConstructionSystem.log

I believe 03:07 is around when I started disassembly of the nanite controller and ore detector, which is why there is a long period of "current state | new state: disabled."

Config.txt

Also included is the config file I tweaked shortly after I noticed the update lag appear. Turning down the scanning frequencies to something like 50 and 25 made the lag go from seconds of delay to maybe 250-500ms from when something was broken to it dropping components/rocks.

It should also be noted that within the Shift+F11 World Stats screen, the sim speed is at full 1.0 and the thread is maybe 25-30% loaded while all of this is going on, leading no indication of a problem from those stats.

-Edit-

I should also add that, as far as I know, none of the mods I am using otherwise has any sort of influence on the vanilla ore detection. Nanite Control Facility made me take a hard look at my mod list to ensure there were no conflicts, and even resulted in me trimming down a solid number of mods that were either made redundant or ended up seldom being used.

Virkis commented 2 years ago

It does seem that removing the mod, saving, reloading the save, saving again, then readding the mod clears up the issue enough to make it usable again, so that's good to know.

Just wanted to say the mod is awesome otherwise. It's what makes me want to try everything I can think of on this end to figure out the quirks. It's incredibly handy to have when in solo survival.