Closed barraponto closed 5 years ago
The extension says vdf
, but it is actually a custom format that has vdf sections for each app. Same for packageinfo.
Any hint on how to parse it then?
Seems like appinfo has a new format recently (january 2017). Parser for it would be highly appreciated.
I had a look around and the format is as follows:
uint32 - MAGIC: "'DV\x07"
uint32 - UNIVERSE: 1
---- repeated app sections ----
uint32 - AppID
uint32 - size
uint32 - infoState
uint32 - lastUpdated
uint64 - accessToken
20bytes - SHA1
uint32 - changeNumber
variable - binary_vdf
---- end of section ---------
uint32 - EOF: 0
uint32 - MAGIC: "'UV\x06"
uint32 - UNIVERSE: 1
---- repeated package sections ----
uint32 - PackageID
20bytes - SHA1
uint32 - changeNumber
variable - binary_vdf
---- end of section ---------
uint32 - EOF: 0xFFFFFFFF
Current beta client has updated the format:
uint32 - MAGIC: "'UV\x06"
uint32 - UNIVERSE: 1
---- repeated package sections ----
uint32 - PackageID
20bytes - SHA1
uint32 - changeNumber
uint64 - token
variable - binary_vdf
---- end of section ---------
uint32 - EOF: 0xFFFFFFFF
I wrote some C# code to fully parse these files if anyone is interested: https://github.com/SteamDatabase/SteamAppInfo
steam
package now implements methods for parsing these files in steam.utils.appcache
.
When I try to read binary files such as
appcache/appinfo.vdf
orappcache/packageinfo.vdf
, I always see the same error:I tried using
alt_format=True
but it just errors too :/