Space Engineers

Space Engineers

LiteSolarTracking
33 Comments
GrumpyPlok616 22 Jan, 2022 @ 9:05pm 
this might be broken it does not seem to be tracking the sun, it might just be a broken solar panel mod
Lithorn 11 Nov, 2021 @ 6:33pm 
The shaking stops if I turn the center rotor off. Its off, and shouldn't move yet it swings around to try and face the sun without shaking
Elfi Wolfe  [author] 10 Nov, 2021 @ 5:26pm 
the shaking is a physics issue. the gird is too small compared to the solar arrays. it is a common problem. You can add more mass or try turning on shared inertial. I tend to put the rotor down toward the ground and then have some blocks going up to the split off to the 2 solar arrays. That give the center sub-grid a little more mass.
Lithorn 10 Nov, 2021 @ 3:49pm 
The center rotor has a light armored block that has a rotor on its left and right sides. The script is the only thing i'm using to align the panels. If I turn that center rotor on the entire array shakes. When I turn it off it spins around and then stops somewhere close to the sun. What else could be controlling it? Its strange that it shakes if I turn that center rotor on. Before I could control it manually but now I can't. We're playing on a no mods vanilla server. Anything you can think of?
Elfi Wolfe  [author] 10 Nov, 2021 @ 2:08pm 
If the center rotor head does not have a solar panel or O2 farm. then the script ignores it.
It only controls rotors who's heads have a solar panel or O2 farm.
Lithorn 10 Nov, 2021 @ 1:07pm 
I'm having a bit of trouble with this. Ive a rotor, with a block and then 2 rotors on the sides. The script seems to control all three. It rotates the sides fine but the center rotor tends to be way off the mark. I'd rather ignore the middle rotor and manually aim that. What can I do?
Elfi Wolfe  [author] 13 Aug, 2021 @ 4:41pm 
Yes. a hinge is just a rotor with limits.
It may act a little odd at times.
GrumpyPlok616 13 Aug, 2021 @ 12:17pm 
would i be able to use this with a hing set up on my small ship rover?
Elfi Wolfe  [author] 10 Aug, 2021 @ 8:41pm 
No idea. never seen that before.
LonelyGuardsmen 10 Aug, 2021 @ 8:03pm 
so. as soon as i use this script the rotors start vibrating and fly off. any idea why?
Elfi Wolfe  [author] 16 Sep, 2020 @ 10:25am 
It will only look for rotors with solar panels or solar farms on the head of that rotor. if a rotor head has neither then it is not used.
howardxu23 16 Sep, 2020 @ 3:52am 
is it possible to exclude certain rotors from the script, so that one could create a more elaborate solar arrangement?
Elfi Wolfe  [author] 23 Oct, 2019 @ 6:58pm 
the script looks for Rotor > rotor Head and a solar panel or o2 farm on the same grid as the rotor head. the piston in between the rotor head and the solar panels makes it a separate grid. I will have to consider this as an improvement to possible do.
GrumpyPlok616 23 Oct, 2019 @ 6:39pm 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1897169278

ok so that is how i set it up, they seam to want to move forever but it does not bother me that much
GrumpyPlok616 23 Oct, 2019 @ 6:06pm 
ok thanks, i pasted it into my own world and it started working right away.
:) need to play with it a bit though to get it to work perfectly and just how i want it
Elfi Wolfe  [author] 23 Oct, 2019 @ 5:44pm 
Script is running and compiles fine. But there is no rotor top with a solar panel.
The assembly not found problem,
in Load Game > Edit Settings > Advanced > in-game scripts needs to be turned on for PB to work..

The script only works if there is a rotor top subgrid with solar panel or O2 farm on it.
your vehicle has a rotor > rotor top = piston > Piston Top = solar. Where the script only does rotor > rotor top = solar.
a fix would be Piston > piston top = rotor > rotor top = solar panel.
GrumpyPlok616 23 Oct, 2019 @ 5:30pm 
Elfi Wolfe  [author] 22 Oct, 2019 @ 8:31pm 
Tested using the workshop script and not any of my local. Test ok.
GrumpyPlok616 22 Oct, 2019 @ 7:22pm 
got an error "assembly not found, recompile script" error

may be broken
Elfi Wolfe  [author] 13 Feb, 2019 @ 4:54pm 
it can be changed in the script. I did not make a command line interface to change the speed.
float solarAlign is the variable of the speed.
Kadeema 13 Feb, 2019 @ 2:33am 
@Elfi Wolfe Is there a way to increase rotor speed? 0.4 is too slow
Elfi Wolfe  [author] 3 Feb, 2018 @ 11:51am 
Changed to every 5 runs. code is used in 60tic and 100tic programs. so 60* 5 = 300 and 100*5 = 500. Should fix a tracking issue in Ship Main Computer Mk2.
Elfi Wolfe  [author] 18 Nov, 2017 @ 10:10am 
Solar panels update every 100 tics. not every 5 seconds. (but 5 seconds = 300 tic)
Program changed to run every 100 tics. logic checks every 3 runs (or 5 seconds)
Plymoth45 29 Aug, 2017 @ 3:20pm 
Right, yes I see it now in your code. Missed it earlier, my apologies. Not sure what was causing it to bounce in my case then. I'll have a good think on it.
Elfi Wolfe  [author] 29 Aug, 2017 @ 2:25pm 
The solar panels only update their values every 5seconds. I look at SE source code a long time ago on that. It does have a delay between checking the power reading.
Plymoth45 29 Aug, 2017 @ 10:33am 
Something I encountered when I was doing my own script was the bouncing back and forth being caused by the old and new output value comparisson for direction control (I think you're using it too). When it triggers every second, sometimes it isn't enough time for the output to register a change. I managed to work around that by setting the the old vs new output comparrison to take place only every 5 seconds while the rest of the script ran every second. Might help with the yaw bounce and maintain alignment a bit better.
Elfi Wolfe  [author] 29 Aug, 2017 @ 10:25am 
I know. This is a 90% solution. And while it works ok when your are near the solar array. If you been a few km away and come back, on array is at 0. It is annoying. If I sit there and watch it works. And the double rotors do cause issue. I am still looking at it. I may set it to only move one array at a time. Not the greatest solar array script, but easy to set up.
Plymoth45 29 Aug, 2017 @ 7:57am 
So, just a few points of praise and criticism: I really like the plug and play approach. Makes things simple to set up for those whom don't do coding and isn't reliant on specific panels and rotors to control multiple towers. I did encounter problems with the Yaw rotors frequently bouncing back and forth being unable to track the sun, and the alignment never being as accurate as I wanted it to be. Overall a good product, but I feel it requires a slight bit of tweaking for alignments.
Elfi Wolfe  [author] 21 Aug, 2017 @ 12:11pm 
Um.. still has the off problem of one array getting off when doing several axis at once.
fromaj 8 Aug, 2017 @ 6:36pm 
Ah i see, it works thank you
Elfi Wolfe  [author] 8 Aug, 2017 @ 3:38pm 
There is a solar panel on the center pieces.. so that grid has the vertical rotor and on solar panel. And that is enough to make it a solar array.
fromaj 8 Aug, 2017 @ 3:07pm 
@burgerofdoom i might know the issue later, but can you tell me how did you get the vertical rotor to spin?
slend 8 Aug, 2017 @ 2:18pm 
so the bottom rotort of my setup to rotate the base isnt working, anyone know a fix?