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. If steam-tradeoffer-manager emit unknownOfferSent event this offer will appear in sentOfferChanged?
  2. Hello guys, i need to pull the item names when came some offers. I need because i have to calculate the item costs. Thanks.
  3. Hello, Bot did send trades, but steam was down and bot didn't confirm them Later, when steam cames back, how to confirm all that trades?
  4. Hello, Is there a way to know the assetID of the items received before it changes? Right now, I have 1 inventorybot and multiple tradebots. The inventorybot distributes the items to the different tradebots. When I send an item from my inventorybot to the tradebot, my flow is as follows: Flow of inventorybot : send item -> when accepted delete record in DB Flow of tradebot : receive item -> accept -> insert into database This is how I keep track of which items are in which bots. But there is data that only the inventorybot knows about some items, for example where I got the item from (Did I get it from bitskins, opskins or another seller). But that data is lost since I have to delete the record in DB. I would like to update the record instead of deleting and inserting a new one. I have no way to know which item in database I should update after it has been traded to anoter bot. This could be done with a " UPDATE ... WHERE assetid = ..." . But assetID changes after trade, so that is not an option. Am I missing something on how I should do this? Kind regards
  5. Hi, im going to backup my server and also the bot i've made, so i just need to know where it is located, thanks My OS: CentOS 7 node-steam-tradeoffer-manager
  6. I have this code in my offers offers.on('sentOfferChanged', function(offer, oldState) { logger.log("Offer #" + offer.id + " changed: " + TradeOfferManager.getStateName(oldState) + " -> " + TradeOfferManager.getStateName(offer.state)); if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) { offer.getReceivedItems(function(err, items) { if (err) { console.log("Couldn't get received items: " + err); } else { var names = items.map(function(item) { return item.name; }); logger.log("Received: " + names.join(', ')); } }); } }); As of this morning i'm not getting an event when I confirm my trade via my mobile app even though the trade was accepted and the items are now in the bots inventory. Sometimes I will get an err eventually and i'll get this Couldn't get received items: Error: Steam returned unsuccessful response However, most trades I wont get anything. Is this a steam issue? edit: here's my manager setting var offers = new TradeOfferManager({ steam: client, domain: config.domain, language: "en", cancelTime: 300000 }); I assume polling is automatic?
  7. I want/try to start a discussion to collect ideas and experience which is the best way to load user inventories fast and preferably unlimited for web bases item select masks. For myself, I 've just read that one needs a lot of ip addresses to pass as proxy for example as described in this post https://dev.doctormckay.com/topic/176-loadinventory-proxy/ I imagine the following questions ? What are the limits to request inventories (x request per hour, or day) ?should i use a caching strategy (which is recommended, just time based, how long) ?if proxys are the only way is there a recommended hoster, eg.is it possible to request the inventory cross site based with javascript in browser (so that customer client ips are used), iframe, etc.... Are there any other strategys? Hope this post can help others and me to handle this problem.
  8. When accept TradeOffer, error occurs "Unknown state 2" Log from my bot: darkwar1234: Logged On darkwar1234: new trade offer from 76561198052220848 darkwar1234: Unknown state 2 darkwar1234: cookies are updated! darkwar1234: trade offer â„–1150955479, status: 3 darkwar1234: trade offer are accepted!Code: offer.accept(function(err){ if(err){ // here console.log(err.message) "darkwar1234: Unknown state 2" self.relogin(err, function(){ self.checkOffer(offer, function(offer){ if(offer.state == 3){ self.acceptOffer(trade, callback); }else if(offer.state == 2){ self.handleOffer(trade, callback); } }); }); return; } self.acceptOffer(offer, callback); });And when I use method TradeOffer.update() it receive undefined if I make offer now or if TradeOffer has status 3 it show error Offer no longer valid. I want to use this method instead getOffer in this part of code: SteamBotManager.prototype.checkOffer = function (offer, callback) { var self = this; self.manager.getOffer(offer.id, function(err, offer){ if(err){ self.relogin(err, function(){ self.checkOffer(offer, callback); }); return; } if(offer.state == 2 || offer.state == 3){ self.log("trade offer â„–"+ offer.id +", status: "+ offer.state); if (typeof(callback) === 'function') { callback(offer); } }else{ self.log("trade offer â„–"+ offer.id +" is no longer valid, status: "+ offer.state +"!"); } }); };
  9. Hello there, So I am having poll failure error according to my logs and my bot does nothing after poll failure, even though it accepted the trade offer. Here is the issued logs, {"level":"debug","message":"#1 - Received new offer: - 1146841042","timestamp":"2016-04-10T03:26:01.792Z"} {"level":"debug","message":"#7 - Offer # - 1146841042 accepted from 76561198074956634","timestamp":"2016-04-10T03:26:12.168Z"}{"level":"debug","message":"!! POLL FAILURE ERROR !!: Error: Timeout","timestamp":"2016-04-10T03:26:14.464Z"}
  10. Node.js is a new thing for me, as I have only started learning it about yesterday. I've been attempting to build a trade bot the accepts trade offers as long as the items that are being received are valued more than the items of the bot. To find the value of items, I use steam-market-pricing. My question is, how do I identify what items the person is offering, and what the person wants to receive from the trade offer? Furthermore, how do I only accept these offers? Sorry if the questions are vague, I'll clear up if you don't understand. I'm working off of this code from a guide just to make my life a bit easier.
  11. Hi, I'm currently asking on behalf of my coder who is not really good with English. He has trouble getting items being displayed on the website when the bots received them. The NodeBot is working fine and is able to trade items back and forth with me. Now once I've deposited the items on the bots, I'm trying to get it linked to my website inventory which belongs to mine account when I signed in through steam, showing my "web" inventory which I have deposited with the bots. I read on google about storing it in a database, doing array etc. And something about connecting the Nodebot to the website through socket.io, I'm not familiar with all these as I'm not a coder. Any help would be appreciated. Thanks
  12. offers.on('sentOfferChanged', function(offer, oldState) { logger.log("Offer #" + offer.id + " changed: " + TradeOfferManager.getStateName(oldState) + " -> " + TradeOfferManager.getStateName(offer.state)); if (offer.state == TradeOfferManager.ETradeOfferState.Accepted) { offer.getReceivedItems(function(err, items) { if (err) { console.log("Couldn't get received items: " + err); } else { var names = items.map(function(item) { return item.name; }); console.log("Received: " + names.join(', ')); } }); } }); I'm trying to get the steam id from the partner object but the steamId object only contains 4 properties. partner: SteamID { universe: 1, type: 1, instance: 1, accountid: xxx }, Is there a way to get the steamId from this?
  13. .getReceivedItems sometimes messes up with a 503 error is there anything i can do so that i can retry or make it try again on the 'receivedOfferChanged' condition?
  14. Hello, There is a method isGlitched(). If this method return true how to "reload" the offer to make it "not glitched"? Best wishes, Gleb
  15. Is there a way that I can intentionally make offer.send() returns an error?
  16. Hello, Dr. McKay I keep getting [Error: Steam returned unsuccessful response] when making getReceivedItems. But when I open receipt link in the browser(http://steamcommunity.com/trade/<TRADE ID>/receipt) it works: Best wishes, Gleb
  17. offer.getEscrowDuration(steamid,usertoken, function(err, their,main){get callback(null, parseInt(theirs[1], 10), parseInt(mine[1], 10)); ^ TypeError: callback is not a function at String.TradeOfferManager._escrowDurationResponse (D:\STARTBOT\node_modules\steam-tradeoffer-manager\lib\index.js:214:3) at Request._callback (D:\STARTBOT\node_modules\steamcommunity\components\http.js:62:14) at Request.self.callback (D:\STARTBOT\node_modules\request\request.js:200:22) at emitTwo (events.js:100:13) at Request.emit (events.js:185:7) at Request.<anonymous> (D:\STARTBOT\node_modules\request\request.js:1041:10) at emitOne (events.js:95:20) at Request.emit (events.js:182:7) at Gunzip.<anonymous> (D:\STARTBOT\node_modules\request\request.js:968:12) at emitNone (events.js:85:20) and function offer.getEscrowDuration(function(err, daysTheirEscrow, daysMyEscrow) { processed in 3 seconds,how can it accelerate ?
  18. I'm using a bot for a jackpot site, and when it accepts a trade sometimes the bot will return an error upon accepting a trade, however the trade is accepted anyway, meaning the bot gets the items but they do not go in to the pot. How can I fix this?
  19. 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.
  20. 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.
  21. 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?
  22. Hi there. I have problem with sending offer from my bot using tradeoffer-manager, when I try to send some offer only with my items I have status pending. On steam in sent offers I see 'Awaiting for mobile confirmation'. What is wrong? I have turned on 2FA and i'm logged in steam with my bot. My code: var offer = manager.createOffer("[U:1:123456789]"); offer.addMyItem({"appid": 730, "contextid": 2, "assetid": "1234567890"}); offer.send("Lorem ipsum...", "12345678", function(err, status) { if (err) { console.log(err); } else { console.log("Offer #" + offer.id + " " + status); } });
  23. How low can I put the value on confirmationChecker before Steam starts to limit the requests?
  24. 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
×
×
  • Create New...