缺氧
评价数不足
Container Tooltips
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
151.681 KB
9 月 28 日 下午 4:37
10 月 23 日 下午 8:24
5 项改动说明 ( 查看 )

订阅以下载
Container Tooltips

描述
Shows storage contents directly in the tooltip info cards when hovering over containers such as storage bins, reservoirs, and anything else that can store contents (even dupes!)

Update: Now also shows which filters have been selected for storage containers and things like element sensors as well

Thanks to 吐泡泡的小鱼 for the translation of the mod description:
在悬停于存储箱、储水池以及其他任何能够存储内容物(甚至是复制品!)的容器上时,直接在提示信息卡片中显示存储内容
10 条留言
Identifier  [作者] 10 月 8 日 下午 11:23 
Yup, should be fixed now.
tox2ik 10 月 8 日 下午 10:05 
was the latest update to fix a "negative index" bug?
Identifier  [作者] 10 月 7 日 下午 8:06 
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 10 月 7 日 上午 4:48 
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  [作者] 10 月 7 日 上午 2:26 
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 10 月 6 日 上午 5:28 
Have the same issue as -AIAe- , thought it's BIC but it's this mod all along.
-AIAe- 10 月 2 日 上午 2:36 
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- 10 月 2 日 上午 2:19 
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- 10 月 2 日 上午 2:16 
此留言正在等待我们的自动内容检查系统分析。在我们证实其内容无害之前(例如试图窃取信息的钓鱼站点链接),留言将暂时隐藏。
吐泡泡的小鱼 9 月 28 日 下午 10:30 
在悬停于存储箱、储水池以及其他任何能够存储内容物(甚至是复制品!)的容器上时,直接在提示信息卡片中显示存储内容。