Hi slowly learning computer craft at the min but this has got me stumped
I got six turtles running quarry's and they are placed really far from my home, base, hq
the plan is that when they have finished they send a "Mining Complete" message the thing is getting the
computer in my home, base, hq, to keep a log or list them as they complete their task while keeping their ID so I can tell them apart from each other.
This is what I have got working so far just to monitor one but the challenge is to monitor 6 with capability's of adding more or less when needed:
Turtle:
print ("Moving to complete position")
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.forward()
rednet.open("right")
rednet.send(03, DIGGE01)
rednet.close("right")
shell.run ("Menu")
Computer:
shell.run ("clear")
print ("Turtle Monitor")
rednet.open ("right")
rednet.receive()
print ("Turtle01 has finished")
print ("Press any key to continue")
os.pullEvent("key")
shell.run ("reboot")
I think the answer is staring me in the face (if message == DIGGE01 then) is what i am thinking but as its 3am my eyes are going fuzzy and nearly enough cant see the screen.
Any help will be appreciated.
Thanks
UK_Lone_Wolf
PS: Sorry for any grammar mistakes.
I got six turtles running quarry's and they are placed really far from my home, base, hq
the plan is that when they have finished they send a "Mining Complete" message the thing is getting the
computer in my home, base, hq, to keep a log or list them as they complete their task while keeping their ID so I can tell them apart from each other.
This is what I have got working so far just to monitor one but the challenge is to monitor 6 with capability's of adding more or less when needed:
Turtle:
print ("Moving to complete position")
turtle.turnLeft()
turtle.forward()
turtle.turnRight()
turtle.forward()
rednet.open("right")
rednet.send(03, DIGGE01)
rednet.close("right")
shell.run ("Menu")
Computer:
shell.run ("clear")
print ("Turtle Monitor")
rednet.open ("right")
rednet.receive()
print ("Turtle01 has finished")
print ("Press any key to continue")
os.pullEvent("key")
shell.run ("reboot")
I think the answer is staring me in the face (if message == DIGGE01 then) is what i am thinking but as its 3am my eyes are going fuzzy and nearly enough cant see the screen.
Any help will be appreciated.
Thanks
UK_Lone_Wolf
PS: Sorry for any grammar mistakes.