-
Greetings, I'm trying to get the float cap of every skin that is currently in CS2. I am trying to retrieve that data and store it to a JSON file, preferably only when I need it. Is there any way of doing that currently? Any ideas on how to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi. Actually I am already doing that here skins_not_grouped.json check If you want to do it by yourself you have to take the items_game.txt and parse it to json like I am doing on my repo. Then go throught all that data and map your own JSON like you want (check these files to know how I do for my API). The easiest path to archive your goal is to take [
{
"name": "Desert Eagle | Urban DDPAT (Factory New)",
"min_float": 0.06,
"max_float": 0.8,
},
{
"name": "Desert Eagle | Urban DDPAT (Minimal Wear)",
"min_float": 0.06,
"max_float": 0.8,
},
{
"name": "Desert Eagle | Urban DDPAT (Field-Tested)",
"min_float": 0.06,
"max_float": 0.8,
},
] Also I have skins.json that is the same as Let me know if you have more questions. EDIT: You also already have in {
wears": [
{
"id": "SFUI_InvTooltip_Wear_Amount_0",
"name": "Factory New"
},
{
"id": "SFUI_InvTooltip_Wear_Amount_1",
"name": "Minimal Wear"
},
{
"id": "SFUI_InvTooltip_Wear_Amount_2",
"name": "Field-Tested"
},
{
"id": "SFUI_InvTooltip_Wear_Amount_3",
"name": "Well-Worn"
},
{
"id": "SFUI_InvTooltip_Wear_Amount_4",
"name": "Battle-Scarred"
}
],
} |
Beta Was this translation helpful? Give feedback.
Hi. Actually I am already doing that here skins_not_grouped.json check
min_float
andmax_float
.If you want to do it by yourself you have to take the items_game.txt and parse it to json like I am doing on my repo.
Then go throught all that data and map your own JSON like you want (check these files to know how I do for my API).
The easiest path to archive your goal is to take
skins_not_grouped.json
and map it removing everything but the attributes you need to get something like: