Jump to content




[1.73] Rednet not working



  • You cannot reply to this topic
9 replies to this topic

#1 Waitdev_

  • Members
  • 432 posts
  • LocationAdelaide

Posted 11 July 2015 - 03:02 PM

so i was using rednet, and it decided to fail.
i just did a simple rednet.receive(), then it says
lua:1: attempt to call nil

#2 MKlegoman357

  • Members
  • 1,170 posts
  • LocationKaunas, Lithuania

Posted 11 July 2015 - 03:31 PM

You probably misspelled it. Check the spelling, Lua is also case-sensitive, so 'rednet' is not the same as, for example, 'RedNet'.

#3 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 11 July 2015 - 03:35 PM

Moved to Ask a Pro.

#4 The_Cat

  • Members
  • 119 posts

Posted 11 July 2015 - 04:47 PM

Can we see more code? And make sure the modem is on "rednet.open("side")"

Edited by The_Cat, 11 July 2015 - 04:47 PM.


#5 LewisTehMinerz

  • Members
  • 174 posts
  • LocationMinecraft in Minecraft in Minecraft in ComputerCraft... in Minecraft

Posted 14 July 2015 - 03:20 PM

You misspelled receive. You wrote recieve.

#6 Waitdev_

  • Members
  • 432 posts
  • LocationAdelaide

Posted 15 July 2015 - 04:42 AM

i've tried both, and no i didn't
just recheck that .-.

Edited by Wait_, 15 July 2015 - 04:43 AM.


#7 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 15 July 2015 - 05:07 AM

View PostWait_, on 15 July 2015 - 04:42 AM, said:

i've tried both, and no i didn't
just recheck that .-.

Still doesn't work? I assume you've restarted the computer by now.
Could you post screenshots?

#8 ReBraLa

  • New Members
  • 2 posts

Posted 17 July 2015 - 10:44 AM

maybe u need to use id,message = rednet.receive(()

#9 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 17 July 2015 - 03:09 PM

View PostReBraLa, on 17 July 2015 - 10:44 AM, said:

maybe u need to use id,message = rednet.receive(()

1. No, he doesn't need to save the variables
2. You have 2 open parentheses, so that would error.

#10 BowWhalley

  • Members
  • 25 posts
  • LocationMelbourne (AU)

Posted 17 July 2015 - 03:24 PM

If you would like the message rednet is sending use this.
rednet.open("left") -- change left to the side of the computer/turtle the modem is on
local senderid, message = rednet.recieve()

Here is an example.
rednet.open("top")
while true do
local senderid, message = rednet.recieve()
print(message)
end
More info here

Edited by BowWhalley, 17 July 2015 - 03:46 PM.






2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users