[1.5][SMP/SSP]World hangs after too many turtles on talking over Rednet
I'm designing a code to build a massive quarry turtle, but instead of using a single turtle, I'm using a bunch of them (32) to mine an area really fast. But what happens is, after too many turtles have been placed and they start talking to the central computer, the Minecraft hangs (just like this bug report http://www.computerc...g-inaccessible/).
I can place blocks, but cannot open chest or anything. And I've tried waiting for 3 minutes and it didn't recover. I send up to 33 messages per tick (one per turtle), but that's from a single computer to all turtles (when they need an update). Most of the time I don't spam the Rednet, but it crashes when I do this massive update.
ComputerCraft Version Information: 1.5 Client / 1.5 Server
direwolf20 ModPack
Steps to reproduce:
- Create 2 turtles
- put this in one
rednet.open("right"); while true do rednet.send(PUT_ID_HERE,"hi"); end
- And this on the other
rednet.open("right"); while true do local id, message, distance = rednet.receive(); print(message); end
Conclusions
Server hangs after less than 1 second. It was told that was fixed in 1.5, but it's not.
Note that also was said that was a temporary hang. I waited more than 10 minutes without any luck.
Final note
Ok,I now this is rednet spam in an infinite loop, but what I mean is on my script I don't do that, sometimes I send more than 32 packets in a tick, and that's when it hangs (to different computers, of course).
Fix
For a temporary fix, I have limited my code to send 5 packets per tick. On my case that was possible.
Update
Just a quick update, even trying to limit how many packets per tick are sent in the Rednet, my server still hangs. This is actually sad. Hours of coding effort being thrown away =\
Update 2
And working with only 6 turtles on my script and JUST CompterCraft (in Forge, with Not Enough Items only) the server still freezes, and I'm not overflooding the rednet