Space Engineers

Space Engineers

79 ratings
BatteryStatus
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
70.375 KB
19 Mar, 2019 @ 10:02am
21 Apr, 2019 @ 12:01pm
6 Change Notes ( view )

Subscribe to download
BatteryStatus

Description
Important Note
Actually a complete revision of this script was planned. The reason was that it is not possible to extend the display without making everything completely new. For example, the information can not be shown in the displays of a cockpit. This was changed with the Sprite System for LCD's. The development of this revision was stopped, in favour of another script. Which I am currently working on. It contains among other things the here presented battery display plus many more possibilities for displaying information.

New Script: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1984514349
Possible representation: https://github.com/dmorigin/se_mod_vis/wiki/BatteryStatus
------------------------------------------------------


Description:
This is a revised version of the script Battery Status Script from Lightwolf Adventures. It contains the complete functionality of the original script. Some bugs have been fixed as well as the removal of obsolete functions. The code itself has also been reworked. Several string operations, unused operations and unnecessary loop passes have been removed.

The complete code is publicly available on GitHub: https://github.com/dmorigin/se_mod_battery_status

Configuration:
The configuration is no longer done in the script itself. Instead the configuration was moved to the CustomData field of the programmable block. The script fills this field with a default configuration. If nothing is contained in the CustomData field. To restore the default configuration, the script can be called with the argument "restoreDefault". If changes have been made, the configuration must be called with the argument "readConfig".

The following configuration parameters are available:

Section "battery"
- NameTag [string]: Sets the name that will be used in specific batteries to find.
- OnlyWithNameTag [false|true]: Show only batteries that have the NameTag in their name.
- OnlyLocalGrid [false|true]: Search only within your own grid.

Section "lcd"
- NameTag [string]: Sets the name used in the LCD panels to be found.
- OnlyLocalGrid [false|true]: Search only within your own grid.
- Widescreen [false|true]: The LCD panel is a wide screen.
- Brightness [0..255]: Sets the brightness of the screen.

Section "system":
- UpdatingEnabled [false|true]: Enables automatic updating.
- UpdateInterval [Integer]: Sets the automatic update interval.

Section "display":
- OnlySmallSigns [false|true]: Show only small symbols.
- ShowBatteryTitle [false|true]: Display the title.
- ShowUnderlineBelowTitle [false|true]: Show a line under the title.
- ShowUnderlineBelowStatus [false|true]: Show a line under the status.
- ShowSeperatorInStatus [false|true]: Show a separator in the status.
- ShowBatteryAmount [false|true]: Show the number of batteries.
- ShowTotalStoredPower [false|true]: Show the amount of stored energy.

Notice
If changes are made to the script, they will be found in the GitHub repository in advance. Since I want to avoid that immature functions or errors end up in the workshop. However, it can not be excluded that these will end up in the workshop.
38 Comments
Freaky 3 Sep, 2024 @ 8:56am 
how to use this in game ?XD
shadow2121 1 Sep, 2022 @ 12:26pm 
this is really cool thancks for macking this
Lycanine 31 Jan, 2020 @ 4:54pm 
thank you @DMOrigin
DMOrigin  [author] 31 Jan, 2020 @ 3:58pm 
No, this isn't possible. But there is an alternativ script, that includes the functionality of this script. It is my new script: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1984514349
Lycanine 31 Jan, 2020 @ 5:18am 
Hello, How do I change the Title to something else instead of "Battery Status"? I'd like to have the name of my vehicle instead.
DMOrigin  [author] 15 Nov, 2019 @ 7:58am 
I don't know. I don't use any modded batteries. But, if this mod is using the mod interfaces in a correct way, then there shouldn't be any problems.
Cronyx 14 Nov, 2019 @ 8:58pm 
If I'm using modded batteries, is that going to be an issue?
Pax'Jarome 7 Oct, 2019 @ 1:14pm 
Thanks a lot, works great!
Yann-Cook 3 Jun, 2019 @ 2:45pm 
I dont manage to show only the battery with [nametag] in their name, even after running with argument"readConfig" any hint ?
harrycheez 20 May, 2019 @ 5:04am 
How can I display this on one of the cockpit LCDs?