Posted 19 December 2012 - 12:00 PM
I have tried to figure this out myself and also tried to search for something I can use to help me make it but have had no luck, I am really new to the whole Computercraft world!
Basically I am looking to have a Master computer set up that can tell my turtles to run a program that is already on their systems.
I would like the turtle to have a start-up command (Which it always loads on start up) that allows it to receive the command from the master computer.
The command that I would want to send from the master computer would be one telling the turtle to activate the program I want it to use.
I guess this would hopefully change the turtle from it's start-up program and carry out the other program.
This is the first step, is this possible?
I assume if it is possible, then when ever i log out for an extended period of time and the computer turns off, when i log back on it will go back to it's start-up program?
Also; would it be possible to add (into the program the turtle will be using) a code that will also listen for more commands (for example to turn it off) from the master computer?
I'm currently using it just for one turtle. The code the turtle will be running is;
Basically I am looking to have a Master computer set up that can tell my turtles to run a program that is already on their systems.
I would like the turtle to have a start-up command (Which it always loads on start up) that allows it to receive the command from the master computer.
The command that I would want to send from the master computer would be one telling the turtle to activate the program I want it to use.
I guess this would hopefully change the turtle from it's start-up program and carry out the other program.
This is the first step, is this possible?
I assume if it is possible, then when ever i log out for an extended period of time and the computer turns off, when i log back on it will go back to it's start-up program?
Also; would it be possible to add (into the program the turtle will be using) a code that will also listen for more commands (for example to turn it off) from the master computer?
I'm currently using it just for one turtle. The code the turtle will be running is;
while true do
if turtle.detect() then
turtle.dig()
end
itemcount = turtle.getItemCount(9)
if itemcount == 64 then
for i=1,9 do
turtle.select(i)
turtle.drop()
end
turtle.select(1)
end
end
Edited by