2 posts
Posted 01 May 2013 - 10:20 PM
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.
8543 posts
Posted 02 May 2013 - 12:48 PM
We will need the whole code.
9 posts
Posted 15 May 2013 - 08:07 AM
I have the problem withe 3 codes working togetherhttp://pastebin.com/B4ZpxpmVhttp://pastebin.com/yQSvCCQKhttp://pastebin.com/jypAecUhand on the turtle it saysToo long without yieldingbut on computer nothing
758 posts
Location
Budapest, Hungary
Posted 15 May 2013 - 10:39 AM
In
http://pastebin.com/yQSvCCQK:
senderID, message, distance = rednet
should 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.
9 posts
Posted 15 May 2013 - 12:50 PM
now
avaitcommand:3: attemt to call nil
135 posts
Posted 15 May 2013 - 01:09 PM
now
avaitcommand:3: attemt to call nil
On what script does it give you this error?
758 posts
Location
Budapest, Hungary
Posted 15 May 2013 - 01: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?
9 posts
Posted 15 May 2013 - 02:16 PM
i use only these three codes together
no its like you told
senderID, message, distance = rednet.receive()
1 posts
Posted 25 June 2013 - 04: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.
7508 posts
Location
Australia
Posted 25 June 2013 - 12:21 PM
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.
Wrong…
rednet.receive gives you the sender id, the message sent, and the distance that it was sent over! Please if you're going to try and help, make it accurate information.