Guest Ino Posted July 15, 2019 Report Posted July 15, 2019 Hi, getting error when user change stateTypeError: Cannot set property 'rich_presence' of undefined at node_modules/steam-user/components/friends.js:724 at processTicksAndRejections (internal/process/task_queues.js:86) Quote
Dr. McKay Posted July 16, 2019 Report Posted July 16, 2019 Might you be somehow modifying the SteamID object passed to the user event? Try 4.12.1 and see if that fixes your problem. Quote
Guest Ino Posted July 16, 2019 Report Posted July 16, 2019 Might you be somehow modifying the SteamID object passed to the user event? Try 4.12.1 and see if that fixes your problem.it didn't fix a problem Quote
Guest Ino Posted July 16, 2019 Report Posted July 16, 2019 Might you be somehow modifying the SteamID object passed to the user event? Try 4.12.1 and see if that fixes your problem.Can it work worse if i modificated user property persona_state ? Quote
Guest Ino Posted July 16, 2019 Report Posted July 16, 2019 (edited) Might you be somehow modifying the SteamID object passed to the user event? Try 4.12.1 and see if that fixes your problem.sometimes happens that the "users" object is filled with empty objects. How can i reemit it ? Edited July 16, 2019 by Ino Quote
Dr. McKay Posted July 16, 2019 Report Posted July 16, 2019 I think you're probably modifying objects that you shouldn't be. Quote
Guest Ino Posted July 17, 2019 Report Posted July 17, 2019 I think you're probably modifying objects that you shouldn't be.Thank you for help. I have last problem, i have event "steamGuard" and option promptSteamGuardCode: false, but it want to prodive guard code from stdin, and through long time it loggedin using maFile, without stdin Quote
Guest Ino Posted July 17, 2019 Report Posted July 17, 2019 (edited) I don't understand.https://github.com/DoctorMcKay/node-steam-user#steamGuard If no listener is bound to this event, then steam-user will prompt the user for a code via stdin.I have listener "steamGuard" and i provided promptSteamGuardCode: false , but it still asks for the code through stdin. It does not always happen, but once from 10-15 Edited July 17, 2019 by Ino Quote
Dr. McKay Posted July 17, 2019 Report Posted July 17, 2019 Then you didn't bind the listener at the right time. Quote
Guest Ino Posted July 17, 2019 Report Posted July 17, 2019 Then you didn't bind the listener at the right time.What's right time for bind listener ? Can you show the example ? Quote
Guest Ino Posted July 17, 2019 Report Posted July 17, 2019 (edited) Before you call logOn.I did it before, but sometimes get this bug. The problem with the empty object "users" is also relevantAnd event "LoggedOn" can be emitted even if there was an error at the entrance, for example "RateLimitExceeded" Edited July 17, 2019 by Ino Quote
Dr. McKay Posted July 17, 2019 Report Posted July 17, 2019 once is your problem. It'll only be fired once, then the listener is removed. Also, promptSteamGuardCode has no function as of v4. Quote
Guest Ino Posted July 17, 2019 Report Posted July 17, 2019 once is your problem. It'll only be fired once, then the listener is removed. Also, promptSteamGuardCode has no function as of v4.Okay, thank you. So can you fix that "LoggedOn" can be emitted if was error while logOn ? Quote
Dr. McKay Posted July 18, 2019 Report Posted July 18, 2019 loggedOn won't be emitted unless the logon was successful. Quote
Guest Ino Posted July 18, 2019 Report Posted July 18, 2019 (edited) once is your problem. It'll only be fired once, then the listener is removed. Also, promptSteamGuardCode has no function as of v4.if it not once event steamGuard could be emitted many times and account get error rateLimitExceed. The event steamguard work nicely, but it error because sometimes steamtotp generate wrong auth code, what can i do in this case not to get banned rateLimit and successfully auth to my account? Edited July 18, 2019 by Ino Quote
Dr. McKay Posted July 18, 2019 Report Posted July 18, 2019 If the steamGuard event is emitted and lastCodeWrong is true, then you should delay 30 seconds before you generate and return a code. Quote
Guest Ino Posted July 18, 2019 Report Posted July 18, 2019 (edited) If the steamGuard event is emitted and lastCodeWrong is true, then you should delay 30 seconds before you generate and return a code.Thank you ! The last question, if a person is online from the phone - shows that he is offline, how can I fix it? And how can i know about person online from phone ? Edited July 19, 2019 by Ino Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.