I need to know how to get a program from a floppy disk onto a turtle. Please HALP! D:
I need some halp! D:
Started by Mehh_, Oct 26 2012 12:07 AM
2 replies to this topic
#1
Posted 26 October 2012 - 12:07 AM
#2
Posted 26 October 2012 - 12:10 AM
Put the floppy disk drive on a side of the turtle that doesn't have anything (no tools/modem/crafting bench).
Placing the disk drive right under the turtle would be your best bet.
Then run:
Replace "file" with whatever your file is called.
Placing the disk drive right under the turtle would be your best bet.
Then run:
copy disk/file filein the terminal, or
fs.copy("disk/file", file)
from a program or the lua interpreterReplace "file" with whatever your file is called.
#3
Posted 26 October 2012 - 12:59 PM
A simple way of doing this automatically is by putting a turtle next to a disk drive which has a floppy with a file named startup (once you rclick on the turtle it will start and load that script).
This is one of my startup scripts so you can just edit it.
This is one of my startup scripts so you can just edit it.
-- this will copy the file startup onto the turtle
if not fs.exists("startup") then
fs.copy("disk/startup","startup")
end
-- this works the same as above but for the file receive.
if not fs.exists("receive") then
fs.copy("disk/receive","receive")
end
-- this will open the rednet on your turtle automatically
rednet.open("left")
-- this will make the shell run the program receive
shell.run("receive")
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











