Stationeers

Stationeers

Harvie Controller
21 条留言
Neo 2023 年 8 月 25 日 下午 8:25 
One side note about last post:
Add more devices in the code by adding more lines similar to harvie1-10
Neo 2023 年 8 月 25 日 下午 8:08 
Code Part 2:

move r8 HASH("Harvie7")
move r9 HASH("Hydroponics7")
jal checkdevice
move r8 HASH("Harvie8")
move r9 HASH("Hydroponics8")
jal checkdevice
move r8 HASH("Harvie9")
move r9 HASH("Hydroponics9")
jal checkdevice
move r8 HASH("Harvie10")
move r9 HASH("Hydroponics10")
jal checkdevice
j start

checkdevice:
lbn r0 harvieHASH harvie Activate 0
bnez r0 ra
lbns r0 hydroponicsHASH hydroponics 0 Mature 0
beq r0 -1 plant
bne r0 1 ra
lbns r0 hydroponicsHASH hydroponics 0 Seeding 0
blt r0 GETSEEDS ra
sbn harvieHASH harvie Harvest 1
j ra

plant:
lbns r0 harvieHASH harvie 0 Quantity 0
beqz r0 ra
l r0 db Setting
beqz r0 ra
lbns r0 hydroponicsHASH hydroponics 1 Quantity 0
blt r0 USEPOOP ra
lbn r0 hydroponicsHASH hydroponics Pressure 0
beqz r0 ra
lbn r0 hydroponicsHASH hydroponics Temperature 0
blt r0 278 ra
bgt r0 323 ra
sbn harvieHASH harvie Plant 1
j ra
Neo 2023 年 8 月 25 日 下午 8:08 
I updated the script, it now supports infinite amount of harvies with only one IC!
Note: make sure the names of your devices are matching exactly as mentioned below.
(e.g., "Harvie1", "Hydroponics1")

Due to limitations of max characters, Code Part 1:

define GETSEEDS -1 # -1(No) 0(Yes)
define USEPOOP 0 # 0(No) 1(Yes)

define harvieHASH 958056199
define hydroponicsHASH -1841632400

alias harvie r8
alias hydroponics r9

s db Setting 1

start:
yield

move r8 HASH("Harvie1")
move r9 HASH("Hydroponics1")
jal checkdevice
move r8 HASH("Harvie2")
move r9 HASH("Hydroponics2")
jal checkdevice
move r8 HASH("Harvie3")
move r9 HASH("Hydroponics3")
jal checkdevice
move r8 HASH("Harvie4")
move r9 HASH("Hydroponics4")
jal checkdevice
move r8 HASH("Harvie5")
move r9 HASH("Hydroponics5")
jal checkdevice
move r8 HASH("Harvie6")
move r9 HASH("Hydroponics6")
jal checkdevice
Pear 2022 年 12 月 5 日 上午 2:42 
Note that checking growth for 4 will not work for corn as it has one extra growth stage. I fixed it based on the value of seeds if it isn't zero do not try harvest fruit (of course maturity must be one).
SerialBullfrog 2022 年 12 月 1 日 下午 7:31 
# Harvie controller - Seed Harvesting

alias mature r1
alias growth r2
define PLANTSLOT 0
define INPUTSLOT 0
define HARVESTSEEDS 1

s db Setting 1

checkHydroponics:
bdns hydroponics ra
bdns harvie ra
ls mature hydroponics PLANTSLOT Mature
beqz mature ra
beq mature -1 plant
ls growth hydroponics PLANTSLOT Growth
beq growth 4 ra
s harvie Harvest 1
j ra

The changes that fixed the script to harvest seeds were adding these 2 lines right before the Harvest command. I also added the growth alias at the top.

alias growth r2

ls growth hydroponics PLANTSLOT Growth
beq growth 4 ra

This loads the Growth variable from the hydroponics device and if growth is 4, the plant is still seeding, so Harvest doesn't happen. When growth changes to 5, seeds are harvested.
el.emperador 2022 年 11 月 8 日 上午 1:15 
November 2022: Since the seed now appears later than the fruit, no more seeds are harvested. How to customize that the harvesting process is blocked until the seed has matured?
Keramane 2022 年 11 月 7 日 下午 6:05 
Couldn't you use flip-flop splitters and have them output into the front of your Harvies so they would load-balance and distribute the seeds you want? The load-balance would require a stacker set to 1 (so as to ensure an even load balance) that then feeds into the seed-loading chute line, but it would be relatively easy I'd figure.
Iommonaut 2022 年 3 月 9 日 上午 9:52 
It is working for me now just doesn't have any way to automate refilling the harvies with seeds which still has to be done manually
Rockatansky 2022 年 1 月 15 日 下午 4:58 
Not working
ждун 2021 年 10 月 26 日 下午 4:56 
@CowsAreEvil consider this:

harvest:
ls r0 hydroponics PLANTSLOT Seeding
ls r1 hydroponics PLANTSLOT Mature
xor r0 r0 r1
beqz r0 ra
s harvie Harvest 1
sleep 5
j ra
Popeye 2021 年 9 月 24 日 下午 3:31 
you never reply to anything on your workshop it seems
Mr-Chris 2021 年 9 月 19 日 上午 8:36 
I am having an issue with the controller now. If I use fertilizer the harvie only harvests part of the seeds and part of the fruit.
Otherwise this has been working great. I have a setup of 8 harvies and a chute system that divides the seeds and fruit up. once you start the system it never stops until you break the chutes to stop the recycling of seeds! The fruit goes straight to the oven and the oven goes to the automated packaging machine! I have a limitless supply of canned french fries and tomato soup
Mr-Chris 2021 年 8 月 22 日 下午 8:24 
Love it. You def need a sorter to handle all the seeds and food.
This worked great. Thanks
Sou7ution 2021 年 8 月 10 日 下午 1:00 
The first Harvie keeps all Seeds. I have 9 Harvies connected with a chute. Why do the first push the seeds not to the next one?
Bluelight 2021 年 7 月 16 日 上午 9:27 
Can you make a script to follow up on a full sorter and stacker setup for managing the seeds and produce, and also update the Harvie script to use a gas sensor to prevent planting if the temperature and stuff isn't quite right?
johannesmeyer2 2021 年 5 月 4 日 下午 5:14 
Wenn Harvie nicht pflanzt kann es an der Temperatur vom Wasser liegen. Hab einfach die Temperatur im Programm um 10 Kelvin reduziert. Seit dem läuft das Programm perfekt.

Danke für das Programm.


If Harvie doesn't plant, it may be due to the temperature of the water. I simply reduced the temperature in the programme by 10 Kelvin. Since then, the programme has been running perfectly.

Thanks for the programme.
PressureSwitchX 2021 年 4 月 17 日 下午 5:17 
Thanks! love your channel.
Julia 2021 年 4 月 13 日 上午 8:13 
Does not to start automaticly
mickur 2021 年 4 月 10 日 下午 12:01 
Der Harvie erntet alles aber pflanzt nicht wieder. Gibt es dafür schon eine Lösung?
-----
The Harvie reaps everything but does not replant. Is there already a solution for this?
bluesky-wr 2021 年 3 月 27 日 上午 3:40 
is it not possible to work with Pefab hash codes to control all Harvys and Hydrophonics?
xcrafter09 2021 年 3 月 3 日 上午 6:25 
noice