-
Notifications
You must be signed in to change notification settings - Fork 11
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
Write a steamcmd script to return icon hash #169
Comments
Got to be careful if we do grepping rather than json parsing because ↑ |
if you do get steamcmd to behave, you want something like
Which reads as run steamcmd, return 100 lines before extended (one match), return everything after common, return icon line, return only the second value of the icon line, remove start and end quote, and store in icon variable. EDIT: remove the need for head |
Might need some magic here :< doing it twice because first just says it is fetching and bombs out… and that just returns poop data
|
|
Look into appids 362300 + 294420 to make the parsing more robust |
We may be able to use |
If we went with awk, https://gist.github.com/johndrinkwater/869fdb879aeafcb8e1eb
|
Why not leave the data as JSON and parse back to PHP using json_decode within the PHP itself? This would be safer than using grep or awk. |
It’s not JSON. |
That VDF doesn't look too difficult to parse… |
It would be nice to, on demand, fetch Steam app icons. This data is not query‐able from the WebAPI, but it is however fetchable via
steamcmd
withapp_info_print %appid
which returns ‘kindof json’ like:
Which we can use to build an icon url: http://cdn.akamai.steamstatic.com/steamcommunity/public/images/apps/%appid%/%icon%.jpg
Leaving this open as a task for someone else!
The text was updated successfully, but these errors were encountered: