Jump to content
McKay Development

globaloffensive- requestPlayerProfile doesn't return anything


Recommended Posts

Posted

When trying to request a player profile it doesn't seem to ever get a response back. I am using the following code:

  csgo.requestPlayersProfile("STEAM_ID", (profile) => {
    console.log("Profile Requested")
    console.log(profile);
  });

Neither "Profile Requested" nor the profile gets requested.

 

I have also tried csgo.on(playerProfile) but doesn't seem to have any effect

Posted (edited)

Hi, I'm not certain it's necessary, but it may as well be; do you have

user.gamesPlayed( [ 730 ] )

in place? If so, maybe just try debugging everything else, at times it could be steam not letting you log in when it recieves too many requests and stuff

Edited by Arty
Formatted code
Posted
On 1/10/2023 at 6:40 PM, Arty said:

Hi, I'm not certain it's necessary, but it may as well be; do you have

user.gamesPlayed( [ 730 ] )

in place? If so, maybe just try debugging everything else, at times it could be steam not letting you log in when it recieves too many requests and stuff

Thanks for your reply, I have indeed had this. But i keep getting nothing specific. I have turned on console log debugging and getting the following:

Logged into Steam
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 2000 ms
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 4000 ms
Got handled GC message ClientWelcome
Unknown SO type 2 with 1 items
Unknown SO type 7 with 1 items
Unknown SO type 43 with 2 items
GC connection established
Connected to GC
Sending GC message ClientRequestPlayersProfile
Got unhandled GC message 9194
Got handled GC message MatchmakingGC2ClientHello
Got unhandled GC message 9173

 

So it looks like it is sending the request, but its response doesn't get handled?

 

I also added 

csgo.on('playersProfile') aswell with a console log but as you can see it doesn't do anything either

Posted
16 hours ago, ApniWapni said:

Thanks for your reply, I have indeed had this. But i keep getting nothing specific. I have turned on console log debugging and getting the following:

Logged into Steam
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 2000 ms
Sending GC message ClientHello
Sending hello, setting timer for next attempt to 4000 ms
Got handled GC message ClientWelcome
Unknown SO type 2 with 1 items
Unknown SO type 7 with 1 items
Unknown SO type 43 with 2 items
GC connection established
Connected to GC
Sending GC message ClientRequestPlayersProfile
Got unhandled GC message 9194
Got handled GC message MatchmakingGC2ClientHello
Got unhandled GC message 9173

 

So it looks like it is sending the request, but its response doesn't get handled?

 

I also added 

csgo.on('playersProfile') aswell with a console log but as you can see it doesn't do anything either

In that case it could be the ID, perhaps? Just to be clear, the ID needs to be ID64 and the requested user needs to be online, as per the documentation, the requested profile must be online in CS:GO and be on your friendlist. What I suggest doing is trying to request the player profile of your own account, which certainly should work; You can get your ID from the loggedOn event's details (.client_supplied_steamid)

Posted

Using client_supplied_steamid might work, but it's not guaranteed to always work if Valve changes how something works. The best way to get your own SteamID is from the steamID property on your SteamUser instance. For example, user.steamID

  • 2 weeks later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...