ApniWapni Posted January 10, 2023 Report Posted January 10, 2023 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 Quote
Arty Posted January 10, 2023 Report Posted January 10, 2023 (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 January 10, 2023 by Arty Formatted code Quote
ApniWapni Posted January 16, 2023 Author Report Posted January 16, 2023 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 Quote
Arty Posted January 17, 2023 Report Posted January 17, 2023 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) Quote
Dr. McKay Posted January 18, 2023 Report Posted January 18, 2023 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 Quote
skr1pt Posted January 29, 2023 Report Posted January 29, 2023 If player isn't in you friend-list you cant get player profile from non-prime account. but you can try it with account with prime status 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.