sludgefudge
-
Posts
4 -
Joined
-
Last visited
Posts posted by sludgefudge
-
-
On 1/28/2022 at 4:57 PM, Dr. McKay said:
I should mention, if you want to be absolutely sure that a trade completed (and hasn't been rolled back), you should take the tradeID property from the trade offer and plug it into GetTradeStatus. The values for the status property are documented here in ETradeStatus.
Or just use getExchangeDetails.
Thanks for your insights
-
On 1/23/2022 at 9:14 AM, Dr. McKay said:
Steam is Steam and Steam sucks. It happens sometimes and you should probably either delay a little while before marking a trade as definitively closed, or otherwise allow for reopening trades in whatever system or database you're using if the offer should become Accepted.
What would be the best way to confirm a trade has 100% completed if there is no margin for error?
-
manager.on("sentOfferChanged", (offer, oldstate) => { let oldState = TradeOfferManager.ETradeOfferState[oldstate]; let currentState = TradeOfferManager.ETradeOfferState[offer.state]; //console.log(offer.partner.getSteamID64()); console.log( green, `Sent offer state changed from ${oldState} to ${currentState}` )};
Output:
Sent offer state changed from CreatedNeedsConfirmation to InvalidItems
Sent offer state changed from CreatedNeedsConfirmation to InvalidItems
Sent offer state changed from CreatedNeedsConfirmation to AcceptedSo basically, I sent 2 trades from my BOT Account to 2 different accounts. The problem is both the trades changed their current State to InvalidItems when one of the offers was accepted and then later on that trade was confirmed. Why did both the trades emit InvalidItems? I am not able to replicate this issue again. Is this common? and is there any way to avoid this? Thanks
Issue with sent offer changed
in node-steam-tradeoffer-manager
Posted · Edited by sludgefudge
Sorry for this huge code with only small parts of your modules. But if you can confirm if the way in which I've handled this trade can there be a chance for error? Thank you for your help