Stationeers

Stationeers

Stationeers
Share the best world creations and game modifications with the community for Stationeers through Steam workshop.
Help with new Solar update
I have this script that is very basic, lights on at night and very min coding for solar. I was wondering if anyone can update the tracking to work with the june update? here is the code


alias Sensor d0
define Solars -1545574413
define Lights 1514476632 #added this

alias H r0
alias V r1

sunrise:

day:
yield
sb Lights On 0 #added this
l H Sensor Horizontal
l V Sensor Vertical
bge V 96 sunset
jal translateH
sb Solars Horizontal H
jal translateV
sb Solars Vertical V
j day

translateH:
add H H 360
mod H H 360
j ra

sunset:
sb Solars Horizontal 90
sb Solars Vertical 0

night:
yield
sb Lights On 1 #added this
l V Sensor Vertical
bge V 90 night
j sunrise

translateV:
sub V 75 V
div V V 1.5
j ra
< >
Showing 1-5 of 5 comments
FirePhoenox 8 Jul, 2022 @ 5:31am 
I will be looking into this, Thank you
FirePhoenox 8 Jul, 2022 @ 6:13am 
Originally posted by FirePhoenox:
I will be looking into this, Thank you
nope can't figure it out, no matter what I do i can't get it to track
skunkmonkey 18 Jul, 2022 @ 8:50pm 
It’s much easier now. Just point the rounded end of the sensor to face the same direction as your panels face when they are facing 0, 0 or as close as they can get to 0, 0 anyway.

The IC10 code is then:
alias sensor d0

define SOLAR <look up number I’m on iPad now>
define LIGHTS <ditto>

start:
yield

# solar
l r0 sensor Horizontal
sb SOLAR Horizontal r0
l r0 sensor Vertical
sub r0 90 r0
sb SOLAR Vertical r0

# lights
l r0 sensor Activate
seqz r0 r0
sb LIGHTS On r0
j start
Last edited by skunkmonkey; 19 Jul, 2022 @ 7:26am
FirePhoenox 20 Jul, 2022 @ 12:07pm 
Originally posted by skunkmonkey:
It’s much easier now. Just point the rounded end of the sensor to face the same direction as your panels face when they are facing 0, 0 or as close as they can get to 0, 0 anyway.

The IC10 code is then:
alias sensor d0

define SOLAR <look up number I’m on iPad now>
define LIGHTS <ditto>

start:
yield

# solar
l r0 sensor Horizontal
sb SOLAR Horizontal r0
l r0 sensor Vertical
sub r0 90 r0
sb SOLAR Vertical r0

# lights
l r0 sensor Activate
seqz r0 r0
sb LIGHTS On r0
j start


Thank you!! The code is much smaller and it works great. Again thank you for taking the time to re-code this for me with the june update.
< >
Showing 1-5 of 5 comments
Per page: 1530 50