Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 11:53

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Gslist and Second byte in send request to master server
PostPosted: 04 Jan 2010 14:36 

Joined: 11 May 2009 20:06
Posts: 15
Any time for different GameSpyFilterQueryStr gslist generates special magic byte

"gslist.exe -o 4 -n battlefield2 -f GameSpyFilterQueryStr -X \hostname"

Send data (Second byte $78)
Code:
00000000  00 78 00 01 03 00 00 00  00 62 61 74 74 6C 65 66   .x...... .battlef
00000010  69 65 6C 64 32 00 67 73  6C 69 76 65 00 3A 37 69   ield2.gs live.:7i
00000020  2B 42 7D 4C 5F 6E 75 6D  70 6C 61 79 65 72 73 20   +B}L_num players 
00000030  3E 20 30 20 61 6E 64 20  67 61 6D 65 76 65 72 20   > 0 and  gamever 
00000040  3D 20 27 31 2E 35 2E 33  31 35 33 2D 38 30 32 2E   = '1.5.3 153-802.
00000050  30 27 20 61 6E 64 20 67  61 6D 65 76 61 72 69 61   0' and g amevaria
00000060  6E 74 20 3D 20 27 70 72  27 00 5C 68 6F 73 74 6E   nt = 'pr '.\hostn
00000070  61 6D 65 00 00 00 00 01                            ame.....



Can you point me to that function that are responsible for generation of this byte ?


Top
 Profile  
 
 
 Post subject: Re: Gslist and Second byte in send request to master server
PostPosted: 04 Jan 2010 14:43 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
it's a big endian 16bits number which specifies the size of the query included this number.
so 0x78 means 2 bytes of this number plus 0x76 bytes of query


Top
 Profile  
 
 Post subject: Re: Gslist and Second byte in send request to master server
PostPosted: 04 Jan 2010 21:57 

Joined: 11 May 2009 20:06
Posts: 15
Thanks again =)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: