Tustin / PlayStationDiscord

Discord Rich Presence for PlayStation 4, PlayStation 3, and PlayStation Vita games.
https://tustin.dev/PlayStationDiscord/
GNU General Public License v3.0
391 stars 102 forks source link

Ps3/Vita still not being picked up after 3.2.0 #119

Closed deejbruce closed 2 years ago

deejbruce commented 3 years ago

In the last update, They were being picked up but I kept having an error "There was a communication error with Discord" But I could at least see the game, Now it just says I'm offline and I've tried logging out and in again and nothing, I'm defitinally online though.

Tustin commented 3 years ago

I think the new Sony API I use got rid of PS3/Vita status. I'll have to test it out to make sure but that's most likely the reason why. I'll have to come up with a fix for it

deejbruce commented 3 years ago

Ah, Figured it was bound to happen eventually after they turned off the ability to send messages from ps3 to ps4 so I wouldn't be surprised.

deejbruce commented 3 years ago

3SexhynRyg Like I did check with 3.1.1 and It was able to pick it up, It just wouldn't connect to Discord.

Tustin commented 3 years ago

3SexhynRyg

Like I did check with 3.1.1 and It was able to pick it up, It just wouldn't connect to Discord.

Yeah it would pick it up but never send to Discord because the old Discord client ID for PS3 and Vita were invalid

ghost commented 3 years ago

Is this the end of dicord status for PS3 games then?

PabloGirol commented 3 years ago

The old api still works tho, should be a workaround to make it work

Tustin commented 3 years ago

The old api still works tho, should be a workaround to make it work

It does, I'm just not sure if PS5 titles show up on there (which I want to support more than I do PS3/Vita). If they do, I can just go back to the old API for now.

PabloGirol commented 3 years ago

Using both APIs (New and Old ones) in the app and use one of them just for psvita and ps3 and the other to Ps4 and Ps5 Should work till the older API dies, then well... there is no way to make it work right now, Right?

Jump-Suit commented 3 years ago

I'd prefer my ps3 and vita games being displayed than PS4 and PS5 personally. PS5 is still fresh and filled with OS bugs, it is a shame to see changes to the API break PS3 and Vita support as that is what I use more. I'd have to somehow source another Discord Rich Presence to PlayStation alternative IF one even exists...

ghost commented 3 years ago

I'd prefer my ps3 and vita games being displayed than PS4 and PS5 personally. PS5 is still fresh and filled with OS bugs, it is a shame to see changes to the API break PS3 and Vita support as that is what I use more. I'd have to somehow source another Discord Rich Presence to PlayStation alternative IF one even exists...

Yeah I was only using for the PS3 discord presence, but worst case senario I can play most of my PS3 games through RPCS3 now and get Rich Presence that way. But it would still be nice to have it working again.

xetsubou commented 3 years ago

Using both APIs (New and Old ones) in the app and use one of them just for psvita and ps3 and the other to Ps4 and Ps5 Should work till the older API dies, then well... there is no way to make it work right now, Right?

Yeah could you just use both API? Maybe make 2 apps if necessary

hanarix commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

deejbruce commented 3 years ago

I don't think this is going to get fixed is it?

LieutenantSugar commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

hanarix commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

Deltara3 commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

LieutenantSugar commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

Aww hell yeah! The other method didn't work for me either but this one sure did! I really do hope this issue gets fixed in the next update so people don't have to do all this to make it work. Thanks for your comment, bud! Really glad the PS3 shows a presence now! :D I'm a bit bummed that the images for the games don't show, but a working presence is better than nothing!

Deltara3 commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

Aww hell yeah! The other method didn't work for me either but this one sure did! I really do hope this issue gets fixed in the next update so people don't have to do all this to make it work. Thanks for your comment, bud! Really glad the PS3 shows a presence now! :D I'm a bit bummed that the images for the games don't show, but a working presence is better than nothing!

No problem, it is sad that the images don't show, but I was used to it with the PS3 python/javascript presence, only issue with those two was that it required CFW and webmanMOD. Which not everybody has access to or wants to have. Glad to know that I helped someone! To be honest, I thought the instructions might have been too convoluted. I should make a repository for the patch, I think that would be a good idea.

Naddly commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

It didn't work for me, the app displays the game normally but nothing happens on my discord :/

Deltara3 commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

It didn't work for me, the app displays the game normally but nothing happens on my discord :/

Which build of PlayStationDiscord are you using? I chose 3.1.2 rather than 3.1.1 because I had sign in issues with 3.1.1. I did make a repo for the patch. Which can be found here. In the releases there is a prebuilt app.asar package for 3.1.2. If that still doesn't work, check to see if you have game activity turned off in Discord.

Naddly commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

It didn't work for me, the app displays the game normally but nothing happens on my discord :/

Which build of PlayStationDiscord are you using? I chose 3.1.2 rather than 3.1.1 because I had sign in issues with 3.1.1. I did make a repo for the patch. Which can be found here. In the releases there is a prebuilt app.asar package for 3.1.2. If that still doesn't work, check to see if you have game activity turned off in Discord.

Yep, it still doesn't work. Discord game activity is on and I'm using PlayStationDiscord 3.1.2 with your patch. I've tried 3.1.1 but had same issue than you

Naddly commented 3 years ago

Wait, it now just worked XD Thank you for the help!

Deltara3 commented 3 years ago

Wait, it now just worked XD Thank you for the help!

Oh, ok that's good, I wonder what happened. No problem.

Naddly commented 3 years ago

Wait, it now just worked XD Thank you for the help!

Oh, ok that's good, I wonder what happened. No problem.

Idk, I just tried to open it one last time and it worked

Jump-Suit commented 3 years ago

Simple installation worked for me @Deltara3 your amazing thank you very much!

deejbruce commented 3 years ago

Can confirm, @Deltara3 The fix worked for me too.

Deltara3 commented 3 years ago

Nice, @Jump-Suit and @deejbruce, haven't been online for a bit, so I just saw it now, no problem though.

Amieew0 commented 3 years ago

Is there a way to add the icons? i'm sorry for my bad English, i'm Argentina. Thanks Deltara3. it worked!

Deltara3 commented 3 years ago

Is there a way to add the icons? i'm sorry for my bad English, i'm Argentina. Thanks Deltara3. it worked!

No problem, but I'm sure the icons sadly can't be added, due to limitations of the older version.

PabloGirol commented 3 years ago

Any official updates about this?, will the ps3/vita support be dropped?

Alexis1887 commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

I just tried to do this and even though it successfully worked, like im showing up online now, this error message pops up every time. I tried it again but it still did this. Idk if i did something wrong twice (I'm not great at coding)

Here's the log: [2021-03-17 21:30:07.914] [error] An error occurred while communicating with Discord Error: RPC_CONNECTION_TIMEOUT at Timeout.setTimeout (C:\Program Files\PlayStationDiscord\resources\app.asar\node_modules\discord-rpc\src\client.js:99:47) at ontimeout (timers.js:425:11) at tryOnTimeout (timers.js:289:5) at unrefdHandle (timers.js:509:7) at Timer.processTimers (timers.js:211:12) [2021-03-17 21:30:12.009] [warn] DiscordController disconnected

image

Deltara3 commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

I just tried to do this and even though it successfully worked, like im showing up online now, this error message pops up every time. I tried it again but it still did this. Idk if i did something wrong twice (I'm not great at coding)

Here's the log: [2021-03-17 21:30:07.914] [error] An error occurred while communicating with Discord Error: RPC_CONNECTION_TIMEOUT at Timeout.setTimeout (C:\Program Files\PlayStationDiscord\resources\app.asar\node_modules\discord-rpc\src\client.js:99:47) at ontimeout (timers.js:425:11) at tryOnTimeout (timers.js:289:5) at unrefdHandle (timers.js:509:7) at Timer.processTimers (timers.js:211:12) [2021-03-17 21:30:12.009] [warn] DiscordController disconnected

image

To me that looks like something to do with Discord or possibly the application id's are incorrect. I made a repository with the patch already done. You just have to replace the asar file after downloading the patched one. I would try that, if that doesn't work it's got to be something with Discord.

Alexis1887 commented 3 years ago

I found a workaround for this. I used the 3.1.1 code and replaced the old PS3 client id with the new one and it works, but I don't have the other consoles to test them. image

How did you go about doing this? I'm tempted to do this myself until this issue is properly fixed.

I downloaded the 3.1.1 code from here and replaced the old PS3 ID with the new one from this commit on the PlayStation3.ts file. Ran npm install and npm run start on PowerShell and it works.

This didn't work for me. But I found a different solution. What worked was this. Uninstalled the current PlayStationDiscord program and installed 3.1.2. Opened File Explorer and navigated to C:\Program Files\PlayStationDiscord\resources. Deleted app-update.yml in the resources folder (this is to prevent PlayStationDiscord from updating). Copied the app.asar to my Desktop (any path is fine). Opened Command Prompt and used the cd command to navigate to my Desktop (or the path you chose). I then ran npx asar extract app.asar extracted. Navigate to the extracted folder and inside that folder navigate to Consoles. Open PlayStation3.js and/or PlayStationVita in a text editor. Look for a long string of numbers. Replace just those numbers for both consoles. PlayStation 3: 772576154267549717, PlayStation Vita: 772576212782546975. After that, save the files and proceed. If you closed Command Prompt, open it again and navigate to the directory you extracted the files at. Make sure not to enter the extracted files directory. Delete the previous app.asar file. Then run npx asar pack extracted app.asar. After that replace the app.asar file in C:\Program Files\PlayStationDiscord\resources and you're done!

I just tried to do this and even though it successfully worked, like im showing up online now, this error message pops up every time. I tried it again but it still did this. Idk if i did something wrong twice (I'm not great at coding) Here's the log: [2021-03-17 21:30:07.914] [error] An error occurred while communicating with Discord Error: RPC_CONNECTION_TIMEOUT at Timeout.setTimeout (C:\Program Files\PlayStationDiscord\resources\app.asar\node_modules\discord-rpc\src\client.js:99:47) at ontimeout (timers.js:425:11) at tryOnTimeout (timers.js:289:5) at unrefdHandle (timers.js:509:7) at Timer.processTimers (timers.js:211:12) [2021-03-17 21:30:12.009] [warn] DiscordController disconnected image

To me that looks like something to do with Discord or possibly the application id's are incorrect. I made a repository with the patch already done. You just have to replace the asar file after downloading the patched one. I would try that, if that doesn't work it's got to be something with Discord.

Worked perfectly, tysm for the help. I guess the problem was the .asar file.