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

"no such program" in turtle

Started by borek555, 14 April 2013 - 10:20 AM
borek555 #1
Posted 14 April 2013 - 12:20 PM
Hi. I have a really frustrating problem. When i try to type any command in the turtle (even copied from wiki!) it just says "no such program" …
I've been looking for solution on Internet, but I haven't found anything that can help :(/>
Can anobody help me? I can't write any program for turtles because even functions like turtle.forward() just don't work! I will be very happy if anybody helps me.
SadKingBilly #2
Posted 14 April 2013 - 12:49 PM
You are entering statements as though they were program names, I assume. This is not a bug, you're just doing it wrong. In order to use a function (such as turtle.forward()), you must first put it in a file and then run that file. Turn on the turtle, then type something like "edit test". This will create a file called "test" and open it in the editor. Then type turtle.forward() into the file, click Ctrl, then press enter. Now you can run the program to call the function. Just type "test" and press enter.
superaxander #3
Posted 14 April 2013 - 09:44 PM
You are entering statements as though they were program names, I assume. This is not a bug, you're just doing it wrong. In order to use a function (such as turtle.forward()), you must first put it in a file and then run that file. Turn on the turtle, then type something like "edit test". This will create a file called "test" and open it in the editor. Then type turtle.forward() into the file, click Ctrl, then press enter. Now you can run the program to call the function. Just type "test" and press enter.
Good thinking I couldn't come up with that!
Cloudy #4
Posted 14 April 2013 - 10:28 PM
…or just type "lua" and run it there.
borek555 #5
Posted 15 April 2013 - 12:08 AM
Ok thanks, that worked :D/>
Sorry, I'm new and I didn't find all of the information necessary :D/>
But anyway, thank you all very much !!!