Oxygen Not Included

Oxygen Not Included

Container Tooltips
10 Comments
Identifier  [author] 8 Oct @ 11:23pm 
Yup, should be fixed now.
tox2ik 8 Oct @ 10:05pm 
was the latest update to fix a "negative index" bug?
Identifier  [author] 7 Oct @ 8:06pm 
Thanks AcTePuKc. I checked out your code but it looks like there are a lot of other changes in there as well... Can you make a PR into https://github.com/Identifier/ONIMods? Thanks!
AcTePuKc 7 Oct @ 4:48am 
I made a quick test fix locally (guards the disease index; falls back to ID when it can’t resolve). If you want to try it:

Built DLL for testing:
Extract in Dev [github.com]

Source (so you can remake / review):
The code [github.com]

If this isn’t cool, say the word and I’ll pull the binaries/repo links. Happy to convert this into a PR or adjust the approach if you prefer a different fix.
Identifier  [author] 7 Oct @ 2:26am 
Thanks for reporting this guys. I updated with a try/catch around the code that tries to get the formatted disease name from the game. Could you try it and see if it's fixed now? (If it's unable to get the disease name, it simply shows the disease ID instead.)
AcTePuKc 6 Oct @ 5:28am 
Have the same issue as -AIAe- , thought it's BIC but it's this mod all along.
-AIAe- 2 Oct @ 2:36am 
Error analysis
Error message ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index
Root cause: error occurred in GameUtil GetFormattedDiseaseName method, when try to according to disease index for disease name, scale of the index set is beyond the disease. This is usually because modules (such as ContainerTooltips) pass invalid indexes when handling disease information of storage containers.
Trigger point: error from ContainerTooltips module StorageContentsSummarizer. FormatDiseases method, the module trying to storage containers (e.g., sink, toilet, etc.) to generate content summary, but the disease index mismatch.
I analyzed it with AI and perhaps that's the reason
-AIAe- 2 Oct @ 2:19am 
I don't know what the reason is. It just broke down all of a sudden,I placed the log file in pastebin
part1.https://pastebin.com/DJCBtEUx
part2.https://pastebin.com/zn6Q8gRh
-AIAe- 2 Oct @ 2:16am 
This comment is awaiting analysis by our automated content check system. It will be temporarily hidden until we verify that it does not contain harmful content (e.g. links to websites that attempt to steal information).
吐泡泡的小鱼 28 Sep @ 10:30pm 
在悬停于存储箱、储水池以及其他任何能够存储内容物(甚至是复制品!)的容器上时,直接在提示信息卡片中显示存储内容。