Jump to content




Sending a group of turtles a message to start their program


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

#1 Eisaes

  • New Members
  • 1 posts

Posted 17 January 2014 - 11:51 AM

Hello,

I'm looking for a script wich allows me to run a program on several turtles, from a computer.
Does a script like that exist?

#2 Buho

  • Members
  • 110 posts

Posted 17 January 2014 - 12:54 PM

Actually, I was wondering the same thing today.

Ideally, I'd like to have a stack of (generic) turtles, plop them down in front of a disk drive, and have them load a script and then run it. (The script has them fuel up and move out of the way for the next.) The trouble is they have no startup routine and I don't know how to force a program onto a turtle and force it to run it. Maybe this is impossible?

EDIT, sorry if this is a hijack. It's a slightly different question than the OP.

Edited by Buho, 17 January 2014 - 12:55 PM.


#3 CometWolf

  • Members
  • 1,283 posts

Posted 17 January 2014 - 02:16 PM

loading a file onto a disk named "startup" then placing a computer or a turtle next to a drive with the disk in it will make it boot up the file named "startup". Whenever i need a script to setup multiple computers/turtles i usually have one main turtle that places and programs the others using a disk drive and a disk. Just note that the building turtle will have to use the others as a peripheral, and use peripheral.callMethod(side,"turnOn") to boot them into the startup script loaded on the disk. This is pretty easy to do, especially if you want them all to be identical.

#4 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 17 January 2014 - 02:33 PM

peripheral.call("side", "turnOn"), replacing side with the actual side name. Just for clarity, since there isn't a peripheral.callMethod function.





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users