Official Team Fortress 2 Wiki. Is anyone else's items_game.txt file missing after the newest update? I can't find it in the usual spot (tf/scripts/items).
- Yeah, it's because your items_game.txt file has been modified, moved or become outdated. The reason it crashes is to prevent people from running TF2 with a modified version of this file. It used to cause a lot of exploits when modified, so they decided to make the game crash when you try to change it.
- This subreddit is dedicated to Team Fortress 2 by Valve Corporation. Upload the contents of your items_game to pastebin. Hat remover from hat fortress 2. It is recently updated, since i just downloaded the newest version.
I'm not looking for details of a specific player inventory, but a list of all items for CSGO. What I want is details of the weapons in particular, but including skin name information and rarity.
To make it easier to explain this site has the information I need, except rarity.
By using the following api url I can get weapon model names but not skin names (ie. 'Zirka')http://api.steampowered.com/IEconItems_730/GetSchema/v0002/?key={YOUR_API_KEY}
Tf2 Items List
1 Answer
I haven't found anything regarding skins in Steam Web Api.
Lists of all skins as well as rarity and corresponding weapons are in 'paint_kits', 'paint_kits_rarity' and 'item_sets' sections of /csgo/scripts/items/items_game.txt file.
As for their correct names, those are in /csgo/resource/csgo_YOUR_LANGUAGE.txt. Looking like that
Won't be hard to make php or python script to get all of it and put it in a database for ease of use.
For skins images you could get weapon and skin name from the above, and do a foreach curl loop to get content from div with 'market_listing_largeimage' class using for example simple_html_dom.php, from url http://steamcommunity.com/market/listings/730/{ITEM_NAME}%20%7C%20{SKIN_NAME}%20%28{USAGE_THINGY Ex. Well-Worn}%29
Just remember to replace all spaces going to the url with %20 but that depends on what you use to get the page. You could do a foreach on the usage thingy since some weapons don't have some variants on the market, curl could return wrong page. Nothing that a simple if+foreach couldn't fix.
Also do it only after skins update if overused you could get blocked from valve website for spamming. You could also use SteamWebApi and game news to check for new versions and update it automatically then. Just use your imagination and google.