Space Engineers

Space Engineers

167 ratings
Power Control Program v1.1
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
92.617 KB
3 May, 2020 @ 4:01pm
12 Oct, 2020 @ 2:54pm
11 Change Notes ( view )

Subscribe to download
Power Control Program v1.1

Description
This script controls the power of your station or vehicle.
First of all you can use displays to see the power produced by the different types of power producing blocks.
Then you can use a control seat or a cockpit to control these blocks. It's possible to switch different blocks on or off, to change the charging status of batteries etc.
For solar panels there is an alignment script included to control rotors to align the solar panels to the sun. This alignment can be switched on and off with the controls of the seat or cockpit.
And if you don't want to make this on your own, you can actrivate the automatic power control. In this mode the script activates other power producing blocks like hydrogen engines or reactors, if the batteries running out of power. You can control the lower and upper limit of the batteries, when the backup devices should be turned on and off.

Features:
- lcd screens showing you the power produced by the diffrent blocks like reactors, solar panels, batteries etc.
- the lcd sreens schow you the amount of hydrogen or uranium, stored in your blocks
- the screens displaying the output in a chart over the time
- you have an overview display, which shows you all your power produced and used
- you can set up a cockpit or a control seat to manage all your power producing blocks
- you can switch block on or off and change setups of the blocks using the control seats or cockpits
- you have solar alignment included into the script
- you can use multiple solar masts with rotors and attached solar panels, seperated by there names
- the script provides you a automatic batterie/power control
- the automatic power control charges the batteries if they dropped below a certain charge level
- the charging stopps, if you reach a certain charge level
- all limits can be changed within the conckpit or control-seat
all features are shown in this Youtube video: https://youtu.be/usMMII25T_I

Installation:
- load the script into a programmable block
- enter @PowerControl to the CustomData field of screens to use them with the script
- how to setup the screens would be shown in the CustomData field after entering @PowerControl
- enter @PowerControl to the CustomData field of the programmable block to use the screens of this block
- enter @PowerControl to the CustomData field of a cockpit or control seat to use it for controlling the script
- the commands to control the script with the cockpit or control seat are listed in the script itself at your programmable block
- use this commands with your G-Menu, selecting the programmable block and the Run argument
- to use the solar alignment your rotors have to be named Rotation or Angle, as part of their names
- the rotors and it's connected solar panles have to have same name parts to match them
this video shows how to install the script: https://youtu.be/hlcRdIdZdB8

Join th Discord-Community:
https://discord.gg/2a52ftDyXX

Thank you for your support!
WIth a little bit help of some coffee I can work longer into the night.
It's up to you, if you want to buy me my nect coffee.
https://www.buymeacoffee.com/AlfRomeo80
146 Comments
boblefurieu 30 May @ 2:58am 
This script is broken
aaronlukemarshall 12 May @ 3:07am 
This script is now broken in check code. power producers have changed in the vrage code
raz334 4 Dec, 2024 @ 2:02am 
BROKEN, gives errors when attempting to issue a command. Fails to perform without a command.
CD.Cobra(fr) 25 Nov, 2023 @ 3:41pm 
Hello and thank you for this superb script.
Would it be possible for this to also be translated into French?
I tried to do it on my side by changing the German part but it doesn't work.
A language switcher, perhaps!
1 English
2 German
3 Spanish
4 French
AlfRomeo80  [author] 1 Oct, 2022 @ 1:36pm 
The script is build at a time without safezones. Sadly I have no time to update the script at the moment!
Sadiq Azeem 29 Sep, 2022 @ 4:05pm 
when i use safezone it doesnt realize how much it consumes, so should try using reactor and batteries and having a safezone, it will switch off the reactor and keep the batteries on, the problem is the batteries dont have enough power to keep the safezone. I think it dont understand how much safezone eats in power
Asguard 4 Sep, 2022 @ 7:10pm 
the script does not auto update anymore i add two batteries hit recompile and run there was like 5 error messages.
SuperKami 12 Aug, 2022 @ 12:14pm 
@alfromeo80 lmao, I figured it was just too much. Really great script man, I love it <3 thanks for the reply!
AlfRomeo80  [author] 11 Aug, 2022 @ 1:41pm 
@SuperKami There are several limits to the scripts in Space Engineers. But i can't tell you the amount of blocks you can control with this script. I've never tested the script with such large grid like yours. The amount of problems the code runs into with such large grids is more than painful. The complexity of my script with me missing every background of coding, I'm sorry to tell you I can't imagine a way to handle your case.
I wrote the scipts to learn how coding works, but i never expected such a resonance.
SuperKami 11 Aug, 2022 @ 11:32am 
@alfromeo80 I have added about 400 solar panels to my grid, when I go to recompile the script it crashes the game. Is there a limited number of items it can control? great script tho