Jump to content
McKay Development

hkp

Member
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

hkp's Achievements

  1. I have an issue with trades being sent but not confirming. I'm currently running the latest steamcommunity (3.45.3) and still my trades are not confirming. I've tried using the acceptConfirmationForObject method too but with no results too. The community object on the tradeoffermanager instance is undefined. tradeBot.manager.community.acceptConfirmationForObject(identitySecret, offerId) I've also tried logging in with a new community instance separate from the one that should be autogenerated by the trade offer manager which works fine but I'd rather have the original method of autoconfirmations when using the send method in steam-tradeoffer-manager I've tried passing the working community to the tradeoffer manager instance in the logOn method but it doesn't work either. Does the community instance need to be initialized and logged in before it can be passed to the tradeoffer manager instance?
  2. I have wrapped every call to logOn apart from the one that occurs on start up in .once('disconnected') but I still get that same error E:\projects\steambot\node_modules\steam-user\components\logon.js:23 throw new Error("Already logged on, cannot log on again"); ^ Error: Already logged on, cannot log on again at E:\projects\steambot\node_modules\steam-user\components\logon.js:23:10 at processTicksAndRejections (node:internal/process/task_queues:77:11)
  3. I can't seem to find anything regarding the 'once' I already have the logOff & logOn happening inside .on('disconnected') how is once different? Can I use it like this inside of the error, disconnected and loggedOff event handlers? client.on('error', function(e) { if (e.eresult === SteamUser.EResult.LoggedInElsewhere) { err("[STEAM] This account is already logged in elsewhere - Attempting to re-login."); } else if ( e.eresult === SteamUser.EResult.RateLimitExceeded ) { err("[STEAM] Steam is currently rate-limiting our connection - Attempting to re-login."); } else { err(`[STEAM] An error occurred: ${e.message} - Attempting to re-login.`); } client.logOff(); client.once('disconnected', () => { //logged off; now safe to log on again. client.logOn({ accountName: 'hgcwa834', password: 'rUSTCASINO888!', twoFactorCode: SteamTotp.generateAuthCode(sharedSecret), logonID: Math.random() * 100000000 }) }); })
  4. I occasionally get this error after my program runs for 12-24 hours. I only have 3 different calls to the logOn method and they are all in this format: client.logOff(); setTimeout(function() { if(client.steamID) return; client.logOn({ accountName: 'username', password: 'password', twoFactorCode: SteamTotp.generateAuthCode(sharedSecret), logonID: parseInt(111111111 * Math.random()) }) }, 5000) I read on other posts regarding this error that the logOn should be delayed after the logOff is called and that if client.steamID exists, it means it should already be logged in so I return when the steamID property exists. This hasn't solved my error and I still receive this which exits the process. E:\projects\steambot\node_modules\steam-user\components\logon.js:23 throw new Error("Already logged on, cannot log on again"); ^ Error: Already logged on, cannot log on again at E:\projects\steambot\node_modules\steam-user\components\logon.js:23:10 at processTicksAndRejections (node:internal/process/task_queues:77:11) What would be my best solution to fix this error? I don't think wrapping the logOn calls in a try-catch block would be sufficient but I could be wrong.
  5. Is there any way to grab the trade offer URL to prompt to the user? I can't seem to find anything under the tradeoffer docs that mentions "URL" besides avatars. Just to be clear, a link to the trade offer created by steam-tradeoffer-manager, not the trade URL used to send the trades.
×
×
  • Create New...