缺氧
172 次評價
Pipe Germ Info
4
   
獎勵
加入最愛
已加入最愛
移除最愛
Mods: Tweaks, UI
檔案大小
發佈於
更新時間
2.969 KB
2020 年 11 月 4 日 上午 1:34
2021 年 1 月 18 日 上午 2:18
2 項更新註記 (檢視)

訂閱以下載
Pipe Germ Info

描述
Update!
This mod is now fully tested and supported in Spaced Out DLC, thanks to a kind donation from fletcher. Thank you!


Pipe Germ Info will add the germ count information to pipe contents, also when the germ overlay is not active.

By default, the germ count for pipe contents is only displayed in the germs overlay screen. When debugging a water purifier system, I found that very inconvenient. With this mod, the germ count is always displayed with the pipe contents, no matter if the germ overlay is active or not.

Notes
- When there are no germs in a pipe, the germ info line is simply not displayed. So if it seems like the mod is not working, first make sure that there are actually germs in the pipe you are looking at.
- This mod has nothing to do with surface germs, it only changes the display of the contents of a pipe.

Localization
Pipe Germ Info uses the in-game localized string, so it should display in whichever language you have installed/configured.

Mod conflicts
Pipe Germ Info should NOT conflict with any other mods currently available on the workshop.

Technical details
In case you are curious, or a modder that suspects Pipe Germ Info is conflicting with your mod, here are the technical details. This mod uses Harmony to simply override the Database.BuildingStatusItems.Pipe.resolveStringCallback function with an exact copy of the in-game original, except the check for whether or not the germ overlay is active, has been removed. Because this is a callback function and it reformats the template string before returning, I could not figure out a way to use Postfix(), and thus had to replace the function instead. This function is unlikely to change in new releases of the game, and I could not find any other mods that access this particular callback, so I don't expect any future issues. If you have a mod that overrides the same callback, please let me know!

Source code
The source code is available here: https://github.com/molsen234/ONI-PipeGermInfo

Bug reports
If you have issues, you can try to file an issue here: https://github.com/molsen234/ONI-PipeGermInfo/issues or create a comment below.

Background history
I needed this to debug a water purifier setup, so thought I might as well share it in case someone else would find it useful. It saves the hassle of having to switch back and forth between the germ overlay and the liquid/gas overlays when checking germs in the pipes.
熱門討論 檢視全部(1)
0
2021 年 11 月 5 日 上午 6:51
Nov 04th 21 update.
Denis Noob On Line
34 則留言
winnie 2022 年 11 月 21 日 下午 3:19 
chemicalvamp 2022 年 9 月 14 日 下午 4:38 
Still out of date.
MoonLiteNite 2022 年 7 月 25 日 下午 4:20 
Out date date as of july 25th 2022
racso 2022 年 2 月 12 日 上午 10:01 
Indeed, when I posted that I had my dates confused. Lol.
Nexus 2022 年 2 月 11 日 下午 11:03 
@racso
You do realise that was over a year ago, right?
racso 2022 年 1 月 7 日 下午 7:44 
The mod was just updated on 1-18-2021 but still shows as out-of-date in the game and cannot enable it. Tried forcing Update with Stephen's Mod Update but still showing out-of-date
Bardagh 2022 年 1 月 6 日 下午 4:24 
@Baktosh thank you <3
Baktosh 2022 年 1 月 5 日 下午 7:22 
There is a Pipe Germ Info Fixed which apparently works where this one doesn't. I found that one worked with the DLC
DeAnnaTheTart 2021 年 12 月 22 日 上午 10:08 
this mod is out of date and not working. is an update planned?
Bardagh 2021 年 12 月 9 日 下午 8:05 
Please update this <3