Stationeers Automated hydroponics

Sdílet
Vložit
  • čas přidán 28. 01. 2021
  • Today we have a double whammy where we are going to code 2 chips. First we will automate Harvie and then we will change the code to automate 3 Harvies from the same chip. Then we do some plant health and safety by programming a chip to tell Harvie when it is safe to plant.
    Code available on the workshop:
    steamcommunity.com/sharedfile...
  • Hry

Komentáře • 48

  • @quintinseegers7317
    @quintinseegers7317 Před 3 lety +7

    THANK YOU for actually explaining what your IC code does and how it works. Most players just say "grab my IC code from the workshop and off you go," without explaining how their code works, making it near impossible to figure out why if it doesn't work.

  • @mwwoggy
    @mwwoggy Před 3 lety +7

    You are far and above the rest when it comes to explaining what you're doing and the game mechanics - thank you so much!
    I agree: Watching plants grow IS like watching grass grow!

  • @Deathbyfartz
    @Deathbyfartz Před 3 lety +6

    keep it up mate, i would've been absolutely lost without your thorough tutorials, still thoroughly lost when it comes to IC tho haha.
    i have found you to be by far one of the best tutorial and guide creators for stationeers.

  • @JoannaHammond
    @JoannaHammond Před 3 lety +1

    nice quick bug fix in the video... changing ra to plant :D

  • @OdhisOdhiambo
    @OdhisOdhiambo Před 3 lety +3

    you saved my weekend, haha. amazing tutorial. couldnt find any code on steam workshop. but now iam able to write my own code. thanks a lot again mick.

  • @jfoster353
    @jfoster353 Před 3 lety +3

    You are awesome!!!
    I'm so glad you showed the hydroponic device and hydroponic tray difference, that took me so long to discover when I did this and I hope that it saves someone else the time I wasted!!!
    My code is sloppy at best but I will try to make it better now that you have gave me the enlightenment I needed.
    THANKS

  • @CHONcorp
    @CHONcorp Před 3 lety +2

    Right on time just finishing my greenhouse :)

  • @quartzar
    @quartzar Před 3 lety +1

    Perfect timing!!!!

  • @robertnett9793
    @robertnett9793 Před 2 lety +2

    I wonder if you can use the batch slot reader to get an unlimited number of harvies hooked up instead of only three per chip.
    I mean, sure it would only work if you have identical plants planted at the same time.
    But for bulk production - like you need for composting / gas production it should work. (Working on a concept right now, however can't really wrap my head around the code I need).
    Also - is there a way to tell if the hydroponics device has been fertilized? (This also ties into the composting/gas production idea - as you basically want more yield per crop to maximize gas production per water.
    EDIT:
    So to answer my two questions.
    a) You can. However its not as elegant as I expected. You need a sepperate batch slot reader for any value you want to know (which should be obvious - but being a big dum dum, I had to try it out first...) you also need a surprisingly lot of them. maturity-min, seeding, harvie-input slot - and if you want to be sure, two extra for maturity-max...
    The system as is, is also not quite as stable as I want it to be. You need to have exactly the same crops in exactly the same conditions (growlights) so they mature at the same speed. Luckily there is no variance to growing times or seed-production - otherwise it would simply break down...
    b) yes you can read the fertilizer-slot - but at the moment I just let the machinery stop when the devices are not fertilized and do it by hand, because I don't know, if I can use fertilizer with the harvie - and how the hell I get them to take uniformily seeds and occasional fertilizer. I have to look further into that.
    But as it stands now - if you want to control more than, say 15 harvies or so, batch reading becomes slightly more resource-efficient compared to 1 IC / 3 harvies. For just the low low cost of occasionally stop the whole system, harvest by hand and restart the darn thing. PROGRESS!!!

  • @MrJFlipflop
    @MrJFlipflop Před rokem

    This is awesome. Some Idea: Can you actually alias harvies? The idea is to use only one hydrophonic device with a row of hydrophic trays connected to it and use the the first one for the logic. That means ofc you have to plant the whole line the same plants but that should work or?

  • @birdmanaviator
    @birdmanaviator Před rokem

    1:00 wish i new this sooner!!

  • @JoannaHammond
    @JoannaHammond Před 3 lety

    Another solution around the pin issue is to use batch reading. As long as you only have one of that device, or can use many for a min/max/avg, etc it's all good. I use this on my atmo control system, I have multiple pressure sensors and batchread the avg to get a room reading, I have a flashing light and switch, the volume pump controls, the active vent control, etc. All in all I have nearly 9 different devices controlled from that one chip :D

    • @robertnett9793
      @robertnett9793 Před 2 lety

      I tried this. And I admit it's probably because I am a noob cursed with dangerous half-knowledge, but - I've commented on this - it's not as stable as one could wish. Any disruption in plant growth, seed production or fertilization grinds the system to a halt. Sometimes it just get's stuck in a harvesting loop, so you have to halt the system, harvest everything by hand and restart. (but again that simply could be just my program).
      Point is, it may work for a large batch of exactly the same plants - but for your average diverse food production it's too diverse to work with batch reading / writing.

    • @eAddiction
      @eAddiction Před 2 lety

      @@robertnett9793 what about only proceeding if batch reading minimum on maturity is 1? the system will only harvest when all plants are matured but its an efficiency trade off for automation. besides, all growth would finish before any real decay took place, right? at least it sounds like it would work in theory. i havent tested it myself but i will once i have the need for automating it

    • @robertnett9793
      @robertnett9793 Před 2 lety

      @@eAddiction I've worked it out over time and it kinda works now.
      For the harvesting-deadloop I just increased the pause in between the cycles by a second.
      You can do with reading the maturity. that is what I did.
      However, you still will get into problems when you plant different plants:
      Some yield less than others, and the moment, maturity isn't 1the system halts, as the trays aren't empty, nothing gets replanted...
      It works for one sort of plants pretty well though.
      However I haven't figured out a way to automate fertilization. (Which you kinda need, if you want to run a generator for example...)

  • @XxsniperxelitxomegaxlmaoxOwOxX

    how can one guy make all of these codes and tutorials
    i n s a n e l y g o o d

  • @derk4737
    @derk4737 Před 2 lety

    So what are some things that you can do and build in stationeer?

  • @Mac-kanal
    @Mac-kanal Před 2 lety

    what is value on the 2 men chip to the temp controll

  • @vault1515
    @vault1515 Před rokem

    Hello, I have a question about Your code. I sometimes have a problem with harvies that one of three connected to one IC says it is busy harvesting but it is not doying anythink and not letting any other of the harvies do what they need. Only thing that helps is to harvest manually. Did anyone had simmilar problem?

  • @mokmo23
    @mokmo23 Před 2 lety +1

    Is there an updated version with the Seeding code you have mentioned on the code page's description ?

  • @TheBrookemarley
    @TheBrookemarley Před 3 lety

    Amazing tutor like always
    I've got several questions though:
    - what is the difference between brdns and bdns?
    - what is "jal" function?

    • @CommanderHayes
      @CommanderHayes Před 3 lety +2

      Open stationeering.com/ and click "IC Simulator". You have all the functions listed there, you can use Ctrl+F to search.

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +2

      The 'b***' and 'j' commands are absolute jumps that will jump to a line or tag anywhere in the code. The 'br***' and 'jr' commands are relative jumps to skip foward of back a number of lines relative to the current line. The commands ending in '***al' are jumps that will store the current line number in register 'ra' before jumping so that the code can return the same location when desired.

    • @CommanderHayes
      @CommanderHayes Před 3 lety

      @@cowsareevil7514 How are relative jumps useful, particularly here in MIPS?

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety

      @@CommanderHayes It is a very simple way to skip or repeat a line of code without having to set up tags. Or it can be used for case statements.

    • @CommanderHayes
      @CommanderHayes Před 3 lety

      @@cowsareevil7514 I see, thanks.

  • @khenapitchoum936
    @khenapitchoum936 Před 3 lety +1

    Hello ! What optimal solutions do you have to automate seeding and storage since the update of food decomposition times? Thanks for your insights!

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +1

      Wait for the next patch. It looks like refridgerated vending machines will be the solution.

    • @khenapitchoum936
      @khenapitchoum936 Před 3 lety

      @@cowsareevil7514 Fine and thank you for the happy news! In the meantime, I would make charcoal ;-) Greetings from France !
      PS : charcoal is good for steel lol

  • @AdmiralKeramane
    @AdmiralKeramane Před rokem

    Sorry to necro out of nowhere, but the new Farming update has put the Seeding stage -after- the Mature stage. I'm terribad at machine code, and while I'm slowly getting better (thanks to these videos) I'm still not the most confident in my coding. Could you update the code to harvest after seeding? Or tell me where to adjust it, one of the two ideally.

    • @VojtechNechansky
      @VojtechNechansky Před rokem

      start:
      alias hydro d0
      alias harvie d3
      jal kontrola
      alias hydro d1
      alias harvie d4
      jal kontrola
      j start
      kontrola:
      ls r0 hydro 0 Mature
      beq r0 -1 Zasad
      ls r0 hydro 0 Seeding
      beq r0 1 Sklid
      ls r0 hydro 0 Mature
      beq r0 1 Sklid
      j ra
      Zasad:
      s harvie Plant 1
      sleep 5
      j ra
      Sklid:
      s harvie Harvest 1
      sleep 5
      ls r0 hydro 0 Seeding
      beq r0 1 Sklid
      ls r0 hydro 0 Mature
      beq r0 1 Sklid
      j ra

  • @killajaden891
    @killajaden891 Před rokem

    Im getting a Incorrect Logic Type at line 32

  • @leakyabstraction
    @leakyabstraction Před 3 lety

    I was wondering why didn't you put them directly next to each other; then I realized that the data connection version doesn't support that. Strange.

  • @qazxswdhjdg
    @qazxswdhjdg Před 3 lety

    because "ls" don't work for Hydroponic Device ?

  • @kellybehlen3926
    @kellybehlen3926 Před 3 lety

    Not sure if you're aware of the issue, but when Harvie 1 runs out of seeds to plant it causes a failure down the line and Harvie 2 and 3 won't operate.

    • @kellybehlen3926
      @kellybehlen3926 Před 3 lety

      The same goes for Harvie 2... Harvie 3 won't operate.

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety

      Check that you have the right trays matched to the harvies. The cascading error sounds like harvie is reading from the wrong tray. If harvie 2 is paired to tray 1 then it thinks the tray is empty and then wont harvest.

    • @kellybehlen3926
      @kellybehlen3926 Před 3 lety

      @@cowsareevil7514 I do have them set up right. Try putting 3 rice in harvie 2 and 1 rice in harvie 1, you'll see that harvie 2 stops working after harvie 1 is out of seeds.

  • @CHONcorp
    @CHONcorp Před 3 lety

    Question is it possible to batch read and batch write with the IC directly to more than 3 hydroponics devices ?

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +1

      Batch commands will work on all connected devices of a particular type. I have used 3 so I can control them individually but you could batch read the hydroponics and wait unitll they are all ready to harvest and then batch write the Harvie to harvest then you could control hundreds from the one chip.

    • @OdhisOdhiambo
      @OdhisOdhiambo Před 3 lety

      @@cowsareevil7514 thats what iam looking for. thanks for this hint.

    • @OdhisOdhiambo
      @OdhisOdhiambo Před 3 lety

      @@cowsareevil7514 mhmmm, if if i batch read directly (ls r0 -1841632400 0 Mature) it show "incorrct variable". so do i need a logic batch reader or slot reader for each hydro device?

    • @OdhisOdhiambo
      @OdhisOdhiambo Před 3 lety

      okay, reading with only one batch slot reader works. but how about "sb -271480358 Harvest 1", this doesnt work. WHY NOT?

  • @exprompt6402
    @exprompt6402 Před 3 lety

    I watched your video interestingly, but not true.
    When you say it's automatic harvey you're not telling the truth.
    What does the game need harvey for?
    - to create a plantation on complex planets where it is difficult to create Vulcan, Venus..
    Where there are oxygen problems, there are no good oxygen sources where it's hot. You need to develop harvey behind the glass, without player access. We need a completely isolated system.
    We need to do auto plant on the conveyer.
    I worked on such a system, on the venus, but I made a semi-automatic.
    There are a couple of ideas.
    I can show if it's interesting. This will allow you to improve your code and make a real automatic machine.
    Your plantation is a good prototype.
    But there are 2 problems.
    1 no auto plant, you sow with your hands harvey.
    2 Why control each hydroponics?
    - you need to grow 10 tomato - control 1 hydroponics for the remaining 5 slots put harvey control 1.2... 5. Everything grows in one time.
    Your problem you control 1 chip maximum 3 harvey no one really grows 3 species of plants.
    This needs to be fought. When you control 1 chip 5 harvey, it will be right.

    • @cowsareevil7514
      @cowsareevil7514  Před 3 lety +1

      Did you actually watch the video?

    • @exprompt6402
      @exprompt6402 Před 3 lety

      @@cowsareevil7514 Yeah, I was watching.
      Yeah, I was watching.
      But English is not my language, I cannot understand everything accurately and verbatim by ear.
      But what you're doing, I see.
      1) I was interested in 1 part video of the harvey programming for the plant/harvest operation.
      It doesn't seem important to me to program harvey to take into account temperature, water availability, etc. This all unnecessarily complicates the program code, and the whole system.
      And so it is clear that water and climate can be provided by another system, independent of the system of auto harvey.
      2) you have created a semi-automatic system.
      I repeat, it seems to me that the auto harvey system should be a completely automatic system. Ideally behind the glass, without player access, the system itself, and the program will be more versatile.
      And it is important that the system is as simple as possible, and requires less resources to create.
      There must be a whole growing process, from sowing itself, to collecting in a stacker.
      Roughly... You threw 1 tomato into the conveyer receiver at the entrance, you have 10 hydroponics + 10harvie and 1 entrance to the conveyer and 1 exit, the conveyer system, everything turns around there, you get a crop through the stacker.
      You have not implemented such a system.
      You need to put grain in every harvey with your hands, which you did 5.59-6.01 minute of the video.
      Remember when I talk about self-seeding - I don't mean the process when the manipulator sticks the tomato into the ground, I mean the complete process, from putting grain in the harvey entrance to sticking it into the ground by the manipulator. This should all happen automatically.
      PS
      I played a new Venus the other day, I also had to do harvey, but I did not program, I made an semi-automatic system on logic chips on the floor, where behind the glass, auto seeding took place due to the cunning turnover of tomatoes along the conveyer in a spiral, and auto collection.
      And with chips 2 buttons, I gave the harvey command through bath writer to plant/harvest operations.
      CZcams does not allow you to insert pictures, I cannot send a self-plant conveyer diagram here