Edit: 1:54am EST,

We have isolated the issue with the program itself so I no longer need assistance with this topic! Be my guest to trash the topic if any moderators see this! Thanks in advance.

Regards,
Sig


Greetings,

I recently built a mining barge and used code from a similar setup which can be found in the description of this youtube. [media]http://www.youtube.com/watch?v=cRjnTNELDgs[/media]


However, after testing the code with the changes necessary to the size of my barge and number of mining turtles, I found an error.

Received 32 repliesCommand:22: attempt to call nil



That's all the error says.


Now in the original code, he has his "Command" turtle set as 22 because that's its ID. However, mine is set to 62 because that is my "Command" turtle's ID. So I'm assuming I need to look at that, but there's nothing in the code (which I will follow with momentarily) that says for me to put the ID of my turtle? Confused…


Here's my current code. http://pastebin.com/AN6YZSCP


rednet.open("right")
local n = 0
term.clear()
term.setCursorPos(1,1)
write("Mining Command Turtle")

while true do
while n < 32 do
local i,m,d = os.pullEvent("rednet_message")
n=n+1
term.setCursorPos(1,2)
write("Received "..n.." replies")
end

os.sleep(0.2)
rs.setBundledOutput("front", colours.white)
os.sleep(0.2)
rs.setBundledOutput("front", colours.white)
os.sleep(3)

n = 0
rednet.announce()

end



Any help or guidance to good post(s) would be appreciated!

Regards,

Sig