r/Stationeers • • 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

14 comments sorted by

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

7

u/CMT_bLoCkEr 4d ago

Ooo, you are right, I forgot the plants need some darkness. Now I feel really dumb

3

u/Professional_Exit931 4d ago

This game, have a tendency to make the most experienced appear as noobs from time to time. :D

2

u/pm_me_your_emp 3d ago

Dont feel dumb. I too thought that if the sensor was referenced, it would know if it was day or night to turn on/off automatically lol.

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.

1

u/CMT_bLoCkEr 4d ago

My goal is exactly what you said, my brain just wasn’t working at that time and thought I need the light on throughout the night🫠

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

2

u/Friendly-Inspector71 4d ago

Seems rather intuitive to be honest.

Wheat and potatoes won't grow at maximum efficiency but I doubt they would die.

The biggest problem is the sensor getting shaded and providing too little light.

I've been using solar angle as it's more reliable and my plants were doing quite well on mars.

1

u/Dzov 4d ago

Yeah, I was floored at how simple the script is. Mine requires a bit of math and proper orientation of the sensor to work correctly.

1

u/gbroon 4d ago

Few generations of plants and they tend to adapt anyway as long as they don't die.