Server query

This is for general discussion about Hidden & Dangerous 2, talk about what you liked or what you didn't like about the sequel. Talk about multiplayer games, setup matches etc.
Stern
Sergeant
Posts: 53
Joined: Sun Nov 09, 2014 11:44 am

Server query

Unread post by Stern » Mon Mar 13, 2017 3:30 pm

Does anyone here knows what form of data this "query" request should be to be read correctly by server ?

http://int64.org/docs/gamestat-protocols/gamespy2.html
This is the request of info that has map name, rules, players and all that.

Stern
Sergeant
Posts: 53
Joined: Sun Nov 09, 2014 11:44 am

Re: Server query

Unread post by Stern » Thu Mar 16, 2017 11:52 am

Little update here:
I managed to figure out in what form it must be sent.

Obj.Pascal code:

Code: Select all

Sdata: array [0..9] of byte = ($FE,$FD,$00,$43,$4F,$52,$59,$FF,$FF,$FF);
...
UdpSocket1.SendBuf(Sdata,sizeof(Sdata));
This gets return data size about 250 (if server is empty).

Stern
Sergeant
Posts: 53
Joined: Sun Nov 09, 2014 11:44 am

Re: Server query

Unread post by Stern » Wed Mar 29, 2017 10:07 am

Here is a main part of the request code in Pascal.

https://1drv.ms/t/s!Aj4b71jV4JhLgnctBazR2FIySqks

Stern
Sergeant
Posts: 53
Joined: Sun Nov 09, 2014 11:44 am

Re: Server query

Unread post by Stern » Wed Mar 29, 2017 2:21 pm

Here is this program, for what i needed this queryng info.
Read readme to know how to use it !

https://1drv.ms/u/s!Aj4b71jV4JhLgnj5ZZKd7_SnpDCw

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 6 guests