Arg, the response format is slightly different for HL1 (it matches the
old "info" response). Here is some sample code we use for parsing the
response:
// read in IP address
msg->ReadString();
v_strncpy(hostname, msg->ReadString(),
sizeof(hostname));
v_strncpy(map, msg->ReadString(), sizeof(map));
v_strncpy(gamedir, msg->ReadString(), sizeof(gamedir));
strlwr(gamedir);
v_strncpy(desc, msg->ReadString(), sizeof(desc));
players = msg->ReadByte();
maxplayers = msg->ReadByte();
msg->ReadByte(); // protocol version
msg->ReadByte(); // dedicated
msg->ReadByte(); // OS
password = msg->ReadByte();
// mod info
bool isMod = msg->ReadByte();
if (isMod)
{
msg->ReadString(); // mod URL
msg->ReadString(); // mod DL
msg->ReadString(); // empty string
msg->ReadLong(); // mod version
msg->ReadLong(); // mod size
msg->ReadByte(); // svonly
msg->ReadByte(); // cldll
}
secure = msg->ReadByte(); // secure server
// number of bots on server
bots = msg->ReadByte();
version = msg->ReadLong();
- Alfred
----Original Message----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steven
Hartland Sent: Tuesday, June 07, 2005 6:28 PM To:
[email protected] Subject: Re: [hlds_apps] RE:
[hlds_linux] HL1 Engine update
> /qstat -d -errors -a2s 203.26.94.184:27015
> ADDRESS PLAYERS MAP RESPONSE TIME NAME
> FROM 203.26.94.184:27015
> Seem to be getting odd results back here:
> 0: ffffffff 6d323033 2e32362e 39342e31 ....m203 .26.94.1
> 16: 38343a32 37303135 00496e74 65726e6f 84:27015 .Interno
> 32: 64652044 6f442023 30322028 2d46462c de DoD # 02 (-FF,
> 48: 436c6173 73696320 4d617073 2900646f Classic Maps).do
> 64: 645f736e 6f77746f 776e5f63 6c617373 d_snowto wn_class
> 80: 69630064 6f640044 6179206f 66204465 ic.dod.D ay of De
> 96: 66656174 00151c2f 64770001 68747470 feat.../ dw..http
> 112: 3a2f2f77 77772e64 61796f66 64656665 ://www.d ayofdefe
> 128: 61742e6e 65740000 00010000 00050000 at.net.. ........
> 144: 00000101 00 .....
>
> i.e instead of the version byte there seems to be an ip:port I may be
> going mad as its 02:27 here atm but something seems a miss to me.
>
> Steve / K
>
> ----- Original Message -----
> From: "Alfred Reynolds" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Wednesday, June 08, 2005 1:38 AM
> Subject: RE: [hlds_apps] RE: [hlds_linux] HL1 Engine update
>
>
> The server queries page:
> http://www.valve-erc.com/srcsdk/Code/Networking/serverqueries.html
>
> Has been updated with the small protocol change for the new HL1 query
> protocol (returning 0x6D rather than 0x49 from an A2S_INFO query, so
> you
> can tell Source from HL1 games).
>
> - Alfred
>
> ----Original Message----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Alfred
> Reynolds Sent: Tuesday, June 07, 2005 5:24 PM To:
> [email protected]; [email protected]
> Subject: [hlds_apps] RE: [hlds_linux] HL1 Engine update
>
> > "qstat" is going to need a tiny code fix to work with the new query
> > protocol. The game server returns control code 0x6D ('m') in
> > response to A2S_INFO, which is different to Source server (which
> > return 0x49, 'I'). Any qstat devs on the list?
> >
> > - Alfred
> >
> > ----Original Message----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Alfred
> > Reynolds Sent: Tuesday, June 07, 2005 4:13 PM To:
> > [email protected]; [email protected];
> > [EMAIL PROTECTED] Subject: RE: [hlds_linux] HL1
> > Engine update
> >
> > > Couple of points of interest to server operators in this release.
> > >
> > > 1) The new querying subsystem has been implemented in HL1 now, the
> > > old (vulnerable) protocol will be disabled in a future update (in
> > > the next month or so). MAKE SURE TO UPDATE YOUR EXTERNAL TOOLS
> > > NOW. This process has already happened for the Source engine so
> > > hopefully your tools already work with the new query format.
> > >
> > > 2) Under Linux you now need at least GLIBC 2.3.2 (i.e what the
> > > Source engine requires) to run the new VAC code. If your
> > > distribution is too old you will see something like this in the
> > > console:
> > >
> > > ---------------------------------------------
> > > Error:./vstdlib_s_i486.so: undefined symbol: __cxa_atexit Could
> > > not establish connection to Steam servers (steamclient).
> > > ---------------------------------------------
> > >
> > > You should upgrade your Linux distribution in this case. If you do
> > > not upgrade you will not be able to run a secure server once the
> > > new VAC system is released.
> > >
> > > - Alfred
> > >
> > >
> > >
> > >
> > >
> > > ----Original Message----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of
> > > Alfred Reynolds Sent: Tuesday, June 07, 2005 4:09 PM To:
> > > [email protected]; [email protected];
> > > [EMAIL PROTECTED] Subject: [hlds_linux] HL1
> > > Engine update
> > >
> > > > We have released an update to the HL1 engine, this update is for
> > > > any mod running under this engine. Run the hldsupdatetool to
> > > > get the update.
> > > >
> > > > This update fixes several potential crash exploits, adds the
> > > > Source style querying system to the engine and introduces some
> > > > code to allow us to enable the upcoming VAC system on HL1. More
> > > > details can be found here:
> > > > http://www.steampowered.com/index.php?area=news&id=422
> > > >
> > > > - Alfred
> > > >
> > > > _______________________________________________
> > > > To unsubscribe, edit your list preferences, or view the list
> > > > archives, please visit:
> > > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> > >
> > > _______________________________________________
> > > To unsubscribe, edit your list preferences, or view the list
> > > archives, please visit:
> > > http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> >
> > _______________________________________________
> > hlds_apps mailing list
> > [email protected]
> > http://list.valvesoftware.com/mailman/listinfo/hlds_apps
>
> _______________________________________________
> hlds_apps mailing list
> [email protected]
> http://list.valvesoftware.com/mailman/listinfo/hlds_apps
>
>
>
>
> ================================================
> This e.mail is private and confidential between Multiplay (UK) Ltd.
> and the person or entity to whom it is addressed. In the event of
> misdirection, the recipient is prohibited from using, copying,
> printing or otherwise disseminating it or any information contained
> in it.
>
> In the event of misdirection, illegible or incomplete transmission
> please telephone (023) 8024 3137
> or return the E.mail to [EMAIL PROTECTED]
>
>
> _______________________________________________
> hlds_apps mailing list
> [email protected]
> http://list.valvesoftware.com/mailman/listinfo/hlds_apps
_______________________________________________
hlds_apps mailing list
[email protected]
http://list.valvesoftware.com/mailman/listinfo/hlds_apps