This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
rdalkire's profile picture

Another Food Farmer Available with Boolean Logic Enabled (AFFABLE)

Started by rdalkire, 11 January 2015 - 04:26 AM
rdalkire #1
Posted 11 January 2015 - 05:26 AM
Ok I just made up that name for this post. It's really called "computercraft food farm 1.0.0" in pastebin, or just "frm" when you actually install it to your turtle.

The script itself is here: http://pastebin.com/cp7xVVZT.

Some related links - whose URLs are also embedded in the code comments: HOWTO (in markdown format), and github.

A highlight video snippet:

[media]http://youtu.be/CrPUtKEKjqQ[/media]

I hope you guys like it.
Edited on 11 January 2015 - 05:22 PM
safetyscissors #2
Posted 15 January 2015 - 08:36 AM
Cool system rdalkire,
Just curious about your coding background where the convention is to remove vowels like "plntblCnt" and "indx".
I might suggest, instead of waiting an arbitrary amount of time, you can have it check turtle.inspectDown() and wait for the crop metadata==7.
rdalkire #3
Posted 18 January 2015 - 11:47 PM
Thanks for noticing, safetyscissors. The vowel removal is to help reduce the column width, so you can see a whole line of code without having to scroll sideways, even on the little 39-column computercraft screen. I find if I can see the whole line, there's less burden on my memory and so, I generate fewer defects than I would otherwise. For real-life work I do the same thing, except it's 80 columns. I'm the only one on my team who does it like this but my coworkers don't seem to mind.

And I like your idea to use inspectDown(); that function wasn't available at the time. Thanks again!
Edited on 18 January 2015 - 10:49 PM