Space Engineers

Space Engineers

Stop Rotor on High Solar Power Output
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...
Лур 14 Jan, 2020 @ 7:57am 
the script stopped working
Rain 26 Sep, 2019 @ 9:33am 
nevermind - as i said - small mistake
Robthedude 14 Sep, 2019 @ 4:25am 
sent you a friend request so i can PM the link
Sigurd Hansen  [author] 14 Sep, 2019 @ 1:21am 
If you can publish your world, I can have a look when time permits.
Robthedude 13 Sep, 2019 @ 3:58pm 
did notice that the Y axis is a little borked, it doesn't turn fully towards the sun well.
Robthedude 13 Sep, 2019 @ 7:09am 
it seems to work now, thank you for your time and effort to fix it!
Robthedude 13 Sep, 2019 @ 6:56am 
thank you! will test right away!
Sigurd Hansen  [author] 13 Sep, 2019 @ 3:26am 
I have done some crude changes to make it work again. Please test. Will generate warnings.
Sigurd Hansen  [author] 13 Sep, 2019 @ 12:59am 
Oh, I haven't played SE for a while. I'll have a look during the weekend.
Robthedude 3 Sep, 2019 @ 2:03pm 
can this get an update?
it no longer works sadly
Torres 3 Sep, 2019 @ 10:08am 
What did you do to make it work again?
Pegas519 24 Aug, 2019 @ 8:04am 
I Remed '#pragma warning disable 0162 ' which was the quickfix to prevent errors on recompile, although there was warnings, the script works.
Pegas519 24 Aug, 2019 @ 7:59am 
This script is broken by the last update:
Usage of #pragma warning is prohibited
Mike ={JcC}=  [author] 6 May, 2019 @ 9:34am 
The way the script works is that the panel on rotor Y is trying to alling up until it reaches the set max output. The moment it reaches that point it stops moving and copy its angles to all the other rotors. So no, there is no way to move all rotors at the same time while searching for the sun. And in my eyes, it wouldn't make much of a difference too, other than it would be more eye pleasing ;)
Lord Vastos 5 May, 2019 @ 7:54pm 
when i duplicate the motion from rotorY to another rotor Y any way to make them move at the same time ? its only copy the movement afte the number 1 have finish
St4ubwedel 27 Dec, 2018 @ 1:22pm 
Well, somehow it just started to rotate, i didn't even do anything maybe it just takes some time. But thanks anyway, great mod :steamhappy:
St4ubwedel 27 Dec, 2018 @ 1:06pm 
I can't figure it out how to upload my world to the workshop, can you accept my friend request so that i can pm you?
Mike ={JcC}=  [author] 27 Dec, 2018 @ 12:52pm 
Since i don't have access to my cristal ball right now, maybe you can upload the world to the workshop, so i can have a look at it?
St4ubwedel 27 Dec, 2018 @ 12:47pm 
I can't get multiple Y-Achis Rotors working. I enabled Rotor duplication and set the Source to my default rotor RotoryY (which is working perfectly) and destination rotor to RotorYa. But the rotor (RotorYa) just doesn't starts rotating.
Mike ={JcC}=  [author] 28 Oct, 2018 @ 4:26am 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1550211533
It is performing absolutely pefect on planets if you set it up the right way. I have a world with 6 t-shaped arrays . Those 3 in the middle of the screen have 160 solar panels each. And they are producing enough power to recharge batterys for the night and power the whole station with all sorts of power draining stuff. Not a single reactor is used there.

If you have trouble setting up your arrays, feel free to puplish it on the workshop, so i can have a look at it.
YouTube.com/StoneLegion 27 Oct, 2018 @ 7:27pm 
How well does the mod work on Planets? I set mine up been about 5 min it's moving a lot but not really in a good way it's 80 and falling it seems to only do it in a small range then resets..
Mike ={JcC}=  [author] 20 Oct, 2018 @ 4:10am 
You need to build your array so that it can freely spin around. On the other hand, the script does not interfere with the min and max settings for the turning angle. So if you set them correctly, the array wont hit anything anymore. But you need to setup those settings first.
[SDD]Dwarve1 19 Oct, 2018 @ 7:38pm 
mine got a little error it turns to far and breaks itself on the ground. anybody got a fix for that? sry for my bad english
Mike ={JcC}=  [author] 31 Jul, 2018 @ 1:42pm 
Please search for those two lines:

const bool ControlCustomTimerAtMaxPower = true;
const bool ControlCustomTimerAtLowPower = true;

and set both to false. It's at the very bottom of the list of settings right before the script actually starts.

If it still doesn't work after that, please upload your world to the workshop, so i can have a look at it.
notintnotnan 31 Jul, 2018 @ 11:51am 
I´m having trouble with the settings, i´ve made the station as on the video but I only get spinning panels, they don't lock. I´ve tried by switching the rotors, by adjusting the HighPwrValue varible and still it doesn´t work. What else can be wrong?
Captain Kravos Reeves 29 Jul, 2018 @ 7:21pm 
Also, just wanted to say, that the script works fine on my dedicated server.
Captain Kravos Reeves 29 Jul, 2018 @ 5:50pm 
Nevermind, I managed to modify the code to do what I wanted. Thanks for awesome script.
Captain Kravos Reeves 29 Jul, 2018 @ 5:28pm 
How can I modify the script to output all attached solar panels power output to the LCD?
And maybe a total output produced?
Commander Tomleson 20 Jul, 2018 @ 10:36am 
i ended up just destroying the array but it said it has multiple supported but when i try to make 2 main solors it would error me
Sigurd Hansen  [author] 4 Jul, 2018 @ 10:05am 
Been very busy lately. Will set them to false as soon as I can find some available time.
bronney 28 Jun, 2018 @ 9:08pm 
Ok after testing I have something to add for new users if they are using it on antenna relays in zero G. Only convert the first grid to station and leave the other 2 grids behind the rotors as "ships". You can also build in a camera to look at the LCDSolar when needed so you can remotely see the values. And one more camera aligned with the panels so you can check the sun. What a useful and easy setup script!!.. Love it! Thanks.
bronney 28 Jun, 2018 @ 3:53pm 
Does it matter which rotor I set to RotorX? It seems to work either way.
Aryan 1 26 Jun, 2018 @ 11:07am 
Ah, thx m8. That was pretty easy. Finally everything works, love this script.
Mike ={JcC}=  [author] 26 Jun, 2018 @ 7:35am 
Thanks... Thats an easy fix. Please read my previous comment on this page and do exactly the same on your script. (set those two lines from true to false). I dont know why Sigurd has set those lines to true by default but you can just set them to false and it works like a charm.
Everything else on your setup is done correctly.
Aryan 1 26 Jun, 2018 @ 4:08am 
I'm not that experienced with scripts, but my friends and me thought that a spinning solarpannel would be nice to have, i changed nothing, but i still think that the i made the mistake. appreciate ur help m8 https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1423098163
Mike ={JcC}=  [author] 25 Jun, 2018 @ 2:37pm 
Please put your world into the workshop so i can have a look at it.
Aryan 1 25 Jun, 2018 @ 10:59am 
I cant get it fixed. . . my solar panel is just spinning arround, it doesnt stop
Tumor 25 Apr, 2018 @ 9:53am 
Just thought I'd share my solar array, thanks for the script!
https://steamhost.cn/steamcommunity_com/id/xirsoi/screenshots/

I plan to build another one, which should put my peak power at about 1.4 MW in full sun. I'm gonna build more batteries to take advantage of the surplus :)
Mike ={JcC}=  [author] 18 Mar, 2018 @ 6:17pm 
Nevermind, i just downloaded your world manually.
There are two problems here. First of all you have to set both

const bool ControlCustomTimerAtMaxPower = true;
const bool ControlCustomTimerAtLowPower = true;

to false. You dont have those timerblocks, and thats why the script throws an exeption.

Second problem is your modded solar panels has half the max power output as the vanilla one.
So i dont know why you are using it, since this one is more than double the size while producing just half the power, but setting

const float HighPwrValue = 119.4f;

to

const float HighPwrValue = 58.5f;

it works just fine.
Mike ={JcC}=  [author] 18 Mar, 2018 @ 5:46pm 
If i may ask if you could use the workshop please for sharing your world, it would save me a lot of time. It would even automatically load the mods you are using.
Ext. 18 Mar, 2018 @ 5:30pm 
Here is the save file. The script is matching the rotors and solar panel. Not sure what else I can do. I've put duplication to false. didn't change a thing.

You will need *** (DX11) Solarpanels *** mod

http://s000.tinyupload.com/?file_id=22228686859150529296

I keep getting a Caught Exception error : Object Reference is not set to an instance of an object