Space Engineers

Space Engineers

BatteryStatus
38 kommentarer
Freaky 3. sep. 2024 kl. 8:56 
how to use this in game ?XD
shadow2121 1. sep. 2022 kl. 12:26 
this is really cool thancks for macking this
Lycanine 31. jan. 2020 kl. 16:54 
thank you @DMOrigin
DMOrigin  [ophavsmand] 31. jan. 2020 kl. 15:58 
No, this isn't possible. But there is an alternativ script, that includes the functionality of this script. It is my new script: https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1984514349
Lycanine 31. jan. 2020 kl. 5:18 
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  [ophavsmand] 15. nov. 2019 kl. 7:58 
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 kl. 20:58 
If I'm using modded batteries, is that going to be an issue?
Pax'Jarome 7. okt. 2019 kl. 13:14 
Thanks a lot, works great!
Yann-Cook 3. juni 2019 kl. 14:45 
I dont manage to show only the battery with [nametag] in their name, even after running with argument"readConfig" any hint ?
harrycheez 20. maj 2019 kl. 5:04 
How can I display this on one of the cockpit LCDs?
DMOrigin  [ophavsmand] 19. maj 2019 kl. 6:08 
:D
psylhos 19. maj 2019 kl. 5:26 
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. maj 2019 kl. 17:43 
also if I set OnlyWithNametag to false in the battery section it can see the batterys :

https://i.imgur.com/AgnIp7o.png
psylhos 18. maj 2019 kl. 17:37 
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  [ophavsmand] 18. maj 2019 kl. 6:28 
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. maj 2019 kl. 1:19 
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  [ophavsmand] 1. maj 2019 kl. 8:06 
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. maj 2019 kl. 3:52 
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 kl. 18:04 
This is great. Now could you look at Lightwolfs Oxy/Hydo status scripts next.
DMOrigin  [ophavsmand] 21. apr. 2019 kl. 12:03 
Fixed: An issue inside the filtering function. This caused the wrong batteries to be filtered out or not filtered out.
Merc 20. apr. 2019 kl. 12:28 
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  [ophavsmand] 20. apr. 2019 kl. 12:00 
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 kl. 11:53 
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1718483741
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=1718483823

Screenshots, if i turn off nametags it will show all batteries including through connectors
Merc 20. apr. 2019 kl. 11:48 
Yes, tried every variation. nametag doesnt appear to work "NameTag=[Battery-Status] "
DMOrigin  [ophavsmand] 20. apr. 2019 kl. 11:43 
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 kl. 9:39 
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 kl. 12:17 
Lol - nice catch. Thanks for the fix :)
DMOrigin  [ophavsmand] 12. apr. 2019 kl. 10:42 
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  [ophavsmand] 12. apr. 2019 kl. 9:14 
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 kl. 20:11 
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 kl. 17:41 
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 kl. 1:27 
@DMigryna
Ok, thank you very much for your answer and best regards
DMOrigin  [ophavsmand] 30. mar. 2019 kl. 18:20 
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 kl. 9:58 
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  [ophavsmand] 25. mar. 2019 kl. 8:07 
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 kl. 20:52 
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  [ophavsmand] 21. mar. 2019 kl. 9:34 
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 kl. 4:05 
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.