Jump to content

Recommended Posts

  • Developer
On 5/17/2025 at 10:58 AM, Mr_Lisreal said:

TF2 has an in-game sort fucntion

Dota 2... You need to tinker with the console a little bit

Any idea how they accomplish it? I'm unaware of what (if anything) steam sorts inventories for third party games like ours on.

  • Like 1
  • Potato Cup 1
On 5/17/2025 at 12:58 PM, Mr_Lisreal said:

I mean, mine's a right mess, and it bothers me.

TF2 has an in-game sort fucntion

Dota 2... You need to tinker with the console a little bit.

Can it be done in DST?

tf2's backpack system is sort of made with the steam inventory in mind, so i dont have a lot of confidence that you would see something like that in most other games

  • Developer
35 minutes ago, Mr_Lisreal said:

I assumed, that when you added cosmetics into DST, I kinda thought you knew how

We can sort all sorts of ways on our end, but we're quite limited in how we can communicate the state of your inventory to Valve. See https://partner.steamgames.com/doc/features/inventory/economy/GetContextContents

  • Like 1
On 5/20/2025 at 1:57 PM, nome said:

Any idea how they accomplish it? 

It looks like TF2 does this through the TF2GameCoordinator, specifically EGCSendMessage with MsgType 1001 (SetSingleItemPosition), 1041 (SortItems), or 1100 (SetItemPositions).  I'd assume a similar situation for Deadlock, CSGO/2, and Dota2 with their respective GameCoordinators.  But, the Steamworks Documentation do mention that ISteamGameCoordinator is "largely depreciated", so not sure if non-Valve games can make use of it.

Potentially of interest, inventory item positions (stored in the last 16 bits) can also be retrieved through the Steam WebAPI via IEconItems_<AppID>/GetPlayerItems.  However, this endpoint is restricted to Valve owned AppIDs.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...