Space Engineers

Space Engineers

Not enough ratings
Solar Max Power
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
5.971 KB
24 Jun, 2015 @ 2:14pm
17 Nov, 2017 @ 3:58pm
11 Change Notes ( view )

Subscribe to download
Solar Max Power

Description
2017-11-17 Update: No longer needs a timer block. If you had one before, I recommend you "disconnect" it from the prog block (remove all its actions) to reduce surprises.

(Also see my Solar Alignment for Fixed Solar Panels script if you'd rather avoid using rotors. It supports multi-axes and is just as easy to set up.)

Yet another rotor controller script for solar panels.

This was more of an exercise for me (really, my first C# script).

I created this script to address some issues I found in the few others I tried, namely:
  • Simplification of configuration. I would rather deal with groups rather than have to name each part something specific.
  • Other scripts never seem to stabilize.
Initial set up is fairly standard:
  1. Load into programmable block
  2. Create groups containing exactly 1 rotor (advanced or standard) along with any/all solar panels attached to that rotor. The name of groups must start with "SolarMaxPower", so you can use "SolarMaxPower1" or "SolarMaxPower Foo" or whatever.
The rotors should have max torque and the limits should make sense for your ship (so the panels don't hit things). Set the velocity to +/- 0.1 or 0.2. But you can experiment with this.

Inside the script, you can customize the group prefix that it looks for.

It definitely only works with a single axis, since I specifically filter out rotors that aren't on the same grid as the programmable block. (This is because I use this script with drones which dock a lot...)

Pausing/Resuming

If you run the prog block with certain arguments, you can pause and resume the script. You'd typically set these up on a cockpit or remote toolbar.
  • pause -- This pauses the script.
  • resume -- This resumes the script.
Note that the state of the script is saved between reloads. You can view the current state of the script by opening the terminal and selecting the script's prog block. It will tell you whether it is paused or display the current power reading from all managed solar panels.
5 Comments
Bloodartist 18 Jan, 2022 @ 12:08am 
work again? not seem in my side
Wolverine 10 Apr, 2018 @ 7:00am 
sounds good i will try
glenn52 4 Aug, 2017 @ 2:49am 
glenn52 12 Jul, 2017 @ 4:47am 
I use this with Oxygen Farms to keep them facing the Sun.
They're just along for the ride with the "SolarMaxPower" group (rotor and 2 solar panels), but produce more oxygen than I've had before from static groups of Oxygen Farms.
Acarii 26 Sep, 2015 @ 11:38am 
Hey, come let me know at https://www.reddit.com/r/spaceengineers/comments/3m34wb/space_engineers_modlist/ when it's fixed. I was updating the list with all of the stuff dire is using in his series and yours is in. Can't add your script with it being broken.