ByMykel / CSGO-API

An unofficial JSON API for Counter-Strike 2 in multiples languages. List of skins, cases, stickers, collections, collectibles, agents, graffiti, keys, patches and music kits.
https://bymykel.github.io/CSGO-API/
MIT License
268 stars 33 forks source link

Skins descriptions #2

Closed say1j closed 2 years ago

say1j commented 2 years ago

skins.json descriptions not available, but available in csgo_english.txt and will be appreciated if you integrate language of descriptions choice

say1j commented 2 years ago

also there is no descriptions for vanila skins

ByMykel commented 2 years ago

@say1j

skins.json descriptions not available

I have already added it

language of descriptions choice

Do you mean like getting the data in other language like spanish, russian, etc?

vanila skins

Do you mean default weapons that don't any have skin?

say1j commented 2 years ago

yes and yes added some info as on screenshot there is for vanila item and for paintkit also added collection name added all languages support too image

ByMykel commented 2 years ago

Tomorrow I will add translated data for this languages/countries:

[
  "brazilian",
  "bulgarian",
  "czech",
  "danish",
  "dutch",
  "english",
  "finnish",
  "french",
  "german",
  "greek",
  "hungarian",
  "italian",
  "japanese",
  "korean",
  "norwegian",
  "pirate",
  "polish",
  "portuguese",
  "romanian",
  "russian",
  "schinese",
  "spanish",
  "swedish",
  "tchinese",
  "thai",
  "turkish",
  "ukrainian",
]
say1j commented 2 years ago

ty and there is conflict on translated_name on some languages add ?. to param set

say1j commented 2 years ago

like shown image

ByMykel commented 2 years ago

Yeah, I have changed that because it fails in other languages. I will use different way to filter items.

say1j commented 2 years ago

okay, got u

ByMykel commented 2 years ago

Did you find any other mistake or do you have any other suggestion?

say1j commented 2 years ago

will be perfect if by somehow add stattrak_available and array of possible market_names to skins to be able join descriptions by full item name for ex: obj['AK-47 | Redline (Field-Tested)'][lang].collection

say1j commented 2 years ago

so mb better to add array of possible exteriors and stattrak_available for it not full names if its hard for you i can resolve by myself, just some tips

ByMykel commented 2 years ago

for ex: obj['AK-47 | Redline (Field-Tested)'][lang].collection

About this you can fetch https://bymykel.github.io/CSGO-API/api/all.json and search for obj['skin-459880'].collection, if you want to search by name you would have to map that object as you desire.

will be perfect if by somehow add stattrak_available

I think almost all the skins in skins.json can have stattrak, do you have any example of skin that doesn't have stattrak?

and array of possible market_names to skins

I will add it.

say1j commented 2 years ago

awp dragon lore

say1j commented 2 years ago

P2000 | Amber Fade (Factory New) P2000 | Chainmail (Factory New) P250 | Bengal Tiger (Battle-Scarred) P250 | Bone Mask (Battle-Scarred) actually there is a lot

ByMykel commented 2 years ago

@say1j I have added more languages and stattrak attribute to the skins.

About the collection name I can find the collection for all the weapons but knives and gloves, so I will add this when I figured out how to get the collection name of all skins.

say1j commented 2 years ago

oh nice, is there is any way to parse this data from files for each type of weapon? because its can be updated any day and fill manully its a bad idea magazine capasity rate of fire movement speed with gun kill reward reload time and etc probably u saw it somewhere if u working with game files