Open hhyyrylainen opened 9 months ago
Maybe this or another issue also can make the ingested matter get stuck at a different value (0.1).
A save showing this problem would also be likely useful.
Potential steps to reproduce the issue
I engulfed some cell, waited until ingested matter bar get's low (0.3, for example) and then enter editor (I entered via P button cheat if it matters)
But I couldn't get the bug to appear like that, this is the cell build I had:
Does that happen only when leaving editor?
Also it can be fixed by making digested enulfable disappear not when 100% digested but a bit ealier by tweaking one constant. There will likely be side effects though
That could explain that there is some bug related to the fully digested thing destroying and removal from the list of engulfed things. There's separate code for handling something being fully digested and needing to be removed. So that could be a pretty good clue to where to look in the code for a bug.
A potentially related new issue: https://github.com/Revolutionary-Games/Thrive/issues/5013
This still happens but I noticed that basically the same prey species but replacing the hydrogen sulfide parts with glucose using parts allows digesting them all. So this could be some bug in the not-useful compound digestion.
Looks like the ingested matter bar showing 0 (or a low value) is back with an engulfable being stuck not progressing anymore. For ECS I had to remove one NaN compound clamping due to multithreading in the digestion processing, but I was hoping everything else would compensate for that (there's a separate issue about checking that: https://github.com/Revolutionary-Games/Thrive/issues/4700). Though I'm not even fully sure what is the root cause here, but that's at least somewhere to start. I already tried to add various safety checks in the code but that didn't solve the issue: https://github.com/Revolutionary-Games/Thrive/pull/4793
Here's a save that shows the stuck bar: https://dev.revolutionarygamesstudio.com/files/Public/Testing%20Resources/Saves/toxin_digest_bug.thrivesave