-
Posts
3594 -
Joined
-
Last visited
Posts posted by Dr. McKay
-
-
Please, just read the documentation.
-
if (offer.itemsToGive.length == 0 && offer.itemsToReceive.length > 0) { offer.accept(); }
Use that inside of the
newOffer
event.If you don't know how to do that, check out the examples in the GitHub repo.
-
Call it by its proper name, "wear value" please.
You can't get it from the steamcommunity site, you have to get it from the WebAPI, which is very unreliable.
-
-
It's emitted when a new offer is received. Please read the wiki.
-
if (offer.itemsToGive.length > 0) { // There are more than 0 items in itemsToGive, so the user requested some items offer.decline(); }
-
The profile will only show the first game, but the "recently played" section will show all of them.
-
You can parse a JSON file in Node using just
require('./file.json')
It's up to you what you put in it and how you handle it.
-
sentOfferChanged will be emitted when the offer is accepted or declined.
-
That's not an offer state, it's an EResult.
-
sentOfferChanged is emitted when an offer you sent changes. receivedOfferChanged is emitted when an offer you received changes.
-
What's wrong with the multitude of other threads you have asking this question?
-
Use JSON is my recommendation.
-
You're not returning in your if (err) block, so it'll continue as if nothing was wrong if there was a logon error.
-
-
Show your code. If your code is right, then your secret or your clock is wrong, or you're trying to reuse a code.
-
market_hash_name is typically the English version of market_name, but not always (e.g. Steam trading cards, backgrounds, and emoticons have their market_hash_names prefixed with the appid of the owning app). Also note that unmarketable items aren't guaranteed to have a market_hash_name or market_name (they always will for Valve games, at the present moment). Outside of those exceptions, market_hash_name is a good candidate for identifying an item.
The item's assetid is just how you refer to the item when you're trading and such. It's unique for every single item in the game, and it changes when you trade it.
-
Your session probably expired. Listen for the sessionExpired event and login again when it's emitted.
-
-
Grab the tradeID property from that offer, then log into Steam as the account which is receiving those items and go to
https://steamcommunity.com/trade/tradeid/receipt
where tradeid is the tradeID number.Does it list all the items?
-
Your time or your secret is wrong.
-
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.
-
-
There are a few guides for extracting the details from your phone using a backup. Google around for one, I don't know where to find one off-hand.
Missing actions on offer.getReceivedItems
in node-steam-tradeoffer-manager
Posted
https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#getreceiveditemsgetactions-callback