Space Engineers

Space Engineers

205 ratings
Stop Rotor on High Solar Power Output
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
18.502 KB
1 Jan, 2015 @ 4:00pm
13 Sep, 2019 @ 3:24am
43 Change Notes ( view )

Subscribe to download
Stop Rotor on High Solar Power Output

In 1 collection by Sigurd Hansen
Scripts I use
3 items
Description
Auto Optimize Solar Panels / Oxygen farm - Update 1.11
The first and original script which will stop one or more rotors in one or two axis when your solar panel or oxygen farm has reached a minimum defined output.

The program autostarts at compile, but may be manually overridden by argument "stop" and "start"

-------------------
INGAME BUG
Might not work on dedicated servers. Try your setup on a non-DS game before reporting bugs.
-------------------
Features:
Rotating sun
- Support for rotating sun.
Oxygen farm
- Support for Oxygen Farm
No timer block dependency
- No need any more for the timer block. Just use argument "start" or "stop"
Mod support
- Support for solar panel mods
Duplication
- Duplicate rotor values to other rotors as well

Your opinions, comments and rating would be greatly appreciated.
Also, I would love to see your solar arrays as well. Post images in the comment section if you like.

Youtube instructions here - Ignore timer setup, as this is no longer needed.
3rd party German tutorial here.
New Blueprint here
Old Blueprint here (One Axis, older software)
3rd party world/blueprint with duplication function here
3rd party guide for stabilizing large arrays here
Look at the code here[pastebin.com] (1.10b)

Troubleshooting
Check ownership. Recompile program if ownership has been changed.
Does the timer start the programming block? Try to start the programming block manually a couple of times.
Does the programming block throw an error message?
Check naming in script vs real names.
Does the name search return more results than it should?
Check the current output from the solar panels while rotor is on. Look for the highest value, and change the variable in the program.
Search result order is important. If a rotor name ends in 3, the attached rotor must end in 3.

When reporting bugs, please comment with minimum this info:
Dedicated server or not
Dual or Single Axis
Solar panel or oxygen farm
Paste the output from the first run in the programming block

Update 1.11
Minor cleanups & optimizations
Began implementing persistent data
Update 1.10b
Added autostart
Update 1.10
LCD-support
Cleanups
Update 1.09
Did a hotfix break something again? Slowed down rotors and cleanup.
Update 1.08
Removed dependency on timer block

Sigurd Hansen
Donation[www.paypal.com]
Popular Discussions View All (9)
18
23 Jan, 2016 @ 12:44am
Third duplicate Axis
Mike ={JcC}=
14
1 Feb, 2017 @ 7:41am
Can't Get Duplicate Axis To Work
Landron
10
7 Jan, 2016 @ 7:32pm
Rotation stopping due to programming block naming solar panel incorrectly
Joe
753 Comments
Sigurd Hansen  [author] 13 Jul, 2022 @ 2:03pm 
Have not started Steam for years. Have this been broken for everyone? :)
Molten Carnage 7 Jan, 2022 @ 10:47am 
Does anyone know of a working alternative, other than MA Solar Tracking blocks. I have tried every which way to get this script working except rewriting the script. Script recognises all the rotors including the duplicate inverted axis. But the only thing that happens is both of my RotorY and inverted RotorYa stop at 0 degrees and all rotors on the solar array turn off.
Arktis_P 25 Oct, 2020 @ 11:07pm 
Hi, i'm wondering whether you have update plans for hinge blocks. Or is this script also Hinge-compatible?
Sigurd Hansen  [author] 23 Aug, 2020 @ 8:04am 
been away for a while. Your logs show just warnings. It should work. Can you publish a world?
Molten Carnage 15 Jul, 2020 @ 1:56pm 
@Sigurd Hansen is the link below what you were asking for?
Sigurd Hansen  [author] 12 Jul, 2020 @ 12:56pm 
Any error messages?
Molten Carnage 2 Jul, 2020 @ 1:09pm 
I can confirm that this script is, sadly, no longer working. I know that there is the Smart Solar Rotor mod set but I would rather stick to vanilla blocks. https://steamuserimages-a.akamaihd.net/ugc/1293045997788288107/65EE44EE1E842DF5C1DCF0B027D4983155DA20BB/
Mike ={JcC}=  [author] 14 Jan, 2020 @ 11:55am 
Since when?
Because it was still working yesterday...
Lurcat 14 Jan, 2020 @ 7:57am 
the script stopped working