Space Engineers
BatteryStatus
38 σχόλια
Freaky 3 Σεπ 2024, 8:56 
how to use this in game ?XD
shadow2121 1 Σεπ 2022, 12:26 
this is really cool thancks for macking this
Lycanine 31 Ιαν 2020, 16:54 
thank you @DMOrigin
DMOrigin  [Δημιουργός] 31 Ιαν 2020, 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 Ιαν 2020, 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  [Δημιουργός] 15 Νοε 2019, 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 Νοε 2019, 20:58 
If I'm using modded batteries, is that going to be an issue?
Pax'Jarome 7 Οκτ 2019, 13:14 
Thanks a lot, works great!
Yann-Cook 3 Ιουν 2019, 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 Μαϊ 2019, 5:04 
How can I display this on one of the cockpit LCDs?
DMOrigin  [Δημιουργός] 19 Μαϊ 2019, 6:08 
:D
psylhos 19 Μαϊ 2019, 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 Μαϊ 2019, 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 Μαϊ 2019, 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  [Δημιουργός] 18 Μαϊ 2019, 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 Μαϊ 2019, 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  [Δημιουργός] 1 Μαϊ 2019, 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 Μαϊ 2019, 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 Απρ 2019, 18:04 
This is great. Now could you look at Lightwolfs Oxy/Hydo status scripts next.
DMOrigin  [Δημιουργός] 21 Απρ 2019, 12:03 
Fixed: An issue inside the filtering function. This caused the wrong batteries to be filtered out or not filtered out.
Merc 20 Απρ 2019, 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  [Δημιουργός] 20 Απρ 2019, 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 Απρ 2019, 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 Απρ 2019, 11:48 
Yes, tried every variation. nametag doesnt appear to work "NameTag=[Battery-Status] "
DMOrigin  [Δημιουργός] 20 Απρ 2019, 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 Απρ 2019, 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 Απρ 2019, 12:17 
Lol - nice catch. Thanks for the fix :)
DMOrigin  [Δημιουργός] 12 Απρ 2019, 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  [Δημιουργός] 12 Απρ 2019, 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 Απρ 2019, 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 Απρ 2019, 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 Μαρ 2019, 1:27 
@DMigryna
Ok, thank you very much for your answer and best regards
DMOrigin  [Δημιουργός] 30 Μαρ 2019, 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 Μαρ 2019, 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  [Δημιουργός] 25 Μαρ 2019, 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 Μαρ 2019, 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  [Δημιουργός] 21 Μαρ 2019, 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 Μαρ 2019, 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.