Space Engineers

Space Engineers

Not enough ratings
BasicBatteryManager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
8.580 KB
7 Mar, 2019 @ 6:22pm
1 Change Note ( view )

Subscribe to download
BasicBatteryManager

Description
NOTICE: I've stopped maintaining this, Download QBFreak's updated version instead!
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2035417953

His version even works with blocks connected via rotors / pistons / etc.

---------------------------------

A Basic Battery Manager for SE.

This script keeps turns reactors and/or hydrogen engines on or off based on how charged your batteries are.

Defaults are as follows,

When total battery charge is below 15%, All Hydrogen Engines are started,
- Unless Solar Panels and Wind Turbines are providing enough power to keep the batteries charged.

When total battery charge is below 5%, All reactors and engines are started, no exceptions.
- This functions as the emergency "Oh Crap, We need power now" trigger.

Once one of these is triggered, The batteries will be charged until they reach 95%, at which everything is turned off again. And Solar Panels and Wind Turbines will continue to passively charge.
7 Comments
Belfontan 12 Feb, 2021 @ 11:40am 
Loving it!
I use both versions: multi grid version and original version (this one)
Both scripts work pretty nice and are a perfect solution for handling the ship/station behaviour in case of low power.

Thank you!
Peter Cashel  [author] 26 Mar, 2020 @ 3:57am 
And added to description. Thanks QBFreak.
Peter Cashel  [author] 25 Mar, 2020 @ 2:42pm 
QBFreak, You have permission to upload it. Comment here with the link to the new version and I'll put it in the description.

I'm not going to be maintaining any of my SE mods anymore. I don't have the interest.
QBFreak 25 Mar, 2020 @ 9:32am 
I was just giving this script a go, and I suspect I know what @PixelatedDrake's issue is. The script is limited to blocks on the same grid. It will not detect batteries, reactors, etc connected via rotor, piston, or that nice modded Electronics Panel (which is really just a rotor in disguise).

I have made myself a modified version that uses block.CubeGrid.IsSameConstructAs(this.Me.CubeGrid) to limit it to blocks on the same construct (that is, connected with rotors and pistons, but not connectors). I also tweaked it to display the output info on the programmable block screen. I'm more than happy to either provide it to @Peter Cashel or with his permission upload it.
Peter Cashel  [author] 23 Feb, 2020 @ 12:10pm 
I don't actively play SE anymore, So unsure on when I'll look at this. I'll set it to reinstall and when I have time (and remember), I'll try to take a look.
PixelatedDrake 23 Feb, 2020 @ 12:04am 
Something seems broken about this script...I have 2 batteries on my station, but the script output is determined to tell me there is 0.