This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
afischaa's profile picture

Quick Question

Started by afischaa, 23 December 2012 - 09:48 AM
afischaa #1
Posted 23 December 2012 - 10:48 AM
Qustion 1:

Is there a way to input a set of coordinates into a turtle and the turtle will go to that set of coordinates when you tell it to? If there isn't, how do you make a turtle go back to the starting place?

Question 2:

Ho do you make a computer or turtle read for a certain file on a floppy disk?

Sorry if one of these questions sounds confusing, I'm new to this. :)/> Just ask and I'll try to explain better.
remiX #2
Posted 23 December 2012 - 10:56 AM
Question 1:
Check the turtle section, there are tons of GPS programs which work for what you need.

Question 2:
So you wan't it to constantly look for a file on the floppy disk? All you got to do is check if it exists:
if fs.exists("disk/programName") then -- If statement to check if the file exists on the disk
afischaa #3
Posted 23 December 2012 - 11:03 AM
Okay that makes sense. Thanks a ton!
Oct125 #4
Posted 23 December 2012 - 11:12 AM
This may help:
http://www.computercraft.info/forums2/index.php?/topic/3088-how-to-guide-gps-global-position-system/