haveaniceday Posted July 5 Report Share Posted July 5 Is there an easy way of getting the skin name from the returned item object? I am connected to csgo gc. Received a new item: { attribute: [ { def_index: 6, value: null, value_bytes: <Buffer 00 40 42 44> }, { def_index: 7, value: null, value_bytes: <Buffer 91 e6 b6 43> }, { def_index: 8, value: null, value_bytes: <Buffer bb 9a 5c 3d> } ], equipped_state: [], id: '31314802955', account_id: 1173725743, inventory: 3221225482, def_index: 36, quantity: 1, level: 1, quality: 4, flags: 0, origin: 24, custom_name: null, custom_desc: null, interior_item: null, in_use: false, style: null, original_id: null, rarity: 1, position: 0, paint_index: 777, paint_seed: 365, paint_wear: 0.053858499974012375 } Quote Link to comment Share on other sites More sharing options...
haveaniceday Posted July 5 Author Report Share Posted July 5 I found out that def_index corespondents to gun and paint_index to the skin, but is there any map or api call... to get the gun and the skin name from the def_index and paint_index? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 5 Report Share Posted July 5 I've never bothered trying to fully re-create item descriptions using GC data, mostly since there are so many edge cases that it becomes a massive headache. That said, items_game.txt in the game files contains all the data you need to do it (well, that and the localization files to get human-readable strings out of i18n tokens). haveaniceday 1 Quote Link to comment Share on other sites More sharing options...
haveaniceday Posted July 5 Author Report Share Posted July 5 where can I find the file? Don’t worry found it. Thanks for the answer Quote Link to comment Share on other sites More sharing options...
Caffxine Posted July 8 Report Share Posted July 8 @haveaniceday Were you able to generate item_names from the game files? I've attempted this but ive always just gotten a bunch of unreadable random text. Perhaps my api would be of use? its slightly dated and doesnt contain Paris 2023 or anubis collection skins yet, but this could easily be scraped from steam market or something. The JSON structure is formatted by the following: Feel free to use this API as needed: https://api.steammarketmaster.com/api/skindb Quote Link to comment Share on other sites More sharing options...
haveaniceday Posted July 19 Author Report Share Posted July 19 @Caffxine No, I didn’t use the file as it very confusing. I just made a web scrapper that scrapped csgostash as it has the paint_index . For the def_index I put them in manually from broskins If you need I can send you the whole list with all the skins Quote Link to comment Share on other sites More sharing options...
Caffxine Posted July 23 Report Share Posted July 23 @haveaniceday sorry, just seeing this now. afaik, csgostash doesnt have all the items such as stickers, music discs, or st and other varients. If you did manage to get these from csgostash, I would love to get the list Quote Link to comment Share on other sites More sharing options...
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.