Giter Site home page Giter Site logo

tustin / playstationdiscord Goto Github PK

View Code? Open in Web Editor NEW
391.0 26.0 102.0 2.92 MB

Discord Rich Presence for PlayStation 4, PlayStation 3, and PlayStation Vita games.

Home Page: https://tustin.dev/PlayStationDiscord/

License: GNU General Public License v3.0

NSIS 0.61% TypeScript 85.23% Dockerfile 0.53% Shell 0.69% SCSS 12.94%
ps3 ps4 vita playstation discord rich presence psn discord-rpc discordapp

playstationdiscord's Introduction

This project is now abandonware due to Discord adding official PlayStation support. Thank you to everyone who has used my software over the last few years. It was fun ✌️

PlayStationDiscord

Actions Status License

Discord Rich Presence for PlayStation 5, PlayStation 4, PlayStation 3, and PlayStation Vita games.

PlayStation 5 PlayStation 4 PlayStation 3 PlayStation Vita
rich presence ps5 img rich presence ps4 img rich presence ps3 img rich presence vita img

Download

Windows and macOS

You can download the compiled build for both of these platforms on the official PlayStationDiscord page. Windows uses a proper installer and macOS has a dmg you can mount and install.

Linux

I don't have any Linux builds because there's too many combinations of Linux to test. If you want to use this on Linux, follow the guide below for developing so you can manually build the application.

Developing

PlayStationDiscord is currently built on Electron using TypeScript. Simply follow the steps below to get it up and running:

  1. git clone https://github.com/Tustin/PlayStationDiscord/
  2. cd into PlayStationDiscord folder
  3. npm install (or yarn install)
  4. npm run start (or yarn start)

Yes, Electron is bloated. But until we have a better way to build cross platform UI applications, we just have to deal with it. Sorry.

playstationdiscord's People

Contributors

bronydell avatar cdietschrun avatar chabala avatar dependabot[bot] avatar ethanc avatar flok avatar jaxonwright avatar m-sterling avatar mankeywitz avatar owenjones avatar roxaloxa avatar tustin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

playstationdiscord's Issues

Vita Support

Is it possible to add Playstation Vita support? Since it can detect what game I play but it says I'm playing on PS4 which is kinda annoying.

Discord Rich Presence quits updating/disappears

There seems to be an issue that only some people are having where after a few seconds, the Discord rich presence status disappears. This is likely due to the new way I'm handling rich presence updates (which is only updating the rich presence when the game status has changed). I don't know if this is the intended way of doing it but it might be worth changing it to see if it helps.

If you are encountering this issue, please reply with the last few lines in your log.log file which can be found in %APPDATA%/PlayStationDiscord/ on Windows and ~/Library/Logs/PlayStationDiscord/ on macOS.

Login problem

Version 1.2.1 works fine, but when using 2.1.0.0 - nothing happens after i am clicking "Login to PSN". Program just freezing and the only way to close it - go to task manager and shut down process. How to fix this login issue? I am using Windows 10 last version.
screenshot_3

Windows Smartscreen + Unknown Publisher

Windows 8.1 doesn't open the install app unless ran in administrator and given access. Windows SmartScreen detects it as an unknown application. Then after agreeing to run the app, the publisher is also unknown.

Also after installing, the app will not open (even when ran in administrator)

Error could not connect

Probably not major but throws errors if you start the program without Discord running. Reporting it, since this didn't happen before the recent update.
psdiscoerror

New Update Available

App claims there's an update available, but link redirects to v.3.0.0
Running Playstation Discord v3.0.0
MacOS Mojave 10.14.5

Discord Server

Is it possible to add this to server side of my discord server? I know the program works on my end as I have the program but it possible to make server side so everyone can use it without having it downloaded?

Command line or text based config support

Hey, so not everyone uses Windows or macOS, or maybe some persons wants to run this app on Linux VPS/raspberry pi to have it working always without high electricity cost.

I was reading README.md and there no mention about text or command line config, I'm away from home now so I cant test if this feature is implemented. This is just little suggestion.

List of domains the app connects to -> Firewall rules

Hi,

I am trying to get this app running from behind a sophisticated, enterprise-grade firewall that does SSL decryption (man in the middle). Could you provide a list of all top level domains the app is connecting to so I can put them on a whitelist on the firewall?

Thank you

Doesn't happen anything.

Hi, I just downloaded the program and when i click on log in with playstation doesn't happen anything. I don't know what to do. I use Windows 10.

Please add AFK not apear when playing

So When I am playing it is showing after couple of minutes AFK (in settings I can enable) please set so when playing ps4 it will disable this option or something like that

No image showing on discord

discordpsissue
There is no image showing of the game im playing, only text, i have the 3.0.0 version installed. It worked of the version before this but now there is no image

False positive with MSE

Getting false positive with microsoft security essentials, it says it has a trojan horse in it, and i'm pretty sure it's a false positive because i've used your software for a month and only got a notification now
fdb3367acc

Program closes after certain time

OS: Windows 10 64 -bit
Playing on: PS3 - Metal Gear Rising: Revengence
UAC: Disabled

The program working okay for me, logs in, recognizes game, it's perfect. However after 10-15 minutes it closes. I suspect it crashes because the mini icon on my taskbar still there and only disappears if I hover my mouse over it. No error message is left.

Wide Menu Bar Icon

Screen Shot 2019-03-08 at 8 00 03 PM

PlaystationDiscord takes up about 8-9 icons on the Menu Bar. Any way this can be shrinked to one icon space?

Crash opening

it crashes when i click the blue button, this is the log which i got from Windows Event Viewer

Aplicación: PlaystationDiscord.exe Versión de Framework: v4.0.30319 exceptión: Flurl.Http.FlurlHttpException en Flurl.Http.FlurlRequest+<HandleExceptionAsync>d__23.MoveNext() en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) en System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(System.Threading.Tasks.Task) en Flurl.Http.FlurlRequest+<SendAsync>d__19.MoveNext() en System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() en Flurl.Http.FlurlRequest+<SendAsync>d__19.MoveNext() en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task) en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task) en Flurl.Http.HttpResponseMessageExtensions+<ReceiveJson>d__01[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].MoveNext()
en System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)
en System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
en PlayStationDiscord.Game+d__0.MoveNext()

Información de la excepción: System.AggregateException
en System.Threading.Tasks.Task.ThrowIfExceptional(Boolean)
en System.Threading.Tasks.Task1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResultCore(Boolean) en System.Threading.Tasks.Task1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].get_Result()
en PlayStationDiscord.MainWindow..ctor()

Información de la excepción: System.Windows.Markup.XamlParseException
en System.Windows.Markup.WpfXamlLoader.Load(System.Xaml.XamlReader, System.Xaml.IXamlObjectWriterFactory, Boolean, System.Object, System.Xaml.XamlObjectWriterSettings, System.Uri)
en System.Windows.Markup.WpfXamlLoader.LoadBaml(System.Xaml.XamlReader, Boolean, System.Object, System.Xaml.Permissions.XamlAccessLevel, System.Uri)
en System.Windows.Markup.XamlReader.LoadBaml(System.IO.Stream, System.Windows.Markup.ParserContext, System.Object, Boolean)
en System.Windows.Application.LoadBamlStreamWithSyncInfo(System.IO.Stream, System.Windows.Markup.ParserContext)
en System.Windows.Application.LoadComponent(System.Uri, Boolean)
en System.Windows.Application.DoStartup()
en System.Windows.Application.<.ctor>b__1_0(System.Object)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
en System.Windows.Threading.DispatcherOperation.InvokeImpl()
en System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
en MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
en System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
en System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
en System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
en MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
en System.Windows.Threading.DispatcherOperation.Invoke()
en System.Windows.Threading.Dispatcher.ProcessQueue()
en System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
en MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
en MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
en System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
en System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
en System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
en MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
en MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
en System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
en System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
en System.Windows.Application.RunDispatcher(System.Object)
en System.Windows.Application.RunInternal(System.Windows.Window)
en System.Windows.Application.Run(System.Windows.Window)
en PlayStationDiscord.App.Main()

`

Swap presence information suggestion

Is it possible to have the rich presence information swapped? It would be great if there was an option to show “Playing nameofgame” and then the specifics of it being on PS4 and time lapsed are on the click/profile. Is the current setup displaying “Playing PlayStation 4” due to a limitation, or preference?

Desktop icon messed up

Not sure why but when it's on the taskbar it's a bit glitched

The program itself works fine, Just looks odd, Wouldn't be much of an issue if I could minimise it to the notification area but that's just a minor issue.

ddnsfox3r5

Doesn't update my status in Discord.

I get signed in and everything but it doesn't actually update my status on Discord. I try playing a game on my PS4 and it doesn't update there either.

Vita status gets stuck in Standby

While it displays the game properly, after closing the game and putting the Vita in sleep mode, the status stays on Online, then eventually goes to Standby, but gets stuck there. PSN reports my account as being offline so I don't know if I did something wrong or maybe my status is getting detected incorrectly.

Actually, as I was typing this out, the program crashed. Upon restart the status was displaying correctly. I suppose just restarting the program after playing with the vita will get it unstuck from Standby.

I'm not exactly sure what info would be relevant for this but I'm on:
Windows 10, build 1809 (October 2018 Update)
.Net 4.5 and 4.6 installed.

Playstation 3 picked up as 4

It appears the latest build showing my PS3 as a PS4 on Discord.

Tried with PSN shop and Dead Space but both displaying as "playing Playstation 4" and game title.

Version: Latest
Windows: 10 x64

I can provide proof if required.

Doesn't open

Program doesn't open. I have not found the solution to the problem in the internet

port to Electron in Mac

hi, i'm actually trying to port your app in Electron to mac, but i'm stuck here :( with this api response

this is my code
image

Status: 400
Headers: {"server":"nginx/1.13.10","content-type":"application/json;charset=UTF-8","x-requestid":"a34c879fbf8ec502bf90738998503ef9","x-correlationid":"f5a95542-831e-4620-ad0d-3ea9c14c69dd","x-content-type-options":"nosniff","x-wily-info":"Clear guid=D12162E20AF292FD5284329812DDD690","x-wily-servlet":"Encrypt1 hR/KG2GOR16aRfvv3/q1AZSLdayXltRsNgwZ0cFcndH+enaUbd5rMqaFFoIXqPOXns4UwF3EgzE6uu4CApI8sOk5Vhj2QkGzbXZTD3ZGhaxZPptxzbzIkY01yVc9/zbIbbpigwm5+Ec12rGMIDk96emuO6MNIu9gsDwGzBD+7a+SngMdjv9goWPKZ5Vk4SC5QVuURoOIIqwyNutO3JOc/w==","cache-control":"no-store","pragma":"no-cache","content-length":"156","date":"Thu, 13 Sep 201804:12:30 GMT","connection":"close"}
Body: {"error":"redirect_uri_mismatch","error_description":"Redirect URI mismatch","docs":"https://auth.api.sonyentertainmentnetwork.com/docs/","error_code":4174}

any idea about how to continue.

thanks.

Update: i fixed it by removing the & from the redirect url.

Program doesn't open

i installed the program, but when i tried to open, it didn't.

i think its because my pc is 64 bits...

Replicating the Discord app

Thanks for the great app. It works great, shame about the limited game icons though. Are you against the idea of people making their own Discord apps for personalization? If you are, I'll just stick to using your program, but if not, could you tell how you setup your rich presence assets because I couldn't get any images to show up on the Discord app. I edited the games.json url to point to my edited fork and uploaded a CUSA_00900_00.jpg rich presence asset (Bloodborne) but it wouldn't work. Am I even on the right track?
And again, if you're against the idea, I'll just delete my app and stick with yours.

(Bloodborne and Red Dead Redemption 2 game icons would be cool though.)

x86 (32 bit) version support.

There's a lot of people who use 32-bit versions until now. Therefore, I request to re-compile the application with x86 configurations since I couldn't do it myself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.