-
Notifications
You must be signed in to change notification settings - Fork 72
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
Trophy Earned Rate Not Working Anymore? #253
Comments
I noticed that on my PS5 console around the time you wrote this issue so was it really slow on loading trophies. Might have been a Sony hiccup. |
Still not working but the API is too slow at this moment, so maybe they will fix this soon, or what do you think? |
Honestly, I don't know. And you're sure you haven't made any changes to your code? I have a strange bug that this tool only grabs the first data I ask for about a trophy linked to the player. See #250 for it (and my workaround). |
This is my code: $user = $client->users()->find($userAccount); I used your solution but still not working :( I tried your solution: $trophyDate = (clone $trophy)->earnedDateTime(); but nothing, and I realized that earnedDateTime is not working too, so both returns 0. Any ideas? |
Strange, seems fine to me. What PHP version are you running? For reference, I'm using PHP 8.2 |
My version is 8.2.4, and the thing is that two days ago was working fine. Did you try to update a user PSN Trophies? When I do that, always retrieve 0 from earnedDateTime and earnedRate, should I put clone in both variables? Ty Ragowit. |
My site https://psn100.net updates just fine. No, clone on both shouldn't be needed. Have you tried to update your npsso on the account your using with the script? |
This is the method I'm using right now:
When I try to use the verbose method, it returns this errors from navigator console: Error with Permissions-Policy header: Unrecognized feature: 'document-domain'. Then I log-out my current psn session and seems to be working with the verbose method, but with some erros. And if I try to use the $client->login('npsso'); Api returns that the method login doesn't exists, do you see something wrong? |
Seems good, here's my login code for reference:
|
Hello Ragowit, now, with the next code, I'm getting trophy rate correctly, but no the earnedDateTime() `require_once 'includes/psn.php';
|
The date can be null, mostly common in the PS3 era. Are you sure that the date in this case isn't suppose to be null? Have you compared that user with other sites? (I don't know who 9150243351170436908 is) |
Ok, found the problem and the solution:
If you put earnedDateTime() just after the if, it works fine, but if you set that line after progress, name or another one, it will return null, seems weird, I also try to use clone but nothing, so that's it, earnedRate before (earned()) and earnedDateTime just after the conditional. Thank you Ragowit, thanks to you I found the strange solution hehehe. |
I was using earnedRate() function yesterday and was working fine, but now, I get 0 for every trophy linked to a player, do you know if this a temporary issue or now is blocked by the PSN Api?
Thank you :)
The text was updated successfully, but these errors were encountered: