-
Notifications
You must be signed in to change notification settings - Fork 5
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
"WebStorage" section of config.vdf causes a System.IndexOutOfRangeException #32
Comments
The error appears to be thrown because the Is this a naturally occuring VDF file (i.e. created by an unmodified steam client)? |
It is indeed an unmodified Steam client. The |
Thanks for clarifying. I'll push 0.6.2 this weekend with an option to adjust the maximum token size. |
I've pushed 0.6.2. Could you try your code again with this line replaced? VProperty volvo = VdfConvert.Deserialize(text, new VdfSerializerSettings() { MaximumTokenSize = 8192, UsesEscapeSequences = true }); |
With the update and replaced line, it seems to parse correctly, and I'm again able to retrieve values from the full config.vdf's In case it's relevant, the |
Appreciate the context! I'll go ahead and close this issue now - feel free to reopen if necessary. |
Looks like |
Attempting to deserialize Steam's "config.vdf" with Gameloop.Vdf when the config.vdf has a "WebStorage" section causes the mentioned exception. Maybe something to do with the egregious amount of backslashes?
Tested on Steam for Linux client built "Feb 22 2022, at 00:40:10".
A trimmed-down example config.vdf is provided:
testconfig.vdf.zip
My code:
Expected result:
Actual result:
The text was updated successfully, but these errors were encountered: