-
Notifications
You must be signed in to change notification settings - Fork 23
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
VDF parsing failure #21
Comments
This is probably fixed by #19 |
investigated and it doesn't look like that's the issue. It's failing on this block:
I think it has to do with attempting to merge the duplicate keys "asset_modifier". It looks like the "modifier" property within each one can be a string or an object, so I'm not sure how they're merged. |
I've worked around the issue for now by removing the failing blocks from the file. |
This should fix the exception and duplicates will now overwrite previous value. |
Attempting to parse this file:
https://raw.githubusercontent.com/SteamDatabase/GameTracking-Dota2/master/game/dota/pak01_dir/scripts/items/items_game.txt
Results in:
TypeError: Cannot read property 'default' of undefined
at Object.parse (/usr/src/node_modules/simple-vdf/index.js:67:41)
The text was updated successfully, but these errors were encountered: