Posted 10 April 2013 - 06:29 PM
So, I have a logger program that works fine, until it finishes, where it drops different items in several different places. The underlying problem seems to be that the turtle drops items before switching to a designated slot, causing problems. I tried adding sleep(0.5) after my turtle.selects, but it had no effect. The first issue is the basic drop of wood to a chest. I have
Actual: Turtle selects slots 1- 14, dropping wood and saplings into chest.
Next when it tries to get fuel from a furnace
Actual: Turtle drops saplings from slot 1 (selected), switches to slot 16, and (assumingly) sucks from furnace
There might be some other problems, but I didn't test that much because I was so frustrated with this not working right. Why on earth is it doing this? This hasn't happened for me in previous versions. I used this on a server, but it is a pretty good server with only one other person on it at the time, no lag at all.
if turtle.detect() then --If there is a chest
for i=2, 14 do --Slots excluding charcoal and saplings
turtle.select(i)
if not turtle.compareTo(1) then --If item is not a sapling
turtle.drop() --Drop to chest
end
end
end
Expected: Turtle selects slots 2 - 14, dropping wood into chestActual: Turtle selects slots 1- 14, dropping wood and saplings into chest.
Next when it tries to get fuel from a furnace
turtle.select(16) --Fueling slot
turtle.dropDown() --To remove any misplaced items
turtle.suck() --Suck charcoal from furnace
Expected: Turtle selects slot 16, drops any items, and sucks charcoalActual: Turtle drops saplings from slot 1 (selected), switches to slot 16, and (assumingly) sucks from furnace
There might be some other problems, but I didn't test that much because I was so frustrated with this not working right. Why on earth is it doing this? This hasn't happened for me in previous versions. I used this on a server, but it is a pretty good server with only one other person on it at the time, no lag at all.