View Single Post
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 05-21-2013 , 18:16   Re: ID for unusual particles [Updated 12/24/2012]
Reply With Quote #11

Quote:
Originally Posted by Powerlord View Post
You can also view the schema XML online (Note: That's the OpTF2 mirror of the schema, you have to use the IEconItems GetSchema API to get it directly).
I have been parsing items game to get slots for items.. Is it a hat,misc, primary, secondary, melee... But its a pita because it is constantly changed. It would probably be better to do something like cache a schema like this so i could get the index and slot, and then read from that.

Does anything like this already exist? If not i might go and write it. I am tired of dealing with items_game.

I can't get the api to return anything other than unauthorized, so i must be doing it wrong.

Edit: looks like I need a key, which can only be used once, or once every so often, how do i get them, so that I can generate the file?
http://api.steampowered.com/IEconIte...XXXXXXXXXXXXXX
Edit Edit: i'm dumb https://steamcommunity.com/login/hom...2Fdev%2Fapikey

okay i think i'm going to develop a plugin use the web api.

native to return a slot when given definition index
native to return if item is paintable when given definition index
native to return name of item

will probably use VDF and just cache the file every map start, if it fails, i'll use the old file, if success i'll update an item trie.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.

Last edited by friagram; 05-21-2013 at 19:31.
friagram is offline