This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Waitdev_'s profile picture

[1.73] Rednet not working

Started by Waitdev_, 11 July 2015 - 02:02 PM
Waitdev_ #1
Posted 11 July 2015 - 04: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
MKlegoman357 #2
Posted 11 July 2015 - 04:31 PM
You probably misspelled it. Check the spelling, Lua is also case-sensitive, so 'rednet' is not the same as, for example, 'RedNet'.
Lyqyd #3
Posted 11 July 2015 - 04:35 PM
Moved to Ask a Pro.
The_Cat #4
Posted 11 July 2015 - 05:47 PM
Can we see more code? And make sure the modem is on "rednet.open("side")"
Edited on 11 July 2015 - 03:47 PM
LewisTehMinerz #5
Posted 14 July 2015 - 04:20 PM
You misspelled receive. You wrote recieve.
Waitdev_ #6
Posted 15 July 2015 - 05:42 AM
i've tried both, and no i didn't
just recheck that .-.
Edited on 15 July 2015 - 03:43 AM
HPWebcamAble #7
Posted 15 July 2015 - 06:07 AM
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?
ReBraLa #8
Posted 17 July 2015 - 11:44 AM
maybe u need to use id,message = rednet.receive(()
KingofGamesYami #9
Posted 17 July 2015 - 04:09 PM
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.
BowWhalley #10
Posted 17 July 2015 - 04: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 on 17 July 2015 - 02:46 PM