Stationeers

Stationeers

Not enough ratings
Triple Gauges Gas Tank Display | ModularConsole
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
103.585 KB
7 Oct @ 3:26pm
12 Oct @ 6:48pm
6 Change Notes ( view )

Subscribe to download
Triple Gauges Gas Tank Display | ModularConsole

In 2 collections by Charles
ModularConsole IC10 Codes
2 items
Charles' Scripts
5 items
Description
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://gtm.steamproxy.vip/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.