-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Player name is changed to [unassigned] on successful login #442
Comments
@JustArchi So that did seem to the nickname issue, but now it doesn't seem to be putting me online. Any idea? |
If you put an example code then it'd be much better than asking my crystal ball, I'm trying to keep my mana for later 🙂. |
@JustArchi My bad, I forgot to copy and paste /facepalm
|
Can you post a reproducible example? I have a suspicion you're trying to set your persona state too early. |
Here we go, this should work better for all of us. https://github.com/GabeHirakawa/SteamFriendUtility/blob/master/SteamFriendUtility/Program.cs |
If your account is already named as |
In other words, wait for maximum of 5 seconds like in my original code, and assume it's OK to call |
That wasn't intentional, adding in the i < 5, however, still did not put me online, but did keep the username from changing. |
Because you're returning in the next |
BTW, while we're at it, maybe it'd make sense to somehow improve this part and use Functions that expect nickname to be initialized such as |
Hmm, it might be possible that you're handling the If you wait for the And yes, we should probably not send |
So here is my most recent code. Still not going online. @yaakov-h I'm still pretty new to this (as probably obvious by now) how would I go about fixing it according to your response? |
This code looks good to me. You have a lot of synchronous functions there - including Using another callback for |
Hmm, okay. Since we're on the topic, just for my learning/curious mind to understand. What is the process of the name being changed to [unassigned] and what is the purpose? |
@JustArchi Callbacks are queued, the order should be deterministic... 😕 Sleeping is inherently unreliable. |
Callbacks are queued once they arrive, Steam doesn't give a fuck about proper scheduling them in the connection itself. Especially during post-maintenance times, it's entirely possible that we could get Yes, I hate it as well. If that didn't happen, this issue would not pop up, ever, because most of the time |
FWIW, Sample 4 works fine for me. I'd bet the actual problem here is the blocking inside a of callback handler. |
Sample 4 works for me too. Moreover, my own ASF always worked fine for me, while some minor fraction of the people reported exactly the same issue before I added referenced workaround. I still blame order of callbacks sent by Steam network. There is nothing in SK2 to fix this, apart from making code as much independent of callbacks order as possible. With #443 we won't need this anymore, which is good. |
With #443 merged, the player name should no longer be changed when setting persona state, and the related race condition should now be fixed. |
I've ran into an issue where whenever I successfully log into steam the user account that I logged into's name is changed to: [unassigned]. I've tried looking around to see what could possibly find the issue and the only thing I can find is referenced here: https://github.com/Jessecar96/SteamKit2/blob/master/SteamKit2/changes.txt
However, this is from 2012 and is also not the official repo so I'm not sure how relevant it is. I'm kind of stuck and feel like I'm missing something pretty obvious. Any help with this would be appreciated.
The text was updated successfully, but these errors were encountered: