2 posts
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.
169 posts
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.
620 posts
Location
Holland
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!
2447 posts
Posted 14 April 2013 - 10:28 PM
…or just type "lua" and run it there.
2 posts
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 !!!