Stationeers

Stationeers

(2024!) Easy Free-form Solar Tracking (New Feature!)
83 Comments
Tallinu  [author] Apr 18 @ 4:01pm 
LimZZ, you might be able to find a combination of sensor orientation and config setting that would work on certain walls, but I can't guarantee it, or make any claims to its reliability. Test thoroughly, through all parts of the day (and preferably setting the world's "number of days passed" to something in later seasons as well) if you attempt that.

I usually just have the sensor on the floor next to or in between some of the solar panels. You can even leave it floating in the air by removing the wall or frame you used to mount it, if you like.
kaseyper Mar 23 @ 11:38am 
works perfect, thanks man.
LimZZ Mar 20 @ 7:16am 
Can I put a solar sensor on the wall?
Tallinu  [author] Mar 13 @ 2:04am 
Frogwizard, I can only assume one or both of the config settings were not correctly set. The one for the daylight sensor is always needed even if you're naming your panels, if that helps.

Dragon Fire, I have absolutely no idea what the library issue is, sorry. I'm glad you were able to get the script working despite that problem!
Tallinu  [author] Mar 13 @ 1:56am 
Skunk, sorry, I have no idea what the math to make a wall mounted solar panel track the sun properly would be, but I know it would require five times as many different calculations and five times as many names to go through (because there are four different walls you could mount them on, plus the floor, and the math would have to be different for each). The script is already just barely within the code size constraints of the IC10, as well as just barely within the 127 instructions per tick limit. I already had to abandon one minor convenience feature I'd wanted because I couldn't squeeze everything in, and that was just a handful of extra lines.
Skunk Mar 3 @ 11:51pm 
Hello was wondering if you could make you script work with wall mounted solar panel. I tried to mess around in the scrip to add wall mount north south east west like you did and the math but cant figure it out.
Dragon Fire 813 Nov 18, 2024 @ 10:56pm 
Script works great btw.
Dragon Fire 813 Nov 18, 2024 @ 5:16pm 
So I don't know what the issue is, but for some reason this IC code doesn't show up in the library.
I've un/re-subbed several times, restarted the game several times, and manually deleted the workshop files to no avail. Luckily as a work around I was able to copy the code from the workshop file and paste it in the IC editor.
Frogwisard Nov 10, 2024 @ 11:17am 
Im trying to use this script but not getting something. My Example; all the power ports are facing east. the data port on the sensor is facing east. i put the chip in and when the sun comes up, they all turn north and are not getting 100% productivity. at night, the panels turn to the east waiting for the raising sun...
Tallinu  [author] Nov 9, 2024 @ 1:34pm 
WRXOace, NoShotz, glad to hear it!

Golden Dragon, I know what you mean, I do wish I could've added that option. Maybe if we get an ability to put more code into an IC again in the future I might revisit that!
NoShotz Nov 5, 2024 @ 11:28pm 
Recently added this to my solar farm, it is working perfectly.
WRXOace Aug 30, 2024 @ 9:43pm 
Tallinu and Golden Dragon thank you both for the comments and the assistance. It was definitely user error. I rebuilt everything and labeled the panels without the quotation marks and it works flawlessly. When I read your instructions I copied the names exactly as you had - thinking the quotation marks needed to be in the name. (At least I am assuming this is what I did wrong as this is the only thing I did differently) Thank you again and this is an awesome code. No more wiring logic chips for solar panels.
Golden Dragon Aug 30, 2024 @ 6:35pm 
I just hate screwing, lol
If screwing not needed for other parts, in my opinion it is logical to remove it at all
But I understand both your position and your pain over the limitations of IC, so no means no :)
Tallinu  [author] Aug 30, 2024 @ 5:23pm 
Golden Dragon, I considered doing that, but had two big problems.

The script was already over the capacity of the IC10s. In the past it wasn't enforced -- you could put in as much as you wanted -- but now it cuts it off at 4kb. I had to strip out/abbreviate a load of comments to get it under the limit.

It was also hitting the instructions per tick limit, and I already had to scrap one nonessential feature and switch the loops to less legible, harder to maintain "relative branching" to get everything done in 127 lines per tick! :KSmiley: (Interrupting it partway through was causing certain kinds of solar panels to dance in place instead of turning, because earlier batch writes were not being overridden in the same tick as required.)

So, while I would love to add that, it doesn't seem likely to happen. And you only ever need a single daylight sensor, so it would've been a very minor improvement anyway, of dubious utility.
Tallinu  [author] Aug 30, 2024 @ 5:13pm 
WRXOace, by "ignore that config line" I simply mean that it won't matter what number you put in that line if all your solar panels are renamed, because their name will determine the rotation value that gets applied to them instead. If that's what you're doing, simply don't bother editing that one config line. If you've already edited it, that's fine too. It doesn't matter at all.
If you have some solar panels connected from the east, and some panels connected from the west, you'd name all of the first set "Solar Panel East" and all of the second set "Solar Panel West" and it should just work. If it's not, either the names don't actually match, or the script can't see the panels, something along those lines, or else something weird that I can't anticipate is going on. If you're still having trouble, screenshots showing as much as possible of the setup and any changes made to the IC program would be helpful.
Golden Dragon Aug 27, 2024 @ 12:59pm 
Work good.
But one question, maybe better autoselect sensor if it only one, instead of screwing?

>WRXOace can you make some screenshots?
WRXOace Aug 24, 2024 @ 9:59am 
Please forgive me as I know this is user error, but I can't get panels to work in 2 different directions. I see the instructions say to leave the opposite direction panel named as the basic config or ignore the second config line?? This is where I'm sure my issue is but I don't know how to fix. I named all the panels going in the direction they are facing, I changed and I left all the panels as default, and then I left the panels in the opposite direction as default. I don't know how to ignore the panel direction line as it seem to have to have a number there. All the panels in that direction are fine and the other panels are 180 degrees the opposite way in any thing I try. I again apologize for asking. I am fairly new to the game and the IC10 programming is out of my grasp so far.
Dr. Democracy Aug 20, 2024 @ 9:03am 
This is just frickin sweet. Well done. It's so well done and demonstrates a through understanding of IC10.
Immortalmargrave Jul 22, 2024 @ 10:24pm 
If you are like me and build a solar+wind farm remember to put the daylight sensor and IC on the same circuit as the solar panels. Both sides of the station batteries are considered separate circuits. Also I've only had the game for about a week so sorry if that is common sense for Stationeers veterans.
Halunke128 May 24, 2024 @ 4:11am 
Very nice IC Code with solar panel reset included. Sensor- & single Solar panel output in same direction, Change SensorPortDirection 0 # Daylight Sensor
& PanelPortDirection 0 # Solar Panels to your correct direction, label solar panel & your done ! Simple, easy & user friendly :-)
vogtage May 19, 2024 @ 3:06am 
Thank you, thank you, oh and did I say thank you? I just saw you made these updates and I am going to be trying it out tonight. This is something I have wanted to see for a long time. Fortunately with the changes to MIPS its now possible. It appears to be working perfectly after getting my panels in place and hooked up. I had spent last weekend learning how to program with MIPS and built my first couple programs and had something like this in mind next to attempt to tackle. Looks like I don't need to it now.
Tallinu  [author] May 6, 2024 @ 5:39pm 
Script now works correctly - and has a significant improvement.
You now have the option of placing solar panels with their bases oriented in any direction!
Instructions in the description. All it needs is a labeler.
xhunter Aug 7, 2023 @ 12:28pm 
@XHead change line 52 from 75 to 90
and line 53 from 1.5 to 1
line 66 can maybe use a setting like line 10/11 for easy use
Golden Dragon Nov 18, 2022 @ 6:10pm 
>Tallinu, my condolences! Please add [Outdated] to the title, so as not to confuse new players!
MisterCrow Sep 30, 2022 @ 10:48am 
@williamv1999 - Getting the same issue. Been fiddling around for hours trying to see what I thought I'd done wrong, and yeah, the panels don't align well enough vertically (horizontal seems ok though). Xhead's solution works without any batch writers or memory units, but still suffers the same vertical alignment problem, and also the panels always face the wrong way :/
ImStillHereAintI Sep 2, 2022 @ 10:49am 
Also a side note. My IC chip holder is showing 9001, but it is detecting the daylight sensor. I have pulled the IC chip out seveal times to try and reset it, but it alsways shows 9001. I am using the updated code from XHead
ImStillHereAintI Sep 2, 2022 @ 10:47am 
I am noticing that the panels do track the sun, but not tracking to gain the most efficiency from the sun. They seem to be tracking behind the actual direct line of sight from the sun. Is this an issue anyone else is seeing. Im on Mars base but with custom settings, like breathable atmosphere, slightly better sun intensity. I am only seeing about 35 to 50% efficiency on the panels. Is there somthing we can tweak to get this better?
Tallinu  [author] Apr 27, 2022 @ 2:01pm 
Sorry that I haven't updated this in... forever. I've been dealing with two separate deaths in the family, unemployment, a bit of a housing crisis, and finally a new job today, so I'm not likely to have a chance anytime soon, either. It sounds like there have been some nice improvements to the game while I've been away though (no more required batch writers, woohoo!). Assuming XHead's fixed version of this is up to date (Thanks XHead!), for now I suggest using that or one of the other great scripts available on the workshop.
XHeadGaming Nov 16, 2021 @ 11:09pm 
I fixed all the code to use only a daylight sensor, works with both single and dual port solar panels
and here is the fixed code https://pastebin.com/P7vqrDbw
Raven Feb 6, 2021 @ 5:48pm 
i was looking through some of the changes in the Dec Update and noticed the following....

Changed Horizontal and Vertical variables for Daylight sensor to be local, as SolarAngle is.

Added Horizontal and Vertical outputs to Daylight Sensor. Note: -y is inverted for this, so you will not need to flip for solar settings. Existing functionality is currently not changed for the daylight sensor, and SolarAngle will respond to Mode changes as before. But it is recommended new solar setups be built using Horizontal and Vertical variables directly off the Daylight Sensor.

I know i have been having problems with this script and was wondering if this could help with any trouble shooting?
Lusho Jan 15, 2021 @ 2:41pm 
there's a command to avoid using batch writers ( sb <TypeHash> <var> r?) now you can make your script only with the ic10 chip
Razorfish Jan 4, 2021 @ 5:21pm 
Will this be updated? I'd really love to keep using it. Thanks.
Shinoshi Jan 2, 2021 @ 11:17pm 
The DEC. 2020 Update also made the solar panel no longer accept negative integers in the horizontal.
catch me™ Jan 2, 2021 @ 4:30am 
After last Update Dez 2020 - error line 123!
OrpheusRocker Dec 30, 2020 @ 3:35pm 
Sadly, Rocket broke your tracking in build 13106. My coding skill is poor so I cannot debug it.
Staalby Nov 1, 2020 @ 1:16am 
Some pictures would be nice
Magic Oct 12, 2020 @ 8:51pm 
Looks like the update for Version 0.2.2499.11500 updated the compass issue. Now I just have to figure out how to update the code so the panels park new-east, instead of old-east.
OrpheusRocker Aug 15, 2020 @ 11:09am 
I discovered a useful add-on from your IC code. If I tap into VMem, I can turn the lights on 1 hour before sunset and turn them off again 1 hour after sunrise. Cool.
OrpheusRocker Aug 13, 2020 @ 2:22pm 
It's called a "Tates Compass". It points to true magnetic west. As in- "He who hesitates is lost"
Chrisbitz Jul 16, 2020 @ 5:49am 
Thanks for clearing up the compass headings, I'm glad I'm not going mad :-)
Tallinu  [author] Jul 15, 2020 @ 7:47pm 
I've been asked if there's any way other than the steam workshop to download this script. Since it seems like I've got all the major bugs out and changes have not been necessary between game updates, my prior reasons for not doing so are no longer a big concern. A copy can now be found in text file form here:
https://drive.google.com/file/d/1OChXogLwiDqe60N_lnnP69xEuDQFZHho/view
Tallinu  [author] Jul 15, 2020 @ 5:48pm 
I didn't understand the nature of the confusion until I checked in-game to verify that the headings displayed on the new HUD compass matched my expectations... and found that they did not!

East is the position on the horizon where the sun rises. West is where the sun sets. Any compass here on Earth will have East at 90 degrees and West at 270 degrees, with North as 0 and South as 180. The HUD compass in Stationeers is, for some strange reason, rotated 90 degrees from that (the same on all three planets I've checked) and shows 180 degrees when facing sunrise and 0 facing sunset, making North = 90 and South = 270. My guess is that this is a minor Stationeers bug and should be fixed eventually.
Chrisbitz Jul 13, 2020 @ 3:33pm 
I am still confused as to which compass directions are which, would you agree that north is 0 and east is 90?
Tallinu  [author] Jul 13, 2020 @ 12:46pm 
@Chrisbitz
Thanks! Glad you got it sorted out. :)
Chrisbitz Jul 13, 2020 @ 12:15pm 
This is my favourite solar tracking IC. Just to confirm, are you working on north being 0deg and east being 90deg?

Edit: Just noticed someone else having trouble on Vulcan. :-) Thanks for a great tracker!

Edit2: It's all my fault, I missed the line that says the sensor has to be facing up! :-(
Tallinu  [author] Jul 3, 2020 @ 10:32am 
No problem, I do come back from time to time as the devs release an update or two, so it's not like I don't enjoy it! Not sure when I'll have the spare time and brainpower to figure out a permanent fix for this but it's good to know it exists in case anyone else is having the same trouble.
Tallinu  [author] Jun 29, 2020 @ 12:12pm 
I think you've caught a bug in the code actually. I thought I had tested all solar panel rotation options, but placing a panel with the power port facing south and setting that in the config results in the panel facing directly away from the sun. For a workaround, configure it as if your panels are facing north instead of south. That should get them tracking properly until I can figure out why it's misbehaving! :)
Tallinu  [author] Jun 26, 2020 @ 5:22am 
@Phantasm
It's always possible that something has changed. They have been known to fiddle with the solar panels on beta branch, among other things. ;)
I haven't been playing much lately and haven't personally tested it on the current beta branch, but (so far) there aren't any other reports of a problem...
If your report was more detailed than "not working" I might be able to give you a more helpful answer. Have you gotten it working on the stable branch? If so, try using the beta client to load a world from stable where it is already working properly, and see if it still works or suddenly breaks. And if it does break, please try to describe how. Thanks!
Golden Dragon May 28, 2020 @ 1:31am 
Great code! thx! :)
Guardian50 Apr 6, 2020 @ 9:06am 
Thx