Space Engineers

Space Engineers

Not enough ratings
Battery & Gas
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
387.820 KB
18 Jan, 2021 @ 3:38am
23 Apr, 2022 @ 10:35am
2 Change Notes ( view )

Subscribe to download
Battery & Gas

Description
Program Battery & Gas
by Seamus Donohue of EVE University
Saturday, April 23, 2022, Space Engineers version 01.200.032

This program displays the current and maximum amounts of energy, oxygen, and hydrogen on the construct (ship or station) on a text surface of all blocks of that same construct whose Custom Data field contains the keyword "BatteryAndGas" (without the quotes). If the block has multiple text surfaces, then a number must be included on the same line in the Custom Data field, such as "BatteryAndGas 0" or "BatteryAndGas 1".

If a block (such as a cockpit) has multiple text surfaces, then the keyword and an integer needs to appear on a single line in the Custom Data for the block.

The arguments "showzero", "hidezero", and "togglezero" control whether this program will display "No Storage" or simply nothing for resource types that don't have any storage blocks present. For example, if the construct does not have any gasoline tanks, then "hidezero" will omit gasoline being mentioned in the display and "showzero" will display "Gas: No storage".

The argument "all" will show the sum total resources for all connected ships and stations.
The argument "ship" will resume the default behavior of only counting the resources of the ship the Programmable Block running this script is located on.
This program does not, under any circumstances, attempt to display information on text surfaces in other constructs.
2 Comments
3dfxorchid 31 Dec, 2022 @ 3:55pm 
Can you please some Pictures or an sample video pls, to understand
Ryne 7 Jul, 2021 @ 6:14am 
What should I do if I want the information displayed on the LCD?