Space Engineers

Space Engineers

93 ratings
Battery Status Script [Vanilla] - Lightwolf Adventures
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
19.379 KB
5 Dec, 2017 @ 4:48pm
8 Jan, 2018 @ 9:08am
4 Change Notes ( view )

Subscribe to download
Battery Status Script [Vanilla] - Lightwolf Adventures

In 1 collection by Lightwolf
Lightwolfs IngameScripts
2 items
Description
Note: There is a newer version of the script out now, no need for changing font, the new version change it automaticly.
link to the newer version:
http://steamproxy.net/sharedfiles/filedetails/?id=1238124032

Note Update 29.12.17: Both Versions are now the same new Version, since i understand how to update my Workshop
projects

This script shows Battery level and states on standart LCD, Textpanels or Wide LCD, as digital Symbols.
[Vanilla / No Mods needed]

Installation:
Just add this NameTag "[Battery Status LCD]" to your LCD, and all LCD's you want,
example: My LCD Name [Battery Status LCD]. and put Font to "Monospace".

Then just put my script in a Programmable Block, edit your settings, save + compile.
Ready to use.

There is also an Demo-Wold, here's the link:
http://steamproxy.net/sharedfiles/filedetails/?id=1222790810

There a some Settings you can edit, i explain them below. Or you watch my Tutorials on YT.
https://youtu.be/tSCpOraoRJ8

Hope you enjoy it.



Available Settings / Options:

----- Generals -----
All LCD with a specific NameTag included in their name, will be show the information. You can edit the NameTag.
string LCD_NameTag = "[Battery Status LCD]"; example: my LCD 31 [Battery Status LCD]

On default this script search for all Battery's attached, but somethimes you want be able to show
only specific Battery's
bool OnlyBatteryWithNameTag = false; false = show all found Battery's attached,
true = show only Battery's with Specific NameTag in their name

that means that only Battery's with this NameTag added to your Battery Blockname, will be shown.
you can change the Nametag also.
string BatteryNameTag = "[Battery-Status]"; example: my Battery 15 [Battery-Status]

----- Display Settings -----
LCD or Wide LCD
on default it shows a total amount of max. 50 Battery's. There's a option to show a total amount of 100 Battery's,
but this only works for wide LCDs, Note: on 1x1 LCD will be then shown just the half information!
bool WideLCD = false; true = 50 Battery's
false = Show on wide LCD's up to 100 Battery's

This script change size of the Symbols depending of the amount.
it shows Large Symbols for an total amount of 1-10 Battery's on 1x1 LCDs, and a total amount of 1-20 Battery's on wide LCDs, all amount above will be shown in small Symbols, to show always small Symbols.
bool OnlySmallSigns_Enabled = false; true = always small symbols
false = depending on amount

Self updating System
Thanks to SpaceEngineers Update 1.185.1, we are able to use a new system, no need for timer,
bool SelfUpdatingSys_Enabled = true; false = Off, need an activation
true = after compile, script Selfupdating starts

If Self updating System enabled you can choose how many times per second the script will be activated
int SelfUpSys_perSecond = 1; 1 = 1 sec
2 = 2 sec etc.

----- Other Settings -----
Shows Title on top of the LCD / Text Panel
"BATTERY STATUS" as title on Top, if disabled it leaves the space black
bool BatteryTitle_Enabled = true; true = show title
false = no title

There are three lines as border, you can deaktivate each of them of you want, true = on, false = off
bool Underline_1_Enabled = true; Show Underline below Title
bool BatSpaceline_Enabled = true; Show Middle line between Battery Amount and Stored Energy
bool Underline_2_Enabled = true; Show Underline Below Battery Amount and Stored Energy

Show Amount of Battery's displayed
bool BatteryAmountEnabled = true; true = Show Amount
false = off

Show total amount of all Stored Energy in Wh, kWh, MWh or GWh, Units depending on amount of Energy
bool BatteryAllStoredEnergyEnabled = true; true = Show stored Energy
false = off

Show Status of Power Input with an small Flash-Symbol
when no Power input = red
Reactor online = Green
Solar Panel online and no reactor online = Cyan
Power Input below needed supply = Orange

bool PowerInput_Enabled = true; true = Show Power supply as Flash-Symbol, changes color
false = off

LCD Brightness
0-255, 0 = dark, 255 = Bright
int LCDbright = 255;


----- Kown Problems -----
if you placeing a SolarPanel, it stops the script, recompile, and it will run again.

Special Thanks to YouTuber Splitsie for presenting the Converter script on YT, and big Thanks to
Speedy Gonzales that made the converter, because of that i was able to made this awesome script.

And General Thanks to the Community, to all that share their knowledge, that helped me a lot to make this
scripts working. To all thanks for that.
Popular Discussions View All (1)
0
21 Aug, 2018 @ 12:02am
im doing something wrong?
Star
35 Comments
riddER 1 Feb @ 3:09pm 
Program(1349,23): Error: 'IMyTextPanel' does not contain a definition for 'ShowPublicTextOnScreen' and no accessible extension method 'ShowPublicTextOnScreen' accepting a first argument of type 'IMyTextPanel' could be found (are you missing a using directive or an assembly reference?)

Program(1351,23): Error: 'IMyTextPanel' does not contain a definition for 'WritePublicText' and no accessible extension method 'WritePublicText' accepting a first argument of type 'IMyTextPanel' could be found (are you missing a using directive or an assembly reference?)

Fix: Use revised version:
https://steamproxy.net/sharedfiles/filedetails/?id=1238124032
pcodea xonos 8 Oct, 2023 @ 9:45am 
has errors
R5Dad 4 Jun, 2023 @ 2:20pm 
Does this work on cockpit screens? If not, any plans to do so?
DiabeticDuckling 24 Apr, 2022 @ 4:50pm 
the script is not allowing me to see the batteries icons and stuff on screen please help
Missath 22 May, 2021 @ 9:25pm 
Super useful. Is there any way to show the name of the battery? So that we can know which battery is in what status? Specially for when we connect vehicles to the base
Max 28 Dec, 2020 @ 1:44pm 
Update your script!!!!
Chocolate Pudding01 26 May, 2020 @ 1:56pm 
Okay, so the script is working, kind of. I have 2 LCD screens with the same name, and only one of them is getting the battery status
Ettap 27 Jun, 2019 @ 9:54am 
so apparently this script is old now, and does not work
Max | MKLepium 16 Mar, 2019 @ 8:23am 
Is there a way to display the following.
I want an LCD to show when all Batteries are fully recharged or depleted, and maybe like a percentage of every batterie (for example: batterie 1:fully charged, batterie 2: fully depleted, Script shows Batteries: 50%)
fishfighter29 7 Mar, 2019 @ 2:20pm 
Has this Script been abandoned? God i hope not.