Jump to content
McKay Development


  • Content Count

  • Joined

  • Last visited

Recent Profile Visitors

87 profile views
  1. This is the test that I made with 45 test IPC processes. The test consist of sending and expecting to receive message every 1 second. I have tested the execution of the time a message goes to the child process and then waiting for that message to come back to the parent process. The transaction time doesnt exceed 1 second. It takes average ~80 mb per process. So if I want to save ram, I need to run them in one process(multiple instances of steam user class). My only concern about spawning multiple processes is that I dont know if I will hit an IPC bottleneck. What happens if a parent process have 500 child processes, which he needs to have constant connection to them? Iam not sure if it will be actually OS related. If that is the case, I need to spawn a process which spawns a process.
  2. Currently I have one main nodejs app, which spawns one nodejs process for each account. The communication is done by IPC protocol. So my question is: Is it going to be better if I just create multiple steam user instances and place them in an array or in an object collection?
  3. Dont use confirmation checker, thats how I got like 5 ips blacklisted before I realized what was causing it. I use accept all confirmations on confirmation event. It has 1.7% fail ratio for the event to emit, as much as I know. The other way is to accept all confirmations 10 seconds after the trade is sent, it might fail again but its still a workaround.
  4. Iam using this, it works fine, when I have time, I will look it up, probably after my finals. if(oldState == 12){ return; }
  5. The old state is 12, which is strange because the TradeOfferEnum max number is 12. Is that a debug number?
  6. I will check it, but I believe its the same, because if I keep the app running, it can emit 1000 times before I close it or the trade offer changes it states
  7. EDIT2: the emmiting stops when the trade offer is accepted and finalized(havent tested with others statuses) EDIT2.1: some offers are fine, some are causing "sentOfferChanged" to emit too much
  8. When I send a trade, it keeps telling me that the offer status is changed to 2 (Active), this happens every ~4-~7 seconds after I send the offer. Code related to the trade offer manager EDIT: The code below is wrapped inside an async Start() function, so I can use async. var pollData = await offerService.getPollData(); const manager = new TradeOfferManager({ steam: client, community: community, language: "en", cancelOfferCount: 30, pollData: pollData }); manager.on("sentOfferChanged", (offer, oldState) => { //<this emits every ~4-~7 seconds console.log(`Sent offer changed:` + offer.state); senderService.onSentOfferChanged(thisId, offer.partner.getSteamID64(), offer); }); manager.on("pollData", data => { offerService.savePollData(thisId, data); });
  9. I hold the credentials of my bots in plain text, but Iam sure that nobody can access the vps server and the plain text files. So one of the bot got his inventory wiped out by this guy https://steamcommunity.com/profiles/76561198878870680 . I have auto confirm all trades on confirmation event emit. Its strange that I hold credentials for other bots on the same file which are not touched at the moment and have items. I locked the other accounts but left 2 too see what will happen
  10. const client = new SteamUser();client.setOption("localAddress",logInConfig.publicIP);const logInOptions = { accountName: logInConfig.accountName, password: logInConfig.password, twoFactorCode: SteamTotp.generateAuthCode(logInConfig.sharedSecret)}; const community = new SteamCommunity({ localAddress:logInConfig.publicIP});const manager = new TradeOfferManager({ steam: client, community: community, language: "en", cancelOfferCount: 30});client.logOn(logInOptions);Will the manager use the logInConfig.publicIP?
  11. I had run into the same problem and I had to change ips, the first time it happened was when I used confirmation checker, the second was that I used client.weblogon too much
  12. It seems that everything is ok from the manager debug, it prints "doing trade offer poll since *somenumber*" and 1/5 of the times or something "trade offer poll since 1(full update)", but no emits. EDIT: I just love javascript and my stupidity manager.on("sentOfferChanged " I had this space floating around, thanks anyways!
  13. const client = new SteamUser();const community = new SteamCommunity();const manager = new TradeOfferManager({ steam: client, community: community, language: "en",}); const logInOptions = { accountName: logInConfig.accountName, password: logInConfig.password, twoFactorCode: SteamTotp.generateAuthCode(logInConfig.sharedSecret)}; client.logOn(logInOptions); client.on("loggedOn", () => { console.log("logged on"); client.setPersona(SteamUser.EPersonaState.Online); client.gamesPlayed(730); client.webLogOn();}); client.on("webSession", (sid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); });Really looking forward for help edit: Also this community.on('sessionExpired', function(err) { if (err) { console.log('Session Expired: ' + err); } if (client.steamID) { client.webLogOn(); console.log('called weblogon: ' + thisId); } else { client.logOn(logOnOptions); console.log('called logon'); }});Edit:2 I do not receive ANY emits now from sentOfferChanged, can confirm that client.on("webSession", (sid, cookies) => { is called
  • Create New...