Jump to content
McKay Development

Revadike

Member
  • Posts

    97
  • Joined

  • Last visited

Everything posted by Revadike

  1. Created PR: https://github.com/DoctorMcKay/node-steamcommunity/pull/276
  2. Nevermind, seems it just took a bit longer than usual. V3 is all good.
  3. This issue isn't specific to v4. I can't get it to work on the latest version of v3 either. Debugging this currently...
  4. @ThePlata, did u try? For me, it seems callback isn't called at all.
  5. I did this for the callback to support the old structure: (result, detail, packages) => { // conversation new to old structure if (result) { detail = result.purchaseResultDetails; packages = result.packageList; result = result.eresult; } else { result = 1; }
  6. I've made it log all debug events and this is the log: https://pastebin.com/EZRG8xm3 It repeats every 2 minutes, until it finally works. Sometimes it works at first try, but often it takes several tries. loggedOnSteam only gets logged on loggedOn event. And signedIntoBarter only gets logged ONCE websession. This is my login config (un and pass omitted) { accountName: 'xxx', password: 'xxx', twoFactorCode: 'XXX', logonID: 1551653434369, rememberPassword: true, dontRememberMachine: false, autoRelogin: true, machineName: '[email protected]' }: WebSocket disconnected with error: Ping timeout This seems to cause it, or at least be related with it.
  7. Something weird is happening. I updated my bot to work with your latest steam packages. However, sometimes it seems like something inside steam-user gets stuck. Sometimes it works just fine, but other time it will only emit loggedOn and websession events. All other events are not emitted. And that's not all. I expect loggedOn to be only emitted once, since in my code I only login once, however when these other events are not emitted, loggedOn gets emitted every 2 minutes. Any idea what's going on?
  8. You could of course always do it yourself, by checking the web request from steam and use https://github.com/DoctorMcKay/node-steamcommunity/wiki/HTTP-Hooks to incorporate that in your script.
  9. Can't you just turn the callback of the friendMessage ID event into a promise and await that in an async function?
  10. I wouldn't know without checking your bot's logic. It also begs the question: Why don't you just try?
  11. This is also a great guide: https://github.com/andrewda/node-steam-guide
  12. It is definitely possible. Here is a nice guide: https://github.com/andrewda/node-steam-guide Check chapter 4.
  13. Yeah, I've wondered this myself too. Have you tried changing the count parameter?
  14. This doesn't really involve McKay's libraries.
  15. Are you sure you're checking the right profile? Log the account's steamid64 with steamUser.steamID.getSteamID64().
  16. Or check McKay's IRC bot script for an alternative way
  17. Just keep track on which profile you already left a comment on, if you want to avoid doing it more than once.
  18. Log into your steam account via node Keep track of a message counter for each person you chat with Reset the counter every minute or so In the event a person sends you a chat message, check the counter for your defined threshold and if it exceeds it, instablock that personPM me, if you want to pay me to make this for you
  19. So, I've tried the use of proxies quite a few time, but I found out none or very little of the free proxies that I can gather, actually works. On the contrary, any arbitrary free VPN works great with node-steam (and steam client). I'm not well educated on the topic of proxies and VPN's, but what is so different, that free proxies not work, while free VPN's do? Is there such a thing as a virtual/local VPN, which we can use instead of a proxy (thus not affecting all network traffic, as a normal VPN would)?
  20. Okay, forgive me, but I am a bit confused about this. I've tried looking for better examples or documentation, but it didn't clear things up for me. I have a few questions: Is the id property of a gift object (e.g. an item from gifts from the gifts event) the same as an assetid of an CEconItem? You seem to use these terms interchangeably in your documentation, but I am not sure. Without knowing the answer of the first question, can/should you use community.redeemGift with the gift.id as first parameter? Let say I am doing the thing question 2 is asking about, in the gifts event. Why is it that after sending a trade offer where I'd receive a steam gift, not automatically redeem a steam gift when offer is accepted? * What should I do for the scenario mentioned in question 3, or if I receive a trade offer with 1 or more steam gifts, which I accept (using trade offer manager)? ** I realized that the gifts event is only for when gifts are sent directly to me, and not via trade offers (as they get sent to inventory). So, in case of trade offers, after accepting a trade with trade offer manager, I should use offer.getReceivedItems to check if they contain steam gifts and redeem them? How do I do that exactly? I assume I check for some property of CEconItem item of the received items to see if it's a steam gift and then use community.redeemGift(item.assetid, ...)? But which property and what value? ** ** Found out I should check for property type (https://github.com/DoctorMcKay/node-steamcommunity/wiki/CEconItem#type) with value Gift. Should I only call offer.getReceivedItems after trade offer has been accepted AND confirmed? Or can you do it also for unconfirmed accepted?
  21. Thank you, that resolves that problem. Do you have any idea what to do to fix these problems? Only top error was a fatal one that made the program crash, others are from console.log(error). .\49520\steamassets\willowgame\cookedpcconsole\cd_assassin_skin_orangef_sf.upk { Error: connect ETIMEDOUT 155.133.248.24:80 at Object.exports._errnoException (util.js:1050:11) at exports._exceptionWithHostPort (util.js:1073:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', address: '155.133.248.24', port: 80 } .\49520\steamassets\dlc\aster\lic\content\castleexterior_light.upk events.js:163 throw er; // Unhandled 'error' event ^ Error: error:0606506D:digital envelope routines:EVP_DecryptFinal_ex:wrong final block length at Decipheriv._flush (crypto.js:135:28) at Decipheriv.<anonymous> (_stream_transform.js:118:12) at Object.onceWrapper (events.js:293:19) at emitNone (events.js:86:13) at Decipheriv.emit (events.js:188:7) at prefinish (_stream_writable.js:500:12) at finishMaybe (_stream_writable.js:512:7) at endWritable (_stream_writable.js:520:3) at Decipheriv.Writable.end (_stream_writable.js:485:5) at Object.exports.symmetricDecrypt (.\node_modules\@doctormckay\steam-crypto\index.js:80:10) { Error: connect ETIMEDOUT 155.133.248.10:80 at Object.exports._errnoException (util.js:1050:11) at exports._exceptionWithHostPort (util.js:1073:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', address: '155.133.248.10', port: 80 } { Error: connect ETIMEDOUT 155.133.248.10:80 at Object.exports._errnoException (util.js:1050:11) at exports._exceptionWithHostPort (util.js:1073:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', address: '155.133.248.10', port: 80 } { Error: connect ETIMEDOUT 155.133.248.10:80 at Object.exports._errnoException (util.js:1050:11) at exports._exceptionWithHostPort (util.js:1073:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1093:14) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', address: '155.133.248.10', port: 80 } .\49520\steamassets\dlc\lobelia\compat\content\cd_mechro_head_lobelia_sf.upk .\49520\steamassets\dlc\aster\lic\content\dungeon_p.upk Error: File checksum mismatch at Hash.<anonymous> (.\node_modules\steam-user\components\cdn.js:457:38) at emitNone (events.js:86:13) at Hash.emit (events.js:188:7) at emitReadable_ (_stream_readable.js:434:10) at emitReadable (_stream_readable.js:428:7) at readableAddChunk (_stream_readable.js:189:13) at Hash.Readable.push (_stream_readable.js:136:10) at Hash.Transform.push (_stream_transform.js:128:32) at Hash._flush (crypto.js:70:8) at Hash.<anonymous> (_stream_transform.js:118:12) .\49520\steamassets .\49520\DLC\Iris\Lic\Audio\English(US)\Audio_Banks_iris.pck .\49520\Borderlands2.app\Contents\GameData\DLC\Sage\Compat\Localization\FRA\GD_Sage_SM_Friendship.FRA { Error: Fail at Object.exports.eresultError (.\node_modules\steam-user\components\helpers.js:75:12) at .\node_modules\steam-user\components\cdn.js:129:30 at Object.cb (.\node_modules\steam-user\components\messages.js:174:4) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:321:26) at CMClient.handlers.(anonymous function) (.\node_modules\steam-client\lib\cm_client.js:603:8) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:305:24) at emitOne (events.js:96:13) at TCPConnection.emit (events.js:191:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:179:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:182:7) eresult: 2 } { Error: Fail at Object.exports.eresultError (.\node_modules\steam-user\components\helpers.js:75:12) at .\node_modules\steam-user\components\cdn.js:129:30 at Object.cb (.\node_modules\steam-user\components\messages.js:174:4) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:321:26) at CMClient.handlers.(anonymous function) (.\node_modules\steam-client\lib\cm_client.js:603:8) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:305:24) at emitOne (events.js:96:13) at TCPConnection.emit (events.js:191:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:179:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:182:7) eresult: 2 } { Error: Fail at Object.exports.eresultError (.\node_modules\steam-user\components\helpers.js:75:12) at .\node_modules\steam-user\components\cdn.js:129:30 at Object.cb (.\node_modules\steam-user\components\messages.js:174:4) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:321:26) at CMClient.handlers.(anonymous function) (.\node_modules\steam-client\lib\cm_client.js:603:8) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:305:24) at emitOne (events.js:96:13) at TCPConnection.emit (events.js:191:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:179:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:182:7) eresult: 2 } { Error: Fail at Object.exports.eresultError (.\node_modules\steam-user\components\helpers.js:75:12) at .\node_modules\steam-user\components\cdn.js:129:30 at Object.cb (.\node_modules\steam-user\components\messages.js:174:4) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:321:26) at CMClient.handlers.(anonymous function) (.\node_modules\steam-client\lib\cm_client.js:603:8) at CMClient._netMsgReceived (.\node_modules\steam-client\lib\cm_client.js:305:24) at emitOne (events.js:96:13) at TCPConnection.emit (events.js:191:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:179:7) at TCPConnection._readPacket (.\node_modules\steam-client\lib\tcp_connection.js:182:7) eresult: 2 } .\49520\Borderlands2.app\Contents\GameData\DLC\Aster\Lic\Audio\English(US)\Audio_Streaming_aster.pck .\49520\DLC\Flax\Compat\Localization\KOR\GD_Flax_PumpkinHead.KOR
×
×
  • Create New...