but I've tested 0xA8 packet today and it seems that server IP address is sent in normal order, not in reversed order like guide says...12-27 MuadDib
Fixed : Server IP is now sent in correct order in the 0xA8 packet.
I've wrote a packet hook to reverse the 4 numbers, and now server dialog correctly shows latency and packet loss...
I mean: the old fix has no effect?
This is my hook:
Code: Select all
exported function sendinfo( who, byref packet )
const HEADER_BYTE := 6;
const SERVER_SIZE := 40;
var num := packet.GetInt16(HEADER_BYTE-2);
var base;
for i := 1 to num;
base := HEADER_BYTE+(i-1)*SERVER_SIZE;
packet.SetInt8(base+35, 1); // Timezone
var ip1 := packet.GetInt8(base+36);
var ip2 := packet.GetInt8(base+37);
var ip3 := packet.GetInt8(base+38);
var ip4 := packet.GetInt8(base+39);
packet.SetInt8(base+36, ip4);
packet.SetInt8(base+37, ip3);
packet.SetInt8(base+38, ip2);
packet.SetInt8(base+39, ip1);
endfor
endfunction