-
Posts
14 -
Joined
-
Last visited
Everything posted by Mole
-
That's what I thought as well, was just hoping that it's been done already. The point of this project is to allow to invite users using TS3, by right clicking them and selecting "invite to game" as you usually do - game info might be taken from running game session from client, the problem is how to send the invite itself. Maybe a hint where to look for something like that before researching Steam on my own?
-
Hey, I'd love to post with what I've found so far, but... Couldn't find anything useful - I need to do this: (Send a game invite) Protobuf, any tips?
-
getReceivedItems return receivedItems 0
Mole replied to xNiceEinz's topic in node-steam-tradeoffer-manager
Partially answered your question in GitHub issue (DoctorMcKay/node-steam-tradeoffer-manager#146). `getReceivedItems` method doesn't really fail often. It's mostly likely something with your code that's causing it. What I'd say - there's no received item in these trades at all. If you want to check what items are meant to be sent before accepting the trade - check itemsToGive property of the offer, if the array length is 0 - you're safe to accept the offer, as it shouldn't take any items from your inventory. @EDIT -
sessionExpired in current version (basically since 3.19.5) can only return err.message = 'Not Logged In!'. It could be fired on any error before this commit. Upgrading the module should solve the problem. Also (as always):
-
What;s the message you see in the terminal window?
-
Couldn't get received items: Error: HTTP error 503
Mole replied to Gilroy's topic in node-steam-tradeoffer-manager
var config = { maxRetries: 5 }; function getItems(offer, retries, callback) { if (typeof retries === 'function') { callback = retries; retries = 0; } if (retries >= config.maxRetries) return callback(new Error('Max retries reached!')); offer.getReceivedItems(function(err, items) { if (err) return getItems(offer, retries + 1, callback); return callback(null, items); }); } Better? It was just a simple example, not a serious code... -
getting the steam id from offer.partner
Mole replied to spock's topic in node-steam-tradeoffer-manager
Come on, do some research on your own https://github.com/DoctorMcKay/node-steamid#getsteamid64 offer.partner.getSteamID64(); -
Couldn't get received items: Error: HTTP error 503
Mole replied to Gilroy's topic in node-steam-tradeoffer-manager
Just add it to the queue again / retry. function getItems(offer, callback) { offer.getReceivedItems(function(err) { if (err) return getItems(offer, callback); }); } -
`webSession` being fired without calling `webLogOn()`
Mole replied to Mole's topic in node-steam-user
Oh yeah, stupid me, it was fired exactly the moment maintenance ended... Thanks for your answer! -
Hey, out of curiosity - my test app crashed a moment ago because of async callback being called twice after steam-user fired `webSession` without calling `webLogOn()`. Any idea why could that happen? When steam-user is requesting new web session on its own, or if/when Steam does that automatically? The account wasn't used in any other way than this application, which was kinda experimental and left alone for ~3 days before that happen. Of course it was bad coded, but I didn't expect `webSession` event being fired more than once. Steam-user version: 3.3.4
-
Awesome
-
I have nothing against the feature itself, just can't think of any valid use case. Storing trade URL in any kind of database is pointless. Of course - getting it directly from the user every trade is fine, but it's rather unusual, and in most cases script owners would convert the URL to get the id anyway (eg. for logging). Also, covering this potential security issue is (imo) what the script owner should do, not the module itself.