Jump to content
McKay Development

Recommended Posts

Posted

I'm trying to filter "backpack.tf" listings based on an inventory items, but I'm not sure how to get a "defindex" or any other way to map the item from CEconItem.

I know the Steam WebAPI provides a "IEconItems_440" method to get the player items with relevant information like a "defindex", is there any special reason why you are not using this?

Posted
  On 4/16/2024 at 4:25 AM, JAHMCR said:

I'm trying to filter "backpack.tf" listings based on an inventory items, but I'm not sure how to get a "defindex" or any other way to map the item from CEconItem.

I know the Steam WebAPI provides a "IEconItems_440" method to get the player items with relevant information like a "defindex", is there any special reason why you are not using this?

Expand  

You can't really reliably do it. There are some community endpoints that include app_data on the item description, which does contain def_index, but not all have that.

steam-tradeoffer-manager isn't using IEconItems_440 because that's a TF2-specific interface and steam-tradeoffer-manager is meant to work with any Steam app.

Posted
  On 4/16/2024 at 7:33 PM, Dr. McKay said:

You can't really reliably do it. There are some community endpoints that include app_data on the item description, which does contain def_index, but not all have that.

steam-tradeoffer-manager isn't using IEconItems_440 because that's a TF2-specific interface and steam-tradeoffer-manager is meant to work with any Steam app.

Expand  

Yeah, that makes sense. Will have to implement my own function to retrieve the inventory using "IEconItems_440". Thanks!

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.

×
×
  • Create New...