Space Engineers

Space Engineers

Solar Panel Alignment Script [BROKEN]
rottielover Jul 27, 2015 @ 6:51pm
How to setup multiple rotor's per Axis ?
My standard solar array has a X axis rotor and then has two "arms". Each arm has a Y axis rotor. I would like to use the script to optimize both sides (arms), but it seems the script can only monitor 1 solar panel's output?

I was thinking about setting up a 2nd program block and having a single timer run both of them with this script, setting some other block as the "x rotor" just to give the script something to look at?

Any insight would be appreciated.
< >
Showing 1-10 of 10 comments
mezzodrinker  [developer] Jul 28, 2015 @ 6:48am 
Well, if you basically have a T for your solar panels, you need two programmable blocks with this script (at least for now, I'm going to try and implement something so that you only need one). One controls the main rotor and one of the secondary rotors and the other one only controls the other secondary rotor.
rottielover Jul 28, 2015 @ 7:19pm 
Worked like a charm. For those playing the home game, setup one Program block to control "RotorX" , "RotorY" and monitor Solar Panel Y1 . Then setup your 2nd block to control RotorY2 and Solar Panel Y2. Set your timer block to run both program blocks, and then itself.

Working great!
SievertChaser Aug 20, 2015 @ 7:11am 
Is it possible to avoid needing two blocks, though? If you simply need the RotorY2 to rotate in the direction opposite to RotorY1, why do you need a second script?
mezzodrinker  [developer] Aug 21, 2015 @ 3:32am 
Originally posted by dennis.danilov:
Is it possible to avoid needing two blocks, though? If you simply need the RotorY2 to rotate in the direction opposite to RotorY1, why do you need a second script?
I'm working on an update that should allow using more than one rotation direction per axis.
mezzodrinker  [developer] Nov 9, 2015 @ 8:25pm 
The new update (rev7) allows usage of Groups for rotors and thus allows using more than just one rotor per axis.
rottielover Nov 10, 2015 @ 10:00am 
P.A.R.T. WHY ? CAUSE IT'S UPDATED!!!!!!!!!!!!!!!!!!!!!!!!!!!!! (Seriously thank you! this is awesome)
shadow onion Nov 13, 2015 @ 1:45pm 
How does one use the groups? I'm having difficulty making it adjust both x and y axis but im not smart enough with scripts to figure it out
Last edited by shadow onion; Nov 13, 2015 @ 1:46pm
mezzodrinker  [developer] Nov 13, 2015 @ 3:07pm 
Originally posted by shadow onion:
How does one use the groups? I'm having difficulty making it adjust both x and y axis but im not smart enough with scripts to figure it out
Let's say you have one rotor in the vertical axis and two on the horizontal one, so that your setup looks somewhat like this:
S#R#R#S # R
(S = solar panel, R = rotor, # = block)
Then you'd have to put the two hoizontal rotors into a group, which is named "Horizontal Rotors", for example.

When you've done that, edit the code so that the lines below look like shown below.
public static readonly string[] RotorNames = new string[] { "Vertical Rotor", "Horizontal Rotors" }; public static readonly bool[] RotorNames_IsGroup = new bool[] { false, true };
This will make the script recognize that "Vertical Rotor" is not a group but "Horizontal Rotors" is.
St1ckN1nja Jun 17, 2016 @ 10:58am 
both my Y rotors spin in oppisite directions and if i add the "[inv]" it Doesnt work PLS help me
mezzodrinker  [developer] Jun 17, 2016 @ 11:59am 
Originally posted by StickNinja:
both my Y rotors spin in oppisite directions and if i add the "[inv]" it Doesnt work PLS help me
pls wrt corrext eng. txt. thnks (Sheesh, I hate chat speak.)
< >
Showing 1-10 of 10 comments
Per page: 1530 50