Jump to content




Let turtle place a turtle with a startup program


  • You cannot reply to this topic
3 replies to this topic

#1 newcat

  • Members
  • 43 posts
  • LocationStuttgart, Germany

Posted 31 August 2014 - 04:51 PM

Hello,

for a project I need a master turtle to place several other turtles, which all have a startup program. The master turtle should be able to give each placed turtle a seperate program.
Is there any way to this? I already tried to mount the "slave" as peripheral, but according to the CC-Wiki there are only these functions:
computer.turnOn() nil Turns on the Computer or Turtle.
computer.shutdown() nil Shuts off the Computer or Turtle.
computer.reboot() nil Reboots the Computer or Turtle.
computer.getID() number computerID Gets the ID of the Computer or Turtle.

I saw something like this in this thread, but I don't know how it's done.

Edited by newcat, 31 August 2014 - 04:53 PM.


#2 Dragon53535

  • Members
  • 973 posts
  • LocationIn the Matrix

Posted 31 August 2014 - 04:59 PM

You could have it carry a disk and a disk drive with it, (disk in slot 16) and have it write the program you want for the turtle into it's startup and computer.turnOn() the turtle. However i believe you'd want to have it either download a file as startup to the turtle from pastebin, or copy a file from the disk and save it as startup so that the turtle will always use that program

#3 hilburn

  • Members
  • 153 posts
  • LocationLondon, England

Posted 31 August 2014 - 05:41 PM

Generally the best solution is to have an installer program called "startup" on a disk drive along with all the programs that you want the turtle to use, you can then reboot the computer and the startup program will copy all the files across to the turtle

#4 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 31 August 2014 - 07:28 PM

If you're in creative mod you can label a turtle, edit the startup then break the turtle to get it in your inventory.
Now you can duplicate it and use it. If you're not in creative then I suggest you take a look at how the person who created the turtle mining swarm did it http://pastebin.com/pa8LvVWe





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users