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

None of the Turtle Functions work!

Started by _removed, 04 March 2015 - 06:18 PM
_removed #1
Posted 04 March 2015 - 07:18 PM
This is really bizarre, none of the turtle functions work! Can somebody help me out here?

EDIT: It only happens with labelled turtles.

EDIT 2: I am using CC 1.7.3, MC 1.7.10, Forge 10.13.1.1217. My code is this:


rednet.open("right")

while true do
    term.clear()
    term.setCursorPos(1, 1)
    term.write("ID: "..os.getComputerID())
    local id, msg, dis = rednet.receive()
    if msg then
	    if msg == "forward" then
		    while not turtle.forward() do
			    turtle.dig()
		    end
	    elseif msg == "back" then
		    while not turtle.back() do
			    turtle.turnLeft()
			    turtle.turnLeft()
			    turtle.dig()
		    end
	    elseif msg == "up" then
		    while not turtle.up() do
			    turtle.digUp()
		    end
	    elseif msg == "down" then
		    while not turtle.down() do
			    turtle.digDown()
		    end
        elseif msg == "left" then
       	 turtle.turnLeft()
        elseif msg == "right" then
       	 turtle.turnRight()
	    elseif msg == "dig" then
		    turtle.dig()
	    elseif msg == "digUp" then
		    turtle.digUp()
	    elseif msg == "digDown" then
		    turtle.digDown()
	    elseif msg == "exit" then
       	 term.clear()
       	 term.setBackgroundColour(colours.yellow)
       	 term.setCursorPos(1, 1)
       	 term.write(os.version())
       	 term.setCursorPos(1, 2)
		    return
	    end
    end
end
Edited on 04 March 2015 - 06:32 PM
MKlegoman357 #2
Posted 04 March 2015 - 07:25 PM
Could you give us more information? Like the CC, MC and Forge versions. Code that fails.
InDieTasten #3
Posted 04 March 2015 - 07:27 PM
Either, your installation is wrong or modified, or you are doing something in your scripts that override your turtle table with something else or nil.
Please provide the code, that fails. There is a pinned topic in ask-a-pro that guides you to a good question, which can be answered precisely and fast. It's only better for you to read that ;)/>
Not trying to scare you off or something, it just helps

It'll be easier for everybody including yourself ;)/>
MKlegoman357 #4
Posted 04 March 2015 - 07:37 PM
Is there any fuel in the turtle?
_removed #5
Posted 04 March 2015 - 07:43 PM
For some reason, it works again now.