Space Engineers

Space Engineers

Ikke nok vurderinger
Solar Max Power
   
Pris
Føj til foretrukne
Gjort til foretrukken
Fjern som foretrukken
Filstørrelse:
Offentliggjort:
Opdateret:
5.971 KB
24. juni 2015 kl. 14:14
17. nov. 2017 kl. 15:58
11 ændringsbemærkninger ( vis )

Abonner for at downloade
Solar Max Power

Beskrivelse
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 kommentarer
Bloodartist 18. jan. 2022 kl. 0:08 
work again? not seem in my side
Wolverine 10. apr. 2018 kl. 7:00 
sounds good i will try
glenn52 4. aug. 2017 kl. 2:49 
glenn52 12. juli 2017 kl. 4:47 
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 kl. 11:38 
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.