r/Stationeers • u/CMT_bLoCkEr • 4d ago
Support Need help wit IC10 script

Hey everybody, when I played stationeers last time I was using this script to automate my grow lights and it worked. But today I started the game again after not playing it for a while and my grow lights are turned off in a night and on through out the day. And I can't find the reason why it is happening. I would really appreciate if someone could point out the mistakes I can't see.
10
Upvotes
6
u/x23ranged 4d ago
isnt that intentional? you will need a duration of darkness for your plants or they will stop growing. additionally you can combine the growlights with the light from the sun you can get up to 180% light intensity
also the reason is the "sgtz" is checking if there is any solar radiance and setting r1 to 1, so if sun is out, growlights will turn on
3
u/gbroon 4d ago
It's turning on if solar radiance is greater than zero. It'll turn them on through the day when there's sunlight. It's working as programmed.
What's your goal with the lights? If it's augmenting weak daytime light this is probably correct.
3
u/xerkus 4d ago
sgtz = select greater than zero r1 = 1 when r0 > 0
More important you do not want light all the time as it will kill the plants. Plants must have their required period of darkness to rest while the remainder of the 20 minute cycle can be light.
2
u/romczar 4d ago
You actually done it right. You don’t want to have grow lights enabled all day.
That being said. Sometimes if you have some natural light obstructed and grow lights give only 80% so it is better to calculate from daylight sensor to enable grow lights 2 minutes before Sunrise and disable 2 minutes after sunset. You will have 6 minutes of night which is enough for planta and 14 minutes of light. As far as I remember i done it based on Horizontal property of the sensor that has to be on-54/+54 degrees and based on that you enable and disable it (based on orientation)
1
u/WhiteRau 2d ago
why bother with daylight at all? just set timer intervals for the lights and call it done. my garden is underground, has never seen the light of day, yet I have continual, reliable crops.
-2
u/LordThunderDumper 3d ago
Claude, is actually really good with ic10.
1
u/SchwarzFuchss Doesn’t follow the thermodynamic laws 4d ago edited 4d ago
Your main mistake is using such weird logic, you're killing your plants. Press F1 and read how much light time different plants need