❈ ServerList Packet
I was able to figure out majority of the bytes for the ansServerList packet. I was able to have two servers, one server with one channel, and the second server with two channels. Please review the packet structure below the protocols listed below.
The protocols for ServerList follow as:
byte S2C_ansSrvList_Srv = 0x11;
byte S2C_ansSrvList_Chn = 0x12;
Use this information below to create a dynamic server list packet on the auth/agent server. Couldn't tell if your server has this setup or not.
Code:
/*
SERVERS ONLY:
Size (2 bytes)
Category (1 byte - 0x33)
Protocol (1 byte - 0x11)
# of Servers (1 byte)
Server Name (32 bytes)
Unknown (1 byte)
Server # (1 byte)
Unknown (1 byte)
Unknown (1 byte) - filler/separator (0x00)
Server Name (32 bytes)
Unknown (1 byte)
Server # (1 byte)
Unknown (1 byte)
*/
/*
CHANNELS ONLY:
Size (2 bytes)
Category (1 byte - 0x33)
Protocol (1 byte - 0x12)
# of Channels (1 byte)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
Unknown (1 byte) - filler/separator (0x00)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
Unknown (1 byte) - filler/separator (0x00)
Channel Name (33 bytes)
Server # (1 byte)
Channel # (1 byte)
Unknown (1 byte) - terminator byte (cannot be 0x00)
*/