Posted 30 August 2013 - 11:41 PM
I'm not sure if its a bug with computer craft or my code but all of the computers on my servers using while true loops keep getting "too long without yielding"
my situation:
version : 1.5.2
Computercraft version : 1.53
what i think the error: probably something to do with the tps
other mods : FTB Unleashed 1.5.2
OK so i had code on my pastebin from 1.4.7 here is the code:
after a few hours it stops and spits out too long without yielding, I've done everything i can think of to fix it but no go.
i get the same error on another computer too and its not even a turtle:
too big to paste here so: http://pastebin.com/QRDqnUJM
my situation:
version : 1.5.2
Computercraft version : 1.53
what i think the error: probably something to do with the tps
other mods : FTB Unleashed 1.5.2
OK so i had code on my pastebin from 1.4.7 here is the code:
term.clear()
term.setCursorPos(1,1)
os.setComputerLabel("TMG"..os.getComputerID())
print("Killing Mobs...")
while true do
for i=1,3 do
turtle.select(i)
turtle.drop()
end
turtle.attack()
sleep(0)
end
after a few hours it stops and spits out too long without yielding, I've done everything i can think of to fix it but no go.
i get the same error on another computer too and its not even a turtle:
too big to paste here so: http://pastebin.com/QRDqnUJM