Posted 11 March 2012 - 11:40 PM
I'm working on a project for my server, and it involves rednet quite a bit. It's important that I can handle the "rednet_message" event as a part of the code, but I've run test code (seperate code just for testing events) and it doesn't seem to work:
[attachment=79:2012-03-11_23.30.31.png]
As you can see in the image, I have one computer attached to another via bundled cable.
One computer has this code…
… and the other this:
It's very simple, but for some reason nothing shows up on the receiving computer when I run the programs, although strangley sometimes the text on the screen does move up, as if some empty lines are being added. Either way it's big problem for me, so any ideas would be much appriciated, thanks.
[attachment=79:2012-03-11_23.30.31.png]
As you can see in the image, I have one computer attached to another via bundled cable.
One computer has this code…
rednet.open("back")
while true do
id, mes = rednet.receive(10)
print(id)
print(mes)
end
… and the other this:
rednet.open("back")
rednet.broadcast("hello world")
It's very simple, but for some reason nothing shows up on the receiving computer when I run the programs, although strangley sometimes the text on the screen does move up, as if some empty lines are being added. Either way it's big problem for me, so any ideas would be much appriciated, thanks.