Jump to content
McKay Development

Search the Community

Showing results for tags 'node-steam-tradeoffer-manager'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News & Announcements
    • Releases & Updates
  • Help & Support
    • General
    • Guides
    • node-steam-user
    • node-steamcommunity
    • node-steam-tradeoffer-manager
    • node-steam-session

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Skype


Location


Interests

  1. Hi there. I own few bots and I don't know how to make script, which bot should send trade offer to receive items from user. It can be made from steam bot or should I store data with items on the each bot in database? Or there is maybe some error code when bot can't receive items so I will check the next bot?
  2. After around 50 hours of my server starting I get 'Error: Not Logged In' when trying to send trade offers, I would assume this is because Steam has let my cookies expire (or just killed them because they hate me). Is there a way to detect when the session is no longer valid so I can create a new one? or is it better to refresh them on a timer every hour or so? (I am using node-steamcommunity) Thanks in advance.
  3. I'm using getReceivedItems method, but sometimes it keeps returning error. What should I do if bot accepts the offer and I need to know what items bot received but getReceivedItems return error?
  4. Got this little gem today from TradeOffer#getReceivedItems { "id": "5688498100", "owner": "...", "classid": "1618444825", "instanceid": "188530170", "name": "", "pos": 1, "appid": 730, "contextid": "2", "amount": 1, "is_stackable": false, "assetid": "5688498100", "fraudwarnings": [ ], "descriptions": [ ], "owner_descriptions": [ ], "actions": [ ], "owner_actions": [ ], "tags": [ ], "tradable": false, "marketable": false, "commodity": false, "market_tradable_restriction": 0, "market_marketable_restriction": 0 }Has anyone seen this before? How can we identify that the item is malformed? I'm just going to check for a missing market_hash_name since that's all I need, hopefully there is a way to know for sure.
  5. Hello, As you might know, steam has a limit on their API (100,000 calls per day is possible). I tried getting player's inventory just by using a simple xml request to this url: steamcommunity.com/profiles/[iD]/inventory/json/[APP]/2 I set an interval for the requests, and my script crashed after 30 requests (I think) so there must be a maximum requests per minute. However, if players in my website try to access inventory, and I have a lot of players = not good. So my question is, is there a limit of requests using loadInventory (loading bot's inventory) and loadPartnerInventory (loading player's inventory)? Thanks
  6. How low can I put the value on confirmationChecker before Steam starts to limit the requests?
  7. Hi, I recently got this error while restarting my bot: [Error: Access Denied]and before this I had Invalid Password for the steam ip timeout, this has now gone away except this error. There is not a problem with my code as this appeared after restarting a working bot. I expect that this is probably just steams restrictions of logins but I just need reassurance. Regards
  8. Hello! Basically if my bot runs into a getEscrowDuration error it doesn't poll the same offer again unless I restart the bot, not even a manager.doPoll can fix the issue. I know the getEscrowDuration error is on Steam's fault but the manager completely ignores the offer even though it's active once it runs into that error. Here's my code: offer.getEscrowDuration(function(err, daysTheirEscrow, daysMyEscrow) { if(err) { console.log(err); client.webLogOn(); return; } I've only put the client.weblogOn there recently to make sure the bot has the right cookies when it fails to get the escrow duration, but then it doesn't go through the same offer until I restart it. Any help is appreciated! ~ Gergő
  9. Hello, sometimes when my sent offer is accepted, I am calling getReceivedItems method and array in "items" argument is empty. This offer is accepted and items are on bot. Why this is happening sometimes? I think that there is only way to fix this is create recalling of this method if array is empty with something like ~5 iterations.
  10. Hi, how i can get the Partner Steamname? i already get the steamid with this var steamid = offer.partner.getSteamID64(); but i need the steamname of the user :x
  11. Hello, I have a system that sends a tradeoffer to a person and then you have to confirm it via website. When confirming, the bot executes following code: offers.getOffer(m.tradeid,function(err,offer){ if(err) return logger.info("Confirmation error: "+err); switch(offer.state) { case 2: notify(m.client,'Your offer is still pending.'); break; case 1: removeOffer(m.client,m.tradeid,"Invalid trade offer, declining..."); break; case 3: break;//accepted case 4:{ offer.decline(function(err){ //this is wrong, the offer ID is no longer valid if(err) logger.info("There was an error declining bad trade offer: "+err); removeOffer(m.client,m.tradeid,"Do not modify the trades sent by our bots. Trade offer cancelled."); }); break; } case 6: removeOffer(m.client,m.tradeid,"Trade offer cancelled by the bot."); break; case 7: removeOffer(m.client,m.tradeid,"Trade offer cancelled."); break; case 8: removeOffer(m.client,m.tradeid,"Items no longer available."); } });If the offer.state equals 4 (Countered), I should decline the counter-offer, but the ID is no longer valid. How can I get the new ID of a counter-offer?
  12. I rewrote a project of mine and I'm getting "HTTP error 400" when I send a trade. Is there a way for me to see what the URL being requested looks like? My steamID object, token, and items all look fine. https://gyazo.com/c6810441e92be15f49eb43f22ad73e1a Do you know of any silly errors I could be doing? Thanks in advance ,BuSheeZy
  13. Hi, i have question about data method. If i apply data before accepting offer and if this offer was escrowed, data will be available after 15 days in receivedOfferChanged? I want to save prices and some informations before accept and read it in receivedOfferChanged.
  14. Hello, My bot sometimes gets stuck at "Awaiting mobile confirmation", which is annoying for the customers who want to receive their items. I'm using the example code of steam-tradeoffer-manager on Github. Is there anything to do against this? Kind regards
  15. When a trade is declined it spams trade state code like 2-6 times. Makes DB work shitty. Lol manager.on('sentOfferChanged', function(offer, oldstate){ if(offer.state == TradeOfferManager.ETradeOfferState.Countered){ offer.cancel(function(err){ if(err){ console.log('Unable to cancel offer:' + err.message); } else { db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Cancelled' WHERE `sTradeId` = '"+ offer.id +"'"); console.log('TradeID: '+offer.id+' has been cancelled due to countered!'); io.sockets.in(socket.room).emit('notifyUser', {'msg': 'Trade has been cancelled due to user sending counter offer!', 'status': 'Countered'}); socket.leave(socket.room); } }); } if(offer.state === TradeOfferManager.ETradeOfferState.Declined){ db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Declined' WHERE `sTradeId` = '"+ offer.id +"'"); console.log('TradeID: '+offer.id+' has been declined!'); io.sockets.in(socket.room).emit('notifyUser', {'msg': 'You have declined the trade!', 'status': 'Declined'}); socket.leave(socket.room); } if(offer.state === TradeOfferManager.ETradeOfferState.Accepted){ db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Completed' WHERE `sTradeId` = '"+ offer.id +"'"); db.query("SELECT * FROM `tTradeOffer` WHERE `sTradeId` = '"+offer.id+"'") .on('result', function(data){ db.query("UPDATE `tUserProfile` SET `decCurrentStar` = `decCurrentStar` + "+data.decTradeValue+", `decTotalStar` = `decTotalStar` + "+data.decTradeValue+" WHERE `sUserId` = '"+data.sUserId+"'"); }); console.log('TradeID: '+offer.id+' has been accepted!'); io.sockets.in(socket.room).emit('tradeCompleted', {'msg': 'Trade offer has been processed and Stars added to your wallet!', 'userId': offer.id, 'status': 'Accepted'}); socket.leave(socket.room); } if(offer.state === TradeOfferManager.ETradeOfferState.Canceled){ db.query("UPDATE `tTradeOffer` SET `sTradeStatus` = 'Canceled (Time Out)' WHERE `sTradeId` = '"+ offer.id +"'"); console.log('TradeID: '+offer.id+' has been canceled (Time Out)'); io.sockets.in(socket.room).emit('notifyUser', {'msg' : 'Trade has been cancelled due to it Timing Out!', 'status': 'TimeOut'}); socket.leave(socket.room); } });
  16. Hi there! I have few questiona bout your's node-steam-tradeoffer-manager api. For example, we have 2 steam accounts: user of my website and my bot. 1 step - user want to send his item to my bot and I want to put this into mysql, so user will create trade offer but how to automatically accept it as bot and make sql query? 2 step - second situation, bot have some item and I want to make trade offer for my user. How to do it? And I want to do sql query when the trade will be accepted by user. Best regards for you, Matt.
  17. After some scalability issues with my site I decided to make the most of multiple cores and use Cluster to create many worker processes. It makes no sense to log in and poll on every worker process, so I would like to create and share a single instance of the Tradeoffer Manager between all workers. Is sharing a single instance Tradeoffer Manager the best way to do this? Are there any features of Tradeoffer Manager that would let me use multiple instances on every worker, but not waste resources logging in and polling on each one? If sharing a single instance is the best way to go, then what is a good way to be able to access it from the workers? I would rather use a callback-style interface if possible. Thanks in advance.
  18. unknownOfferSent gets canceled automatically. Have a whitelist of Offer IDs to confirm via steam-community OR cancel confirmations for unknownOfferSent Offers. Have a light mode of the bot that will be memory efficient ? More to be added soon, just out of my mind!
  19. Many of my time is spent trying to optimizing the bot to work with this awful service steam provides, Error codes like 16 and Error: ETIMEDOUT are some examples, however it is unknown if the offer is sent or not. Any experience anybody would like to share? Possible solutions? Also, when there's an error and the trade offer is sent means trade.id is true if it's false then surely the offer isn't sent? please check the code below: trade = offers.createOffer(p); trade.send('', t, function(err, status){ if(err){ console.log(err); if(trade.id){ console.log('Offer sent whilst having an error'); //Do something } else { console.log('Offer isn\'t sent'); } } else { //Do something } }
  20. Error polling for trade offers: Error: getaddrinfo ENOTFOUND api.steampowered.com I set PollInterval to -1 but still got this error, is this error caught on the event 'error' ?
  21. Player #1 send offer to receive items from player #2. player #2 open steam client and click on accept. Prior confirming this offer, is the offer state remains as active? since createdNeedsConfirmation works for player #1 as he is sending his items to player #2.
  22. When cookies get outdated, you will receive "Malformed response" error instead of some error saying 'hey, your cookies are not valid any longer, request new!'. This method opens new offer page and looks for js vars in html code, if your session is invalid, the steam will redirect you to login page instead of returning 401 unauthorized. I applied this simple fix on my and to prevent this: node-steam-tradeoffer-manager/lib/index.js in function _escrowDurationResponse, just after checking for HTTP errors if(response.request.uri.pathname === '/login/home/'){ callback(new Error('Unauthorized')); return; }
  23. I have a web app that allows users to sign in through steam and I store their user information and session id in my db after pulling their info from steam. I can also pull their inventory data. I'm trying to make it so users can send trade requests to my bots through my web app (not through the steam gui) as long as they are authed in. I have users trade url and token as well as the inventory items (id and app id). How can I leverage node steam trade offer manager to accomplish this? if at all? I know some websites do this (eg: csgolotto.com) etc. I
  24. Hello. I have a csgo jackpot site + auto trade bot. So here is the problem. 1.Bot is logged in: connected encrypt request handshake complete Logged in! 2.It seems that accepts trade on 50% maybe.. Accepted trade offer #1096969454 by kUc (76561198211580645) 3. Getting this error after that.. and its replying.. web authentication 403, retrying 4. When i check the steam site and the trade offers in bot acc, they are waiting for manyaly accpet maybe... So where shoud be the problem? I can provide the script if you know how to fix it. Also it's show in the site that the filex are deposited, act. show the deposited items, but the value of them is 0 ( bcs. bot not accepted the trade ) So thanks in advance for the help! Regards ! I can put the code here, if you want to see more of it.
×
×
  • Create New...