Closed TheRdMelon closed 5 years ago
Are you actually pumping through the callbacks (example)?
Do you even log in?
I have added this after SteamClient.Connect();
while (IsRunning)
{
SteamCallbackManager.RunWaitCallbacks(TimeSpan.FromSeconds(1));
}
I don't know how to log in, is there anywhere I can go to see how exactly to use it without going through examples?
No, that's what the samples are for.
Ok so I was running off of SteamBot which was probably not the smartest idea for testing, so I wrote out the example you linked me to.
Before I go any further trying to implement the CSGO item checking feature, I just want to ask about the OnLoggedOff
function, because despite running SteamUser.LogOff()
, the OnLoggedOff
function is never called, only OnDisconnected
.
Even after directly coping the example just to make sure (I usually manually copy so I can understand it), it still doesn't call it.
So I think the example's broken.
OnLoggedOff
is called when Steam sends a logged-off message. This doesn't usually happen when the user requests to be logged off, rather when a user has been signed out because they logged in on another machine (in the old days), or from Steam on the same machine, or possibly for server maintenance.
Ok thank you, went through the rest of the samples and got it working fine.
I'm new, but have spent over 6 hours seeing if I could figure out how this works. I am trying to get detailed information about a CS:GO item, (I'm manually entering the values for testing), as shown here.
I have the following code in a constructor:
and heres the rest:
When I call requestItemPreviewData(), I never even see "Called!" in the logs, what am I doing wrong?