Author Topic: XMPlay Discord Status Plugin  (Read 604 times)

Ham62

  • Posts: 2
XMPlay Discord Status Plugin
« on: 4 Aug '20 - 07:11 »
I wrote an XMPlay plugin that sets your "Now Playing" status in Discord to the current track that you're listening to.

I originally based my plugin off the code from xmp-discordrichpres by Cynosphere but realized there was a lot of work to do, so the majority of it was rewritten from scratch.

Features:
    - Three status timer modes (Remaining/Elapsed/Disabled)
    - Automatically detects track seek/pause/stop
    - Show/Hide album date in status
    - Show/Hide XMPlay version in icon alt text

You can download the plugin from here: http://grahamdowney.com/software/XMPlayDiscordStatus/xmp-discordstatus.htm
And I have the code mirrored over on Github here: https://github.com/Ham62/XMPlayDiscordStatus/

Feel free to try it out and tell me any bugs you find!
If you have any suggestions for future updates, feel free to let me know!

Enjoy!

Ian @ un4seen

  • Administrator
  • Posts: 23162
Re: XMPlay Discord Status Plugin
« Reply #1 on: 5 Aug '20 - 17:29 »
Nice work. It has now been added to the XMPlay webpage and support site.

I notice the VC++ 2013 runtime (MSVCR120.DLL) is required. It may be possible to avoid the user needing to have that installed by linking with the MSVCRT files from the Windows Driver Kit. If you would like to try that, the Vista WDK files are available here:

   www.un4seen.com/stuff/msvcrt.zip

Place the i386/msvcrt.lib file in your project's folder and add i386/msvcrt_winxp.obj or i386/msvcrt_win2000.obj to the linker "Additional Dependencies" option.

Ham62

  • Posts: 2
Re: XMPlay Discord Status Plugin
« Reply #2 on: 6 Aug '20 - 04:05 »
Good catch on the runtime thing, and thanks for the files! I think I've got the linking fixed now.

andrumar10

  • Guest
Re: XMPlay Discord Status Plugin
« Reply #3 on: 2 Nov '20 - 19:34 »
Howdy,
Would it be possible for you to throw together a quick walkthrough or installation guide for getting the plugin set up? I managed to find the github repository and went through the process of placing the DLLs in my XMplay folder, adding in the plugin through the Plugins menu, and even adding XMPlay as an application in Discord. I'm still not quite sure what I'm missing to get things running. I feel like I'm missing an obvious step here but I don't quite have the knack to know what.

All the best.


I wrote an XMPlay plugin that sets your "Now Playing" status in Discord to the current track that you're listening to.

I originally based my plugin off the code from xmp-discordrichpres by Cynosphere but realized there was a lot of work to do, so the majority of it was rewritten from scratch.

Features:
    - Three status timer modes (Remaining/Elapsed/Disabled)
    - Automatically detects track seek/pause/stop
    - Show/Hide album date in status
    - Show/Hide XMPlay version in icon alt text

You can download the plugin from here: http://grahamdowney.com/software/XMPlayDiscordStatus/xmp-discordstatus.htm
And I have the code mirrored over on Github here: https://github.com/Ham62/XMPlayDiscordStatus/

Feel free to try it out and tell me any bugs you find!
If you have any suggestions for future updates, feel free to let me know!

Enjoy!

andrumar10

  • Guest
Re: XMPlay Discord Status Plugin
« Reply #4 on: 2 Nov '20 - 19:48 »
Not sure what changed on my end, perhaps closing and opening Discord and XMPlay a few times, but scratch that, performing those three steps got things working for me! Thanks for helping keep XMPlay current and cool to use!
All the Best!



Howdy,
Would it be possible for you to throw together a quick walkthrough or installation guide for getting the plugin set up? I managed to find the github repository and went through the process of placing the DLLs in my XMplay folder, adding in the plugin through the Plugins menu, and even adding XMPlay as an application in Discord. I'm still not quite sure what I'm missing to get things running. I feel like I'm missing an obvious step here but I don't quite have the knack to know what.

All the best.