Posted 03 July 2012 - 09:43 PM
I wrote a program that was supposed to work with Redpower as an automated tree farm using frames. (The inputs are: back cable: white: go down; orange: extend pistons to push tree; magenta: go up; on right cable: input: white - tree grown; orange: ignore white signal.) The code is:
What does that message mean?
function go_down() --Output of 1 = go down
redstone.setBundledOutput('back', 1)
sleep(1)
redstone.setBundledOutput('back', 0)
end
function push() --Output of 2 = Pistons extend
redstone.setBundledOutput('back', 2)
sleep(1)
redstone.setBundledOutput('back', 0)
end
function go_up() --Output of 4 = go up
redstone.setBundledOutput('back', 4)
sleep(1)
redstone.setBundledOutput('back', 0)
end
function move_series()
redstone.setBundledOutput('right',2)
while i > 7 do
go_down()
push()
i = i + 1
end
i = 1
while i > 7 do
go_up()
i = i + 1
end
redstone.setBundledOutput('right',0)
end
function plant()
rs.setBundledOutput('right',4)
sleep(1)
rs.setBundledOutput('right',0)
end
function main()
if (colors.test(redstone.getBundledInput("back"), colors.white) == true then
move_series()
else
main()
end
main()
end
main()
But when I run it, all I get is the message "178"What does that message mean?