Posted 15 April 2014 - 02:47 PM
Hello everyone
i just got started with my own little computercraft project and got stuck with this problem.
I wrote a function that basically gets an ID over rednet, places a sign and writes the message on it. Code:
reqNewSignID gets the message over rednet and returns the id among other things. The output I get from the turtle is as expected but the sign is placed empty.
The strange thing is that when I do this over the interactive lua shell everything works fine
i just got started with my own little computercraft project and got stuck with this problem.
I wrote a function that basically gets an ID over rednet, places a sign and writes the message on it. Code:
function placeSign()
local id = reqNewSignID()
if id == nil then
return
end
print("got id "..tostring(id))
turtle.place(tostring(id))
end
reqNewSignID gets the message over rednet and returns the id among other things. The output I get from the turtle is as expected but the sign is placed empty.
The strange thing is that when I do this over the interactive lua shell everything works fine
id=1
turtle.place(tostring(id))