Topic : Turtle:18: Too Long Without Yielding error . I am using s digging program I have used on other servers for my turtle, but when I use it on the server I am on now it only digs three blocks and then pauses until I get this error. line 18 is local run = 0.
1
Turtle:18: Too Long Without Yielding error
Started by oldmanbill, May 01 2013 09:20 PM
9 replies to this topic
#1
Posted 01 May 2013 - 09:20 PM
#2
Posted 02 May 2013 - 11:48 AM
We will need the whole code.
#3
Posted 15 May 2013 - 07:07 AM
I have the problem withe 3 codes working together
http://pastebin.com/B4ZpxpmV
http://pastebin.com/yQSvCCQK
http://pastebin.com/jypAecUh
and on the turtle it says
Too long without yielding
but on computer nothing
http://pastebin.com/B4ZpxpmV
http://pastebin.com/yQSvCCQK
http://pastebin.com/jypAecUh
and on the turtle it says
Too long without yielding
but on computer nothing
#4
Posted 15 May 2013 - 09:39 AM
In http://pastebin.com/yQSvCCQK:
Explanation: The way you've coded it will set senderID to rednet (the rednet API, the table itself), and message and distance to nil.
senderID, message, distance = rednetshould be
senderID, message, distance = rednet.receive()
Explanation: The way you've coded it will set senderID to rednet (the rednet API, the table itself), and message and distance to nil.
#5
Posted 15 May 2013 - 11:50 AM
now
avaitcommand:3: attemt to call nil
avaitcommand:3: attemt to call nil
#7
Posted 15 May 2013 - 12:22 PM
He's talking about http://pastebin.com/yQSvCCQK, but the error he's mentioned would mean that rednet.receive is nil. And that's obviously not nil. Sorry Skillex, you definitely have a typo there.
OR you've overwritten the rednet API. Do you have "rednet = something" somewhere?
OR you've overwritten the rednet API. Do you have "rednet = something" somewhere?
#8
Posted 15 May 2013 - 01:16 PM
i use only these three codes together
no its like you told
senderID, message, distance = rednet.receive()
no its like you told
senderID, message, distance = rednet.receive()
#9
Posted 25 June 2013 - 03:51 AM
event, senderID, message, distance = os.pullEvent("rednet_message").
The rednet.receive() doesn't give you the sent message, just does whatever you want WHEN a message is received. os.pullEvent("rednet_message") gives you the event, id, msg and distance. Replace this line with the rednet.receive() line, it should work.
#10
Posted 25 June 2013 - 11:21 AM
Arcusgaldan, on 25 June 2013 - 03:51 AM, said:
The rednet.receive() doesn't give you the sent message, just does whatever you want WHEN a message is received. os.pullEvent("rednet_message") gives you the event, id, msg and distance. Replace this line with the rednet.receive() line, it should work.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users