Jump to content




Turtle:18: Too Long Without Yielding error


9 replies to this topic

#1 oldmanbill

  • New Members
  • 2 posts

Posted 01 May 2013 - 09: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.

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 02 May 2013 - 11:48 AM

We will need the whole code.

#3 Skillexs

  • Members
  • 9 posts

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

#4 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

Posted 15 May 2013 - 09: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.

#5 Skillexs

  • Members
  • 9 posts

Posted 15 May 2013 - 11:50 AM

now
avaitcommand:3: attemt to call nil

#6 W00dyR

  • Members
  • 135 posts

Posted 15 May 2013 - 12:09 PM

View PostSkillexs, on 15 May 2013 - 11:50 AM, said:

now
avaitcommand:3: attemt to call nil

On what script does it give you this error?

#7 LBPHacker

  • Members
  • 766 posts
  • LocationBudapest, Hungary

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?

#8 Skillexs

  • Members
  • 9 posts

Posted 15 May 2013 - 01:16 PM

i use only these three codes together

no its like you told

senderID, message, distance = rednet.receive()

#9 Arcusgaldan

  • New Members
  • 1 posts

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 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 25 June 2013 - 11:21 AM

View PostArcusgaldan, 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.
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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users