How we do it:

Make a Steam API call with AppID and the version you currently have (0 if
you've never checked.) (TF2 for example:
http://api.steampowered.com/ISteamApps/UpToDateCheck/v0001?appid=440&version=0&format=json
)

Grab $request->response->required_version for whatever the AppID is that
you want to check.

If it's a game we haven't checked before, we store the AppID and required
version.

If we have a current version already on record, we check if
$request->response->up_to_date == FALSE.

If it's not up to date, we update and store the new required version for
future update checks.




On Mon, Mar 11, 2013 at 12:31 PM, Adrian x <[email protected]> wrote:

> I do not mean to download the build number downloaded version, just
> download the version that is available for download from the Steam servers
> to be able to check whether there is newer than the one we have on the disk
> without downloading.
>
>
> 2013/3/11 Fletcher Dunn <[email protected]>
>
>> The engine gets that info from steam.inf.
>>
>> -----Original Message-----
>> From: [email protected] [mailto:
>> [email protected]] On Behalf Of Sebastian Staudt
>> Sent: Monday, March 11, 2013 2:39 AM
>> To: Half-Life dedicated Win32 server mailing list
>> Cc: Half-Life dedicated Linux server mailing list
>> Subject: Re: [hlds_linux] [hlds] Get compile the build number of game
>> servers in PHP
>>
>> Maybe parsing the version information from the `status` output via RCON
>> is more reliable.
>>
>>
>> 2013/3/11 Jesse Molina <[email protected]>
>>
>> >
>> > On this subject, is there any way to determine the local version of
>> > the installed srcds server?  I find the steam.inf files are unreliable
>> > and only
>> > TF2 has the current client/server version in it that I could compare
>> > against the WebAPI.
>> >
>> > Is there a better way of determining when srcds servers should be
>> > updated other than the WebAPI?  I looked into Steam Condenser this
>> > weekend but really didn't see anything interesting.
>> >
>> > Advice from anyone who has already automated this this would be
>> > appreciated.
>> >
>> >
>> >
>> >
>> > Adrian x wrote:
>> >
>> >> Unfortunately, that stops me is the fact I have no way of checking
>> >> whether a new update came out and download the exact number. Although
>> >> api provides "ISteamApps / UpToDateCheck" which is the ability to
>> >> check the current version of the game engine required, but will not
>> >> let me in any way to check whether it was updated game engine.
>> >>
>> >>
>> > --
>> > # Jesse Molina
>> > # Mail = [email protected]
>> > # Cell = 1-602-323-7608
>> >
>> >
>> >
>> > ______________________________**_________________
>> > To unsubscribe, edit your list preferences, or view the list archives,
>> > please visit:
>> > https://list.valvesoftware.**com/cgi-bin/mailman/listinfo/**hlds<https
>> > ://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds>
>> >
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds_linux
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives,
>> please visit:
>> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds
>>
>
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds
>
>
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
https://list.valvesoftware.com/cgi-bin/mailman/listinfo/hlds

Reply via email to