Bug with my program
tutedutsch 30 Nov 2015
Hello,
I have a problem with my own written program.
I always get the message:" Tute:1: attempt to index ? (a nil value) " but I can´t find a mistake.
Here is the pastebin program link: http://pastebin.com/UxSXS3Ra
Thanks for your help
I have a problem with my own written program.
I always get the message:" Tute:1: attempt to index ? (a nil value) " but I can´t find a mistake.
Here is the pastebin program link: http://pastebin.com/UxSXS3Ra
Thanks for your help
Hydrotronics 30 Nov 2015
so, from what i can see, there is nothing wrong :/ what i'd do in this situation is just remove it, then run the code, and then to attempt to put it in afterwards.
I don't think that this is a verson error as i could use turtle.select back in tekkit classic.
I don't think that this is a verson error as i could use turtle.select back in tekkit classic.
Creator 30 Nov 2015
If the program you show is Tute (shouldn't in be turtle?), then it means that turtle is actually nil. (strange)
Lupus590 30 Nov 2015
are you running on a turtle? the turtle API is only available on turtles.
edit:
Edited by Lupus590, 30 November 2015 - 07:35 PM.
edit:
Edited by Lupus590, 30 November 2015 - 07:35 PM.
tutedutsch 30 Nov 2015
RoD 01 Dec 2015
Bomb Bloke 01 Dec 2015
RoD, on 01 December 2015 - 06:08 PM, said:
The program name has nothing to do with the turtle api.
It does when the first line of the posted script attempts to index into the turtle table, and the error calls that impossible. Creator was suggesting tutedutsch had the wrong file, as it's not often people make the mistake of trying to run turtle code on a non-turtle.
Edited by Bomb Bloke, 01 December 2015 - 10:26 PM.
RoD 02 Dec 2015
How so it does? I am really not getting how a program name and an api can have anything to do with each other, other than if the api name was renamed to "tute" in this case.
Bomb Bloke 02 Dec 2015
Error:
Line 1 of posted script:
Therefore, if the posted script is "Tute", then "turtle" is nil... which turned out to be exactly the case.
Tute:1: attempt to index ? (a nil value)
Line 1 of posted script:
turtle.select(1)
Therefore, if the posted script is "Tute", then "turtle" is nil... which turned out to be exactly the case.