Space Engineers

Space Engineers

Stop Rotor on High Solar Power Output
753 opmerkingen
Sigurd Hansen  [auteur] 13 jul 2022 om 14:03 
Have not started Steam for years. Have this been broken for everyone? :)
Molten Carnage 7 jan 2022 om 10:47 
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 okt 2020 om 23:07 
Hi, i'm wondering whether you have update plans for hinge blocks. Or is this script also Hinge-compatible?
Sigurd Hansen  [auteur] 23 aug 2020 om 8:04 
been away for a while. Your logs show just warnings. It should work. Can you publish a world?
Molten Carnage 15 jul 2020 om 13:56 
@Sigurd Hansen is the link below what you were asking for?
Sigurd Hansen  [auteur] 12 jul 2020 om 12:56 
Any error messages?
Molten Carnage 2 jul 2020 om 13:09 
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}=  [auteur] 14 jan 2020 om 11:55 
Since when?
Because it was still working yesterday...
Лур 14 jan 2020 om 7:57 
the script stopped working
Rain 26 sep 2019 om 9:33 
nevermind - as i said - small mistake
Robthedude 14 sep 2019 om 4:25 
sent you a friend request so i can PM the link
Sigurd Hansen  [auteur] 14 sep 2019 om 1:21 
If you can publish your world, I can have a look when time permits.
Robthedude 13 sep 2019 om 15:58 
did notice that the Y axis is a little borked, it doesn't turn fully towards the sun well.
Robthedude 13 sep 2019 om 7:09 
it seems to work now, thank you for your time and effort to fix it!
Robthedude 13 sep 2019 om 6:56 
thank you! will test right away!
Sigurd Hansen  [auteur] 13 sep 2019 om 3:26 
I have done some crude changes to make it work again. Please test. Will generate warnings.
Sigurd Hansen  [auteur] 13 sep 2019 om 0:59 
Oh, I haven't played SE for a while. I'll have a look during the weekend.
Robthedude 3 sep 2019 om 14:03 
can this get an update?
it no longer works sadly
Torres 3 sep 2019 om 10:08 
What did you do to make it work again?
Pegas519 24 aug 2019 om 8:04 
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 om 7:59 
This script is broken by the last update:
Usage of #pragma warning is prohibited
Mike ={JcC}=  [auteur] 6 mei 2019 om 9:34 
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 mei 2019 om 19:54 
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 om 13:22 
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 om 13:06 
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}=  [auteur] 27 dec 2018 om 12:52 
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 om 12:47 
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}=  [auteur] 28 okt 2018 om 4:26 
https://steamproxy.net/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 okt 2018 om 19:27 
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}=  [auteur] 20 okt 2018 om 4:10 
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 okt 2018 om 19:38 
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}=  [auteur] 31 jul 2018 om 13:42 
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 om 11:51 
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?
Rovaski 29 jul 2018 om 19:21 
Also, just wanted to say, that the script works fine on my dedicated server.
Rovaski 29 jul 2018 om 17:50 
Nevermind, I managed to modify the code to do what I wanted. Thanks for awesome script.
Rovaski 29 jul 2018 om 17:28 
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 om 10:36 
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  [auteur] 4 jul 2018 om 10:05 
Been very busy lately. Will set them to false as soon as I can find some available time.
bronney 28 jun 2018 om 21:08 
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 om 15:53 
Does it matter which rotor I set to RotorX? It seems to work either way.
Aryan 1 26 jun 2018 om 11:07 
Ah, thx m8. That was pretty easy. Finally everything works, love this script.
Mike ={JcC}=  [auteur] 26 jun 2018 om 7:35 
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 om 4:08 
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://steamproxy.net/sharedfiles/filedetails/?id=1423098163
Mike ={JcC}=  [auteur] 25 jun 2018 om 14:37 
Please put your world into the workshop so i can have a look at it.
Aryan 1 25 jun 2018 om 10:59 
I cant get it fixed. . . my solar panel is just spinning arround, it doesnt stop
Tumor 25 apr 2018 om 9:53 
Just thought I'd share my solar array, thanks for the script!
https://steamproxy.net/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}=  [auteur] 18 mrt 2018 om 18:17 
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}=  [auteur] 18 mrt 2018 om 17:46 
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 mrt 2018 om 17:30 
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