Space Engineers

Space Engineers

Crazymine's Battery Overview
 This topic has been pinned, so it's probably important
Crazymine  [developer] 21 Apr, 2019 @ 12:20pm
Additional Info
If you need more infos on how to use the script, you may take a look here.
< >
Showing 1-4 of 4 comments
Crazymine  [developer] 21 Apr, 2019 @ 12:21pm 
The Output explained
The Panel Output
When running the script, it will have the following output by default:
(Example. Values made up)
Battery Status Page 1/2 "Message" Total: 75% Charging "Main Battery" 50% DC 10 min Miner "Main Battery" 25% CH* 30 min

The Lines Meaning the following
Battery Status Page 1/2
The Title and the Page Count.
(See "NoTitle" and "NoPageCount")

"Message"
Your custom Message.
Use the argument field of the Programmable Block to set one.
(Note: Triggering the Script with something else will use its argument as Message until the next refresh
e.g.
The Programmable Block has the Argument: World
The Script is triggered by a sensor with the argument: Hello
Message is "Hello"
Block auto-refreshes
Message is "World"
)

Total: 75% Charging
The Total Charge and the Total Balance
(See "NoTotal" and "NoBalance")

"Main Battery" 50% DC 10 min
The Battery Status
"Main Battery" The Name of the Battery
50% The Charge of the Battery
DC/CH/NA/Off Discharging/Charging/Inactive/Off
With a *: Not in Auto mode
10 min The Time left to charge/Discharge

Miner
The Name of a subgrid.
All following batteries are on this grid.

Output on Recompiling
When Recompiling, the Script will output invalid configuration statements and errors with the LCD Names.
All LCD Names that have the prefix "Battery.Display_" will be listed.
Errors Will be thrown if:
  • The Group isn't a number above 0 or "QUICK"
  • The Index isn't a number above 0
  • A Group doesn't contain all the indexes it should (e.g. 1 2 3 _ 5 6 7)
    The printed Panel must not be the cause. It is just given to tell the group number to look up.
Last edited by Crazymine; 21 Apr, 2019 @ 12:21pm
Crazymine  [developer] 21 Apr, 2019 @ 12:25pm 
Font Sizes
The Number of entries, a display can handle are determined by it's font size.
(Smaller Font: More Entries
Larger Font: Less Entries)

The overflow in groups is only covered entry wise,
meaning that If an entry is too long, it will be cut.
However, you can use Large LCDs to increase the horizontal space.

QuickInfo Panels have a fixed font size, that is set by the script.
Crazymine  [developer] 21 Apr, 2019 @ 12:26pm 
Good to know
To keep this script a bit more lightweight on Servers, the LCD Panels and Configuration are not refreshed upon execution. To update changes to any of them, hit Recompile in the Programmable Block and then Run.
This is, because i think, Configuration and Panels aren't changed that much.

If you aren't playing on a constantly running server (e.g. a local world) the script needs to be started after every server start, unless you enable AutoRun.
Crazymine  [developer] 4 Jun, 2019 @ 10:57am 
Hiding Batteries
Note: This feature was requested by https://gtm.steamproxy.vip/profiles/76561198161721475 (Xeridan.exe)

You can now force single batteries to be completely excluded by adding the word
hidden
in a single line in the Custom Data of the Battery, you want to exclude.

It won't show up in the total calculation aswell.
Last edited by Crazymine; 4 Jun, 2019 @ 11:01am
< >
Showing 1-4 of 4 comments
Per page: 1530 50