Sirex Posted December 13, 2016 Report Posted December 13, 2016 Can I get sticker name by value or float_value { "defindex": 113, "value": 1063, "float_value": 1.4895802675772805e-042 } in GetPlayerItems? I found this: "1063" { "name" "columbus2016_team_fntc" "item_name" "#StickerKit_columbus2016_team_fntc" "description_string" "#StickerKit_desc_columbus2016_team_fntc" "sticker_material" "columbus2016/fntc" "item_rarity" "rare" "tournament_event_id" "9" "tournament_team_id" "6" } But in this API has no name and no image of the sticker Quote
Dr. McKay Posted December 13, 2016 Report Posted December 13, 2016 Attribute 113's value contains the ID of the sticker, which in your case is 1063. You got that much right. The name of that sticker is given by item_name, which is a translation token. You can look that up in resource/csgo_english.txt from the game download. Quote
Sirex Posted December 13, 2016 Author Report Posted December 13, 2016 (edited) Thanks! This file should be updated manually when you add new things? Can we automate this process?And what is "float_value": 1.4895802675772805e-042? Edited December 13, 2016 by Sirex Quote
Dr. McKay Posted December 13, 2016 Report Posted December 13, 2016 I'm sure you can automate updates. Find some way to get the latest version of csgo_english.txt and parse it with one of the many VDF parsers. Ignore float_value in this instance. It's meaningless. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.