Stationeers

Stationeers

Stationeers
Share the best world creations and game modifications with the community for Stationeers through Steam workshop.
FirePhoenox 2022 年 7 月 7 日 上午 8:06
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
< >
正在显示第 1 - 5 条,共 5 条留言
FirePhoenox 2022 年 7 月 8 日 上午 5:31 
I will be looking into this, Thank you
FirePhoenox 2022 年 7 月 8 日 上午 6:13 
引用自 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 2022 年 7 月 18 日 下午 8:50 
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
最后由 skunkmonkey 编辑于; 2022 年 7 月 19 日 上午 7:26
FirePhoenox 2022 年 7 月 20 日 下午 12:07 
引用自 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.
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50