There is a way to get a list of cvars from the server using the query
interface. I don't remember how it works, and i'm at work so I cant get an
example now.
But if you get it working, you may notice that linux servers (I don't know
if windows ones do it now also) seem to have the packet contents bzip'd
before its sent down the tubes.

2009/3/11 Andrew Armstrong <[email protected]>

> Then probably not. Other than whats provided via the query response servers
> give back (player count, timelimit, etc). I also don't know off the top of
> my head how that list is populated.
>
> - Andrew
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Yaakov Smith
> Sent: Wednesday, 11 March 2009 5:04 PM
> To: 'Discussion of Half-Life Programming'
> Subject: Re: [hlcoders] Server CVars
>
> No, I want to get the value of the CVAR from an external application I'm
> writing.
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Andrew
> Armstrong
> Sent: Wednesday, 11 March 2009 5:00 PM
> To: 'Discussion of Half-Life Programming'
> Subject: Re: [hlcoders] Server CVars
>
> Yep, at least from a VSP environment, simply call:
>
> ConVar* hostName = cvar->FindVar("hostname");
> if (hostName) {
>        // Do stuff with this variable
>        std::string currentHostName = std::string(hostName->GetString());
> }
>
> You can also call GetInt() and a few others on the convar to interpret it
> differently; check the valve wiki.
>
> - Andrew
>
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Yaakov Smith
> Sent: Wednesday, 11 March 2009 1:29 PM
> To: 'Discussion of Half-Life Programming'
> Subject: [hlcoders] Server CVars
>
> Is there a way to get the value of server CVars, without using RCON?
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>


-- 
Sent from Olly's SEGA Game Gear
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to