Space Engineers

Space Engineers

78 ratings
BatteryStatus
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
70.375 KB
Mar 19, 2019 @ 4:02pm
Apr 21, 2019 @ 7: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://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 Sep 3, 2024 @ 3:56pm 
how to use this in game ?XD
shadow2121 Sep 1, 2022 @ 7:26pm 
this is really cool thancks for macking this
Lycanine Jan 31, 2020 @ 11:54pm 
thank you @DMOrigin
DMOrigin  [author] Jan 31, 2020 @ 10: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://steamcommunity.com/sharedfiles/filedetails/?id=1984514349
Lycanine Jan 31, 2020 @ 12:18pm 
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] Nov 15, 2019 @ 2:58pm 
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 Nov 15, 2019 @ 3:58am 
If I'm using modded batteries, is that going to be an issue?
Pax'Jarome Oct 7, 2019 @ 8:14pm 
Thanks a lot, works great!
Yann-Cook Jun 3, 2019 @ 9:45pm 
I dont manage to show only the battery with [nametag] in their name, even after running with argument"readConfig" any hint ?
harrycheez May 20, 2019 @ 12:04pm 
How can I display this on one of the cockpit LCDs?