19 posts
Posted 27 June 2013 - 06:41 PM
Hello, I was wondering if somehow when a new turtle is made, another turtle or computer could program it to have code on it. I couldn't find anything so I hope you guys can help.
-BlankTitle
1610 posts
Posted 27 June 2013 - 09:31 PM
You could put a disk drive on top of where the new turtle will be, with the startup program on the disk as the program to copy the program to the turtle (or write an actual program). If you want to automatically turn on the turtle you can put a computer or turtle behind the new turtle and on the rear one, use "peripheral.call("front","turnOn")". (Not sure if that's the actual command, writing this on my phone, but it should be right)
41 posts
Posted 28 June 2013 - 08:08 AM
If you want to send a programm from a turtle/computer to another turtle/computer, then look at this:
Bluetooth using RedNet
52 posts
Posted 30 June 2013 - 04:06 PM
You could put a disk drive on top of where the new turtle will be, with the startup program on the disk as the program to copy the program to the turtle (or write an actual program). If you want to automatically turn on the turtle you can put a computer or turtle behind the new turtle and on the rear one, use "peripheral.call("front","turnOn")". (Not sure if that's the actual command, writing this on my phone, but it should be right)
Full algorithm:
1. Place a turtle
2. Go 1 block up (or right/left, if you have enough space)
3. Place a diskdrive
4. turtle.drop() with disk seleted
5. Go back to the turtle
6. peripheral.wrap("front").turnOn()
7. Go to diskdrive
8. turtle.suck()
9. turtle.dig()
10. (optional) go to the turtle and peripheral.wrap("front").reboot()
Disk must contain installer program in startup. This program must copy all files you need to a turtle and create startup file on it if you need to run a program now.