Jump to content
McKay Development

Recommended Posts

Posted

Hello,

 

recently i use "getReceivedItems" to get the new assetids from new items in my inventory and save them in my database. 

Withdraws of the same items to users are very easy in that way (have not to search them in my inventory by name, ...)

Most of the time when steam runs in good state i have no problems with that. But sometimes especially on the weekend some outgoing offers fail with state "InvalidItems" or error 26 on retry.

Some items (not every from that invaliditems trade) arent anymore with that assetid from my database in my inventory. It looks like they have changed the id. 

Do you know that problem? is there a way to find out the new assetids without searching them by name in my inventory?

 

My problem with searching by name is (for the repair of the ids), if there is much action on my bot it could happen that a search by name choose very new accepted items (before getReceivedItems write the assetids to my database -> using my database as blacklist which item ids are "free" in my inventory (to find for that missing ids the "new" id...

 
Posted

Sometimes a trade fails halfway through committing, so it rolls back the items that were already exchanged. That changes the asset ID for those items. There isn't any way to figure out what the IDs changed to without just comparing names and other identifying features.

Posted

Sometimes a trade fails halfway through committing, so it rolls back the items that were already exchanged. That changes the asset ID for those items. There isn't any way to figure out what the IDs changed to without just comparing names and other identifying features.

 

What do you think are the right informations called "other identifying features" ?

Because in my opinion there aren't any other things where i can compare them.

Posted (edited)

thx, do you have a good idea to find that changed ids by name (ofc the database as assetid blacklist) but also secondary prevent that it doesnt choose items from a new trade where the "getReceivedItems" not finished yet (so ids not in database)

Edited by speedy
Posted

Sometimes a trade fails halfway through committing, so it rolls back the items that were already exchanged. That changes the asset ID for those items. There isn't any way to figure out what the IDs changed to without just comparing names and other identifying features.

 

Does that happens when you're sending/accepting an offer or just sending?

Posted

It happens when an offer is being accepted.

 

That's unfortunate, That's why sometimes state is InvalidItems yeah? because those items' assetids changed so they no longer exist.

Posted

Right. The recipient starts accepting the offer, something breaks, and Steam rolls back the items that it already transferred. The offer stays as Active at this time, but since the rolled back items have new IDs, the next time you open the offer page, it's InvalidItems.

Posted

Right. The recipient starts accepting the offer, something breaks, and Steam rolls back the items that it already transferred. The offer stays as Active at this time, but since the rolled back items have new IDs, the next time you open the offer page, it's InvalidItems.

 

Alright thank you for your information and support. What about the Invalid State what does it mean?

  • 1 year later...

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.

Loading...
×
×
  • Create New...