ValvePython / vdf

📜 Package for working with Valve's text and binary KeyValue format
https://pypi.org/project/vdf/
MIT License
165 stars 30 forks source link

Add deserialization support for new binary VDF w/ key table #61

Open Matoking opened 1 week ago

Matoking commented 1 week ago

The new Steam beta introduced a new appinfo.vdf version. This appinfo.vdf V29 introduces a new binary VDF format which does not include field keys in binary VDF segments as-is. Instead, each key is represented by a 32-bit integer which needs to be mapped to an actual string using a table stored at the end of the appinfo.vdf file.

This also means the binary VDF segments in this case are no longer self-contained. The developer can parse and provide the table themselves or instead use the ValvePython/steam library which contains a function to parse appinfo.vdf files.

Also see SteamDatabase/SteamAppInfo@56b1fec7f5ce6be961c3e44cf9baf117e363ad91

Refs ValvePython/steam#462