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

[1.481][SSP] Max height wireless modems range 2 less than config

Started by 42Scope42, 05 January 2013 - 07:33 AM
42Scope42 #1
Posted 05 January 2013 - 08:33 AM
When using computers with modems at max height they are unable to communicate at the range specified in the config, but can when 2 blocks closer together.
Reproduction: Place two computers with modems at max height and max distance apart. They cannot reach each other. Place another computer 2 blocks closer to the first. They will be able to reach each other.
I used gps host and gps locate for easy communication. I also tried increasing the config max height, clear weather range but they still only seem to be able to communicate when 2 blocks closer than the increased range.

EDIT. Been doing more testing on this; halved the max range setting to 192, communication possible at 191. Added half to 576, communication at 574. Doubled to 768, communication at 765. So clearly not constant 2 less as I originally thought.
Lyqyd #2
Posted 07 January 2013 - 11:51 AM
What are the distance arguments on rednet transmissions coming in as, and are you measuring modem to modem or computer to computer?
Cloudy #3
Posted 07 January 2013 - 11:54 AM
Also remember that it is from the centre of the respective blocks, not from the ends.
42Scope42 #4
Posted 07 January 2013 - 03:58 PM
I was using gps host and gps locate to test it so the distance is that given by the gps locate command which comes from rednet.receive and i happen to have the computers and modems parallel so i could measure either but according to the wiki rednet distances are measured from the block the computer is in, not the modem.
It shouldn't have made a difference that it is from the centre in the tests i did because the computers had the same y and z coordinates so that the distances would be integers.
immibis #5
Posted 07 January 2013 - 04:02 PM
Are the computers at Y=255 or 254?
The config's height value is for 255, but computers cannot be placed at 255 as they are solid blocks. (Turtles probably can though)
42Scope42 #6
Posted 07 January 2013 - 04:36 PM
If you count the lowest layer of bedrock as block 1 then i think they would be at 255 but if you count it as 0 then i think they would be at 254,i tend to count the lowest layer as 1 but i dont know how CC counts it. It may be they are at 254 but as that is the max height for computers and turtles (i just checked, they can't go higher than computers) then perhaps that is what the config value should refer to. I believe only non-solid blocks like torches and signs etc can be placed one higher than the computers and other solid blocks can.
immibis #7
Posted 07 January 2013 - 05:23 PM
If you count the lowest layer of bedrock as block 1 then i think they would be at 255 but if you count it as 0 then i think they would be at 254,i tend to count the lowest layer as 1 but i dont know how CC counts it. It may be they are at 254 but as that is the max height for computers and turtles (i just checked, they can't go higher than computers) then perhaps that is what the config value should refer to. I believe only non-solid blocks like torches and signs etc can be placed one higher than the computers and other solid blocks can.
The lowest level of bedrock is always 0. There are no different ways to count it that aren't wrong.
You could just use F3. If you cut off the decimal parts, the first number after "y:" is the height of the block your feet are in, and the second number is the height of the block your eyes are in.
42Scope42 #8
Posted 07 January 2013 - 06:40 PM
Ah ok, they are at 254 then, and its impossible to put them at what the config takes for max altitude. It would be helpful if a change could be made so that the max altitude range refers to the max placeable altitude because as the devs are no doubt aware 384 is a round number of chunks and it would be nice to be able to take advantage of that.
immibis #9
Posted 07 January 2013 - 06:45 PM
Ah ok, they are at 254 then, and its impossible to put them at what the config takes for max altitude. It would be helpful if a change could be made so that the max altitude range refers to the max placeable altitude because as the devs are no doubt aware 384 is a round number of chunks and it would be nice to be able to take advantage of that.
Have you tried placing a turtle at 255?
42Scope42 #10
Posted 07 January 2013 - 07:18 PM
Yes i have but it seems they can't be placed higher than 254 the same as computers
Cloudy #11
Posted 07 January 2013 - 08:23 PM
The max altitude IS the place we measure from. How are you measuring this distance? Is there 384 air (or other) blocks inbetween? If so, that's the issue - it is done based on the centre of each block, not the ends.
42Scope42 #12
Posted 08 January 2013 - 12:52 AM
I have a gps host computer at 0 254 0 and computers between 381 254 0 and 384 254 0 that i run gps locate on. The ones at 381 and 382 receive the message from the host computer and output 381 metres from 0 254 0 and 382 meters from 0 254 0 respectively, the ones at 383 and 384 do not receive the message from the host computer.