Jump to content


Photo
Question

What is `version` in `json_tradeoffer`

node.js node-steam-tradeoffer-manager

Best Answer Dr. McKay , 10 May 2018 - 11:27 AM

It means nothing. It's a remnant from real-time trades where every time the trade updates, that's a new "version".

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 MrPandeu

MrPandeu

    Member

  • Member
  • PipPip
  • 14 posts

Posted 10 May 2018 - 08:26 AM

Hello,
What is `version` in `json_tradeoffer` from form of tradeoffer? `node-steam-tradeoffer-manager` have set on 4 (https://github.com/D...deOffer.js#L297). I checked it while sending offers on steam. If I sent item for friend, `version` is equeal 2, but If I sent offer "item for item" and "nothing for their item", `version` is equeal 3.

 

Any ideas?


  • makcc666 likes this

#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 1,652 posts

Posted 10 May 2018 - 11:27 AM   Best Answer

It means nothing. It's a remnant from real-time trades where every time the trade updates, that's a new "version".



#3 makcc666

makcc666

    Newbie

  • Member
  • Pip
  • 6 posts

Posted 24 May 2018 - 02:37 PM

This is the script from the number of added \ deleted items (initial value 1).

 

Check original script: https://steamcommuni...er.js?l=english

UpdateTradeStatus: function()
	{
		g_rgCurrentTradeStatus.version++;
		RefreshTradeStatus( g_rgCurrentTradeStatus );
	},

Called within these two functions:: "RemoveItemFromTrade" and "SetAssetOrCurrencyInTrade".


Edited by makcc666, 24 May 2018 - 02:38 PM.






Also tagged with one or more of these keywords: Question, node.js, node-steam-tradeoffer-manager

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users