Jump to content

How can I programmatically determine the current server release version?


Recommended Posts

Hi

I am setting up a DST server for the first time and am writing a control system for it.

I note that there is a version.txt file in the install root directory already. That's great.

I want to automatically keep my server up to date. To do that, I need to be able to programmatically determine the current remote release version. How can I do that?

For example, Valve has a WebAPI which makes determination of the current release version easy to get.

Here is the UpToDateCheck URL for Team Fortress 2:

https://api.steampowered.com/ISteamApps/UpToDateCheck/v1?appid=440&version=0&format=xml

 

All I have to do is parse the required_version field and I've got the current version.

Note that the the AppID of 440 there is the Client App ID rather than the Server App ID. That's just the way Valve does it for their Source games (TF2, L4D, CSGO, etc)

The Don't Starve Together Client App ID is 322330
The Don't Starve Together Server App ID is 343050
 

Unfortunately, Klei is not currently publishing this information via Steamworks, so I can't use the same method as above.

 

So, how do I do it?

 

If there isn't already something available, please consider this a formal request to add such a feature.

 

Also, It would be nice to be able to get this info without a Valve WebAPI key.

 

Link to comment
Share on other sites

Just to note this has been requested before:

http://forums.kleientertainment.com/topic/53661-auto-update-functionality-for-dedicated-servers/

 

And if the guys at Klei need to know about Valve's WebAPI, here are some links:

 

https://partner.steamgames.com/documentation/webapi

https://developer.valvesoftware.com/wiki/Steam_Web_API

 

And then see the SteamWorks docs for further info on enabling these interfaces.

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...