Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support beta client magic number convention #2

Open
aclist opened this issue Jan 23, 2023 · 1 comment
Open

Support beta client magic number convention #2

aclist opened this issue Jan 23, 2023 · 1 comment

Comments

@aclist
Copy link

aclist commented Jan 23, 2023

Thanks for this tool. It makes munging VDF data into a sane structure so much better.

As for the issue, dumping VDFs suddenly stopped working for me: it seems the magic number used by the VDF file fluctuates between two variants, 0x07564427 or 0x07564428.

Error: Custom { kind: InvalidInput, error: "Invalid magic number" }

Replacing line 6 in reader.rs with const MAGIC: u32 = 0x07564428; clears this, but I think the incoming format is slightly different in this case, so the parser fails at that point:

Error: Custom { kind: InvalidInput, error: "Couldn't parse VDF app section" }

You can see how SteamDB's tool conditionally switches between two parsing methods depending on which magic number is being used: https://github.com/SteamDatabase/SteamAppInfo/blob/master/SteamAppInfoParser/AppInfo.cs

Thanks in advance.

@aclist
Copy link
Author

aclist commented Jan 24, 2023

I did a bit more investigation and found that the 0x07564428 variant is tied to the beta client of Steam.

@aclist aclist changed the title Support alternate magic number convention Support beta client magic number convention Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant