Jump to content
McKay Development

Recommended Posts

Posted

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
}

 

Posted

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).

Posted

@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:

image.png.05909e2d9e571c8e91f23fe8935a2229.png

Feel free to use this API as needed: https://api.steammarketmaster.com/api/skindb

  • 2 weeks later...
Posted

@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 

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...