Jump to content


Quartiz's Content

There have been 4 items by Quartiz (Search limited from 10-February 22)


By content type

See this member's

Sort by                Order  

#65186 Turtles not working

Posted by Quartiz on 28 December 2012 - 05:48 AM in Ask a Pro

oh okay thanks :)



#65157 Turtles not working

Posted by Quartiz on 28 December 2012 - 04:16 AM in Ask a Pro

 TheOriginalBIT, on 28 December 2012 - 03:55 AM, said:

sounds like you are doing this in the Lua program on the terminals... type test.test2() instead

the reason that it says function: random numbers is not actually an error, it is doing a tostring( ) on the function and actually telling you its reference/location in memory, hence the numbers differing each time :) when this is used in programming intentionally it is called function pointers. :)

hope this helps :)
the thing with the () worked like a charm but i still dont understand why the programs isnt working when i program them directly to the turtle or on a floppy disk, any clue? :P



#65156 Turtles not working

Posted by Quartiz on 28 December 2012 - 04:13 AM in Ask a Pro

works now! thanks guys :)



#65143 Turtles not working

Posted by Quartiz on 28 December 2012 - 03:39 AM in Ask a Pro

Okay so i have been trying to get the turtles to work by making floppys and making the programs ingame making lua files and putting them in the right folders "ComputerCraft1.48.zip\lua\rom\apis" i think its the right one anyway and when i finally get past all the errors that im getting when i making the program i end up with some weird error when trying to start it.
When i use the turtle i go lua test.test2 test being the name of the file, the error i get is: "function: 7f1a24aa" and the numbers are random for each turtle.


function test2()
turtle.refuel(2)
turtle.forward()
turtle.up()
turtle.up()
end


when i try the program i have on the floppy or made on the turtle nothing happens and im not forgetting fuel, i might be doing something wrong in the programming stuff but i hope someone can help me.

(im very new to the whole programming thing) :)