r/ComputerCraft • • Feb 02 '15

ComputerCraft Networking in Tekkit Classic (1.2.5)

Hello, I run a Tekkit Classic Server, and My friend and I have created a wireless email system. Upon sending a message using: lua> rednet.broadcast("Message") I get this error message in console: 18:58:08 [INFO] ComputerCraft: Warning! Computer task queue overflowed. I have no idea what is wrong, and neither does my friend. Here is the code: Networking Computer: repeat rednet.open("right") id, message = rednet.receive() rednet.broadcast(message) os.startTimer(10) until(0==1)

Sending/Receiving Computer: repeat rednet.open("left") print("Checking For Mail...") id, message = rednet.receive() print(message) until(0==1)

We had 3 computer originally, and it worked fine, but due to the 64 block range of the wireless modem in this version, we had to add 19 computers that take the message, and send it to the next in line. Does anyone know how to fix this??

Thanks

0 Upvotes

3 comments sorted by

1

u/[deleted] Feb 02 '15

Just formatted your code, I haven't changed anything.

repeat
rednet.open("right")
id, message = rednet.receive()
rednet.broadcast(message)
os.startTimer(10)
until(0==1)

Sending/Receiving Computer:

repeat
rednet.open("left")
print("Checking For Mail...")
id, message = rednet.receive()
print(message)
until(0==1)    

1

u/dragon53535 Feb 06 '15

My biggest thought is that two of your computers (Or his, whichever way you look at it) are looping broadcasts.

1

u/[deleted] Feb 02 '15

My guess is that you're repeating too quickly. Try putting a sleep(.1) in the loop.