Space Engineers

Space Engineers

546 ratings
Battery Status Script V.1.1 [Vanilla] - Lightwolf Adventures
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
19.379 KB
21 Dec, 2017 @ 2:48am
8 Jan, 2018 @ 9:09am
4 Change Notes ( view )

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

Description
Note: Thanks to Morphik and his Comment, i was able to change the Font also with the script,
because of that, i uploaded a new version.

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.
167 Comments
V_V1P3R_V 29 Aug @ 9:53pm 
@SWeaver
Could you do the Hydrogen one as well?
Star 3 Mar @ 6:48pm 
unofficial update version https://steamproxy.net/sharedfiles/filedetails/?id=1687643514
working as of March 2024
L 6 Jan @ 8:47pm 
plz update i love this script very helpful
NorimaR 6 Jan @ 10:10am 
not work
Program(1349,23): Error: 'IMyTextPanel' ***
Program(1351,23): Error: 'IMyTextPanel' ***
Captain Lone Wolf 29 Dec, 2023 @ 3:06pm 
Grüße, heller Wolf, das Batteriestatusskript V.1.1 ist jetzt veraltet
Boom111222 17 Dec, 2023 @ 12:21pm 
Just to keep this at the top for people looking, Use Coffin Dodgers solution to fix the first error, and then to fix the obsolete error use IsrA's solution. BIG THANKS to both of them for their solutions.
Graeme 11 Dec, 2023 @ 9:41am 
Tried Coffin Dodgers solution, get a new error message now about 332,15 and 333,15 saying my batterybloackonly regharge is obsolete, use chargemode instead. no idea what that means..!!
stunter740 26 Nov, 2023 @ 12:02am 
for someone who doesnt understand scripts this doesnt work pls update the script .. i should be able to upload it to a programable block and then run it with very little changes
CelticDaemon 26 Oct, 2023 @ 6:42am 
Mod works fine if you follow the isntructions for the LCD screens and make the adjustments to the script as per the instructions below from CoffinDodger and Isra. Bit of a pain but heh, it works.
L. Asmodeus 14 Oct, 2023 @ 10:10am 
Same problem here, hope it get fixes soon by the developer