缺氧
评价数不足
Mass Sensor
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
249.654 KB
2022 年 2 月 27 日 下午 7:27
2024 年 11 月 17 日 下午 7:58
6 项改动说明 ( 查看 )

订阅以下载
Mass Sensor

描述
Description

Mass Sensor reports the mass of liquids or gases it is submerged in to the resources list.

It will sum the mass of all connected tiles of an element.

This way you can keep track of any mass that you have stored in the open.

How does it work?

Every 4 in-game seconds, the sensor will detect the element at the sensor's cell, then find all connected cells of the same element, sum their mass, and update that to the resources list.

Features

- Adds the mass of any element that you have stored in the open to the resources list.
- Ability to add any sensor to the pinned resources list.
- Remembers which sensors are pinned.
- Ability to set a name to sensors.
- Clicking on a sensor on the pinned resources list will center it in camera.
- Works with compressed gases/liquids (perfect for door compressors)
- Works with any reservoir shape as long as the tiles of the element inside are connected.

- Does not have an automation port (I didn't think it will be needed)

Options
Display Options: (Controls the name of the sensor on the resources list)

- Name And Element: Will show the name of the sensor + the element that the sensor is detecting. Example: Water tank (Water)
- Name Only: Will only show the name of the sensor. Example: Water tank.
- Element Only: Will only show the element the sensor is detecting. Example: (Water)

Support

If you encounter any bugs, let me know in the comments below with steps to reproduce or any other helpful information.

Like this mod? Help me create more!
[buymeacoffee.com]

Check out my other mods

Underground Conduit

32 条留言
Shrglwyddes 9 月 1 日 上午 5:49 
Crashed in spaced out during gameplay after moving a lot of mass around , do you need a crashlog?
Shrglwyddes 9 月 1 日 上午 5:49 
at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00007] in <32082fcf57264b2ea2c4f24c30065dfa>:0
at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) [0x00067] in <32082fcf57264b2ea2c4f24c30065dfa>:0
Shrglwyddes 9 月 1 日 上午 5:49 
at NotificationScreen+<>c__DisplayClass55_0.<AddNotification>b__1 () [0x00000] in <3b73c925114143c5bad31ccbc5facdf1>:0
at UnityEngine.Events.InvokableCall.Invoke () [0x00010] in <82f243aab18c4f32918da2df41974365>:0
at UnityEngine.Events.UnityEvent.Invoke () [0x00022] in <82f243aab18c4f32918da2df41974365>:0
at UnityEngine.UI.Button.Press () [0x0001c] in <32082fcf57264b2ea2c4f24c30065dfa>:0
at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00009] in <32082fcf57264b2ea2c4f24c30065dfa>:0
Shrglwyddes 9 月 1 日 上午 5:49 
NullReferenceException
at (wrapper managed-to-native) UnityEngine.GameObject.GetComponentFastPath(UnityEngine.GameObject,System.Type,intptr)
at UnityEngine.GameObject.GetComponent[T] () [0x00021] in <82f243aab18c4f32918da2df41974365>:0
at MassSensor.Mod+DetailsScreen_OnSelectObject_Patch.Prefix (DetailsScreen __instance) [0x00020] in <8b9a1c51cd8345e1aeda7fdfd2e4b131>:0
at (wrapper dynamic-method) DetailsScreen.DetailsScreen.OnSelectObject_Patch2(DetailsScreen,object)
at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x000a7] in <7becb3f73037484c93dc2b548fe42a58>:0
at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00026] in <7becb3f73037484c93dc2b548fe42a58>:0
at (wrapper dynamic-method) SelectTool.SelectTool.Select_Patch3(SelectTool,KSelectable,bool)
at NotificationScreen.OnClick (NotificationScreen+Entry entry) [0x00105] in <3b73c925114143c5bad31ccbc5facdf1>:0
Den43k#bloodrust 7 月 17 日 上午 8:22 
NullReferenceException

UnityEngine.GameObject.GetComponent[T] () (at <82f243aab18c4f32918da2df41974365>:0)
MassSensor.Mod+DetailsScreen_OnSelectObject_Patch.Prefix (DetailsScreen __instance) (at <8b9a1c51cd8345e1aeda7fdfd2e4b131>:0)
(wrapper dynamic-method) DetailsScreen.DetailsScreen.OnSelectObject_Patch1(DetailsScreen,object)
EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) (at <7becb3f73037484c93dc2b548fe42a58>:0)
KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) (at <7becb3f73037484c93dc2b548fe42a58>:0)
(wrapper dynamic-method) SelectTool.SelectTool.Select_Patch2(SelectTool,KSelectable,bool)
SelectTool.OnLeftClickDown (UnityEngine.Vector3 cursor_pos) (at <0fc850f6a6e247dd80ffaaaf03c47ba8>:0)
PlayerController.OnKeyDown (KButtonEvent e) (at <0fc850f6a6e247dd80ffaaaf03c47ba8>:0)
KIN  [作者] 2024 年 11 月 17 日 下午 8:00 
@WolfDK
Oh hey there! I have added compatibility with FastTrack! sorry for the wait!
WolfDK 2024 年 11 月 15 日 下午 12:04 
My sensors do not have the ability to rename, and from what i can tell are also missing the Display options controls. It is likely a conflict with Fast Track, similar to what you had on Underground Conduits. Haven't checked though. (I'm BlueishTiger btw, new name, same me).
KIN  [作者] 2024 年 9 月 27 日 上午 2:47 
@Warhead @Drian
Updated for the latest game version!
Warhead 2024 年 9 月 8 日 下午 9:24 
hey so, i know it's been a while but, i really love this mod, and i can't get it to run even by it's self. i've saved the crash log, if you want to/have time to take a look. i can't find any other mod that does what this one does. so i'm very sad it's non functional rn. if anyone has any advice i'd greatly appreciate it.
Drian 2024 年 3 月 21 日 下午 4:33 
Failure