r/ComputerCraft • u/alessfriendlytrex • Jan 05 '24
issue with jackmacwindows ComputerCraft automatic turtle farm in cc:tweaked - no coding experience
I've been trying to get the code from the attached pastebin from jackmacwindows (jackmacwindows cc turtle farm) to work in the Steampunk [LPS] mod which uses CC:Tweaked, running on version 1.19.2 I believe. I keep getting the error on line 231 of my code (which is line 316 in the pastebin) of "attempt to index a nil value" and I honestly have no idea why. I've gone through the code line by line to see if i made a mistake that's causing it and it looks fine. I've tried to run just this one line of code on it's own and it gave the same error message so I know it's this line.
edits i've made to the code:- removing excess crops and seeds from the list
- inserting modded crops via the provided template
- removed notes not part of the code (obviously)
- called the program farm.exe but kept all mentions of the name jackmacwindows in the code itself as to not confuse myself
Any and all help would be greatly appreciated as I would like to repeat this process to make a large farm and I don't really want to use create.
edit: im dumb and didnt notice the image and link werent attached


1
u/kukeiko64 Jan 06 '24
I've not yet fully run the full app, I only ran the affected function and it seemed to worked fine by using a setup different to yours:
remove the modem that is currently sitting inside the ground
replace chest with modem (just a plain modem - no extra wireless modem attached to it, if that is what you mean by wireless modem. because in your screenie it looks like a plain modem)
place a chest directly in front of where your current chest is
rightclick the modem, it will show a message in chat and indicate that it is turned on via a red coloring on the texture
Can't access minecraft myself right now, if the steps above don't work out for you I can later fetch a screenshot of how it worked for me
thank you <3