Stationeers

Stationeers

评价数不足
Triple Gauges Gas Tank Display | ModularConsole
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
103.585 KB
10 月 7 日 下午 3:26
10 月 12 日 下午 6:48
6 项改动说明 ( 查看 )

订阅以下载
Triple Gauges Gas Tank Display | ModularConsole

在 Charles 的 2 个合集中
ModularConsole IC10 Codes
2 件物品
Charles' Scripts
5 件物品
描述
Description
Expanded version of my single gauge script. This version allows you to monitor the fill level of up to 3 different tanks on different gauges from ModularConsoleMod. It also changes the colour of the gauge depending on fill level.

Even though this version works with a single tank, feel free to also check out my other variant which is intended to track one tank per IC housing/chip:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3582457325

Please let me know if you run into any issues or if you'd like a specific variant.

Instructions
Devices Setup
  1. Connect IC Housing, Gas Tanks (any type) (up to 3), and ModularConsole terminal (with at least one gauge display) on the same cable network.
  2. [optional] Rename gauge(s) and gas tank(s) to unique names (greatly simplifies pin setup)
  3. Follow pin setup steps listed below
  4. Turn on IC housing
  5. Check that gauge(s) display current fill level
Pin Setup
The script will automatically skip sections when monitoring less than 3 tanks, so it is crucial that you only set the pins required as per the following.
Monitoring 1 gas tank: only set pins d0 & d3
Monitoring 2 gas tanks: set pins d0, d1, d3, & d4
Monitoring 3 gas tanks: set all 6 pins
  • d0 (Gauge1) --> should be set to the desired gauge for the first gas tank
  • d1 (Gauge2) --> should be set to the desired gauge for the second gas tank
  • d2 (Gauge3) --> should be set to the desired gauge for the third gas tank
  • d3 (GasTank1) --> should be set to the first gas tank
  • d4 (GasTank2) --> should be set to the second gas tank
  • d5 (GasTank3) --> should be set to the third gas tank
Essentially, each row of pins is a pair. All the pins on the left of the housing are for gauges, and all the pins on the right are for gas tanks.
Each pair (d0 & d3, d1 & d4, d2 & d5) can actually be set in any order, if a gauge is not assigned, the script will automatically skip that section.