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

[1.33][SMP] Turtles do not work at all past coordinate 32768

Started by LEOcab, 27 June 2012 - 10:02 PM
LEOcab #1
Posted 28 June 2012 - 12:02 AM
ComputerCraft Version Information: 1.3 Client / 1.3 Server

Description of Bug:
If a turtle is placed past coordinate 32768 (or -32769 negative), right-clicking the turtle will bring up a blank terminal. Can't type or do anything on it. Computers work fine, this is just for turtles. Also I only tested it in multiplayer. I'm guessing this has something to do with datatypes since the number happens to be a power of 2 (2^15), but I'm no coding guru.

Steps to Reproduce Bug:
Travel to 32768x,-32769z or anywhere past that (eg. 40000x,40000z) and try to use a turtle.

If someone manages to reproduce the bug successfully, please post here so I know I'm not alone. :P/>/>
Cloudy #2
Posted 28 June 2012 - 11:16 AM
Will look into it today.
Cloudy #3
Posted 29 June 2012 - 08:21 AM
Looked into this - a function we were using accepted ints, but in reality sent everything as shorts, which has a maximum range like you describe! Mojang, y u no consistent!

Should be fixed in next version.
LEOcab #4
Posted 29 June 2012 - 05:23 PM
Looked into this - a function we were using accepted ints, but in reality sent everything as shorts, which has a maximum range like you describe! Mojang, y u no consistent!

Should be fixed in next version.
Haha, yeah I figured… shorts have 64k, but signed is 32k on each side. Glad to hear it. :P/>/>
Cloudy #5
Posted 29 June 2012 - 05:31 PM
Yes, I meant short in Java terms - which is by default signed :P/>/> It has now been fixed by using custom packets.
Divide_By_0 #6
Posted 03 July 2012 - 08:01 PM
i tryed it on my server. No issues. Same CC version.
Cloudy #7
Posted 03 July 2012 - 08:32 PM
As I've said before, already fixed in next ver. I don't need any more confirmations but thanks for the info