Space Engineers

Space Engineers

BatteryStatus
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?
DMOrigin  [author] 19 May, 2019 @ 6:08am 
:D
psylhos 19 May, 2019 @ 5:26am 
ok i'm an idiot, I was thinking that the nametag for the lcd was Battery Status LCD instead of [Battery Status LCD].
so it work perfectly with the scare bracket :D
i'm a moron, thanks and have a good day lol
psylhos 18 May, 2019 @ 5:43pm 
also if I set OnlyWithNametag to false in the battery section it can see the batterys :

https://i.imgur.com/AgnIp7o.png
psylhos 18 May, 2019 @ 5:37pm 
Thanks for your reply :)
Yes the lcd is on the same grid as the programmable block, here's the name of the lcd :
https://i.imgur.com/U9Ezc6U.png

the line of configuration :
https://i.imgur.com/ZCUOv0P.jpg

and the programmable block :
https://i.imgur.com/ijOtsDQ.png


DMOrigin  [author] 18 May, 2019 @ 6:28am 
Is the LCD Panel part of the same construct as your script?
Can you print the name of your LCD Panel und the line of your configuration? Or do some screenshots :)
psylhos 18 May, 2019 @ 1:19am 
Hello, I have trouble with the script :

With the default parameters it can see my battery but not my lcd, if I use the nametag options on the batterys, the script doesn't see them. No matter what I do, the script never found the lcd panel.

I dont know what i am missing or what i am doing wrong (I tryed restoreDefault, then change the nametag, then readConfig).
DMOrigin  [author] 1 May, 2019 @ 8:06am 
This script dosen't edit the name. I know only one script that do this, and this is the script Isy's Solar Alignment Script
saelfaer 1 May, 2019 @ 3:52am 
I could have sworn this script also edits the battery names to show percentages but it doesn't seem to do this in my new gameplay... am i mistaking this with another script?
ummthingy 25 Apr, 2019 @ 6:04pm 
This is great. Now could you look at Lightwolfs Oxy/Hydo status scripts next.
DMOrigin  [author] 21 Apr, 2019 @ 12:03pm 
Fixed: An issue inside the filtering function. This caused the wrong batteries to be filtered out or not filtered out.
Merc 20 Apr, 2019 @ 12:28pm 
I tried that on top of disconnecting every possible ship from the station. Once owngrids is set to true, it does not pick up the station batteries. I had to set it to false and tell it to use the name tags to work properly. I wasn't aware that i had to run those commands so thank you.
DMOrigin  [author] 20 Apr, 2019 @ 12:00pm 
Try the following. Go to you programmable block and press 'k' to open the control panel. Then type "restoreDefault" into the argument field and press "Run". This will overwrite your settings to the default.

Then press on "Custom Data" and change the settings "OnlyLocalGrid" to "true". After that type "readConfig" in the Argument field and press "Run". Maybe you forgott to reread the settings. This one will not be read automaticaly.
Merc 20 Apr, 2019 @ 11:53am 
Merc 20 Apr, 2019 @ 11:48am 
Yes, tried every variation. nametag doesnt appear to work "NameTag=[Battery-Status] "
DMOrigin  [author] 20 Apr, 2019 @ 11:43am 
Did you set OnlyLocalGrid=true under the "battery" section?


[battery]
OnlyLocalGrid=true

The setting "OnlyLocalGrid" exists in two section, "battery" and "lcd".
Merc 20 Apr, 2019 @ 9:39am 
I can't get it to display my localgrid only regardless of settings. It still picks up connected grids via connectors.
smartbadger 12 Apr, 2019 @ 12:17pm 
Lol - nice catch. Thanks for the fix :)
DMOrigin  [author] 12 Apr, 2019 @ 10:42am 
Oh... found the issue... it's a typo :D I forgot the "e" in the setting "Widescreen". If have fixed this. But you can also fix it by your own. Change the setting in your CustomData field from "Widscreen" to "Widescreen" and everything is fine.
DMOrigin  [author] 12 Apr, 2019 @ 9:14am 
I see it. Strange. Maybe it's an issue of the script that comes with the last patch. I will check this :)
smartbadger 11 Apr, 2019 @ 8:11pm 
I'm having trouble getting this to display correctly on a widescreen LCD. It just uses one side, until you have more than 50 batteries, and then the last row of battery icons go on to the rest of the screen, and right off the end.
Am I doing something wrong? I am setting widescreen = true, but it doesn't seem to work.
Smokebuddie 9 Apr, 2019 @ 5:41pm 
Thanks for posting this dude. I've been breaking my head on the old one to fix the errors.
Great job!!! :steamhappy:
TiGeR 31 Mar, 2019 @ 1:27am 
@DMigryna
Ok, thank you very much for your answer and best regards
DMOrigin  [author] 30 Mar, 2019 @ 6:20pm 
No you can't do this with one instance of the script. Currently it is only possible to place 2 programmable blocks and select the battery with the lcd.
Programable Block 1 => Battery 1 + LCD 1
Programable Block 2 => Battery 2 + LCD 2

This script generate the graphical data only once and setting up all available lcd panels.
TiGeR 30 Mar, 2019 @ 9:58am 
Hello
Can I assign one battery in a script for one specific LCD panel? (battery 1+ LCD 1, battery 2 + LCD 2)
I try to do it and I can not do it :)
greetings
DMOrigin  [author] 25 Mar, 2019 @ 8:07am 
You use the https://github.com/dmorigin/se_mod_battery_status/blob/master/BatteryStatus/Program.cs . This includes all whitespaces. Visual Studio replaces a tab with 4 spaces. If you want to use this code, you need to remove all the whitespaces. Therefore, use the code of the https://github.com/dmorigin/se_mod_battery_status/blob/master/Release_Version.cs . In that file all whitespaces are removed. Or use the workshop item directly.
Kaizen 24 Mar, 2019 @ 8:52pm 
When I paste the script into the program block editor, I get a warning message saying the text is too long.

Apparently its about 8000 characters over the limit.
DMOrigin  [author] 21 Mar, 2019 @ 9:34am 
Thanks for your agreement. To the other script. I don't know. I don't know this script currently. It looks like it's working exactly like the battery status script. I need to inspect it before I can say more.
Helmann 21 Mar, 2019 @ 4:05am 
Thank you for updating this script. One of my most used. Are you going to update Lightwolf's Hydrogen and Oxygen Status script also? They still work ok but have some inconsistencies.
Thanks again for the update.