[WIP] DiscordRPC for GZDoom

Things that are still useful but aren't launchers, engines, or editors go here.
User avatar
Phate6660
Posts: 11
Joined: Thu Jul 09, 2020 9:17 am
Graphics Processor: nVidia (Modern GZDoom)

[WIP] DiscordRPC for GZDoom

Post by Phate6660 »

I have written a Discord rich presence client for GZDoom in Rust, and it's even cross-platform. I've personally tested it on Linux and Windows, so I know it works on them.
It should also work with MacOS, however I have absolutely no way to test it.

I'm making this because:
- I could not find a pre-existing DiscordRPC client for it
- This is something I would actively use, which would make developing it that much more fun
- I can actually visualize how I would go about it, unlike most other projects where I feel blind as a bat

Currently, it should support any game with DOOM in the title, as well as Project Brutality.

It has icons for DOOM, DOOM II, The Ultimate DOOM, and Project Brutality.
If none of those games are found, it uses the GZDoom icon.
Also, if LZDoom is used, it uses that icon instead. Regardless of what game is played.

Screenshots:





Repos (they are all the same, the only difference is that I'm more active on codeberg and sourcehut):
- Github
- Codeberg
- sourcehut

How to use:
- Download the binary for your OS. Currently, binaries are available for Linux and Windows. You can obtain them from the releases section of the Github or Codeberg repos.
- Make sure that GZDoom or LZDoom is running, if using GZDoom be sure to be inside of a level.
- Open a terminal (on Windows CMD or PowerShell should work just fine)
- On Linux:

Code: Select all

./gzdoom-dscordrpc ENGINE
- On Windows:

Code: Select all

.\gzdoom-discordrpc.exe ENGINE
- Check your status and see it in action!

ENGINE = gzdoom or lzdoom

I believe I covered everything, however I've been awake for a little too long so I may have missed something.
If there are any questions, criticisms, anything really, please let me know!
I really wanna know what you guys think.
Last edited by Phate6660 on Wed Jul 22, 2020 1:55 pm, edited 2 times in total.
User avatar
frozenfoxx
Posts: 8
Joined: Mon Jul 20, 2020 3:10 pm

Re: [WIP] DiscordRPC for GZDoom

Post by frozenfoxx »

Sure looks nifty to me, I'll give it a shot!
User avatar
Phate6660
Posts: 11
Joined: Thu Jul 09, 2020 9:17 am
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Post by Phate6660 »

Thank you! Let me know what you think of it when you do. Because not gonna lie, it's a little discouraging having a forum post open that nobody responds to. Like at all.
I mean, I get why. I'm sure most people here don't even use Discord. But it is a bit of a downer to see people looking at the post but not responding at all.
User avatar
Rachael
Posts: 13782
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her

Re: [WIP] DiscordRPC for GZDoom

Post by Rachael »

Phate6660 wrote: Because not gonna lie, it's a little discouraging having a forum post open that nobody responds to. Like at all.
Sorry about that, I know how that feels. >.<

If it makes you feel any better though, I think this would actually a useful project, and deserves to have some responses in this thread. :) I'm not that heavy into Discord rich presence, myself, but even still this project definitely does not deserve to be ignored. So, it's nice to see a good idea in motion. :)

Also -
Phate6660 wrote:I'm sure most people here don't even use Discord.


Not too sure where you got the idea that not a lot of us use Discord. :)

I think to be quite honest, this project may have just gone unnoticed. I didn't even know it was here until someone bumped it.
SanyaWaffles
Posts: 819
Joined: Thu Apr 25, 2013 12:21 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Windows 11 for the Motorola Powerstack II
Graphics Processor: nVidia with Vulkan support
Location: The Corn Fields

Re: [WIP] DiscordRPC for GZDoom

Post by SanyaWaffles »

this is quite neat. I wonder if there's a way to extend this a bit for other projects involving GZDoom.
User avatar
Phate6660
Posts: 11
Joined: Thu Jul 09, 2020 9:17 am
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Post by Phate6660 »

Rachael wrote:Not too sure where you got the idea that not a lot of us use Discord. :)
I'm not really sure either, especially because I'm in the server too and can see how many people are in it.
Rachael wrote:If it makes you feel any better though, I think this would actually a useful project, and deserves to have some responses in this thread.
Thank you. And it does.
Rachael wrote:I think to be quite honest, this project may have just gone unnoticed. I didn't even know it was here until someone bumped it.
That's definitely a relief. The post has been up for 11 days now and I had just about come to conclusion that it was being ignored or something.
I'm sure that's not the case now, but it's really easy for the anxiety to build up.
SanyaWaffles wrote:this is quite neat. I wonder if there's a way to extend this a bit for other projects involving GZDoom.
Thanks. I probably could, I'd just need to know a little more.
User avatar
Redneckerz
Spotlight Team
Posts: 1089
Joined: Mon Nov 25, 2019 8:54 am
Graphics Processor: Intel (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Post by Redneckerz »

I swore i responded to this (But i guess that was the introduction thread? Yeah, it was there). Did you miss that by any means?

Because it was/is a good idea, after all :)
User avatar
Phate6660
Posts: 11
Joined: Thu Jul 09, 2020 9:17 am
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Post by Phate6660 »

Redneckerz wrote:Did you miss that by any means?
I saw it, though I didn't respond because I didn't want to stick even more non-introduction stuff in the introduction thread.
Plus, I'm just not very good at conversating. It kinda felt like I would just be dragging on the conversation if I replied.
User avatar
Redneckerz
Spotlight Team
Posts: 1089
Joined: Mon Nov 25, 2019 8:54 am
Graphics Processor: Intel (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Post by Redneckerz »

Phate6660 wrote: I saw it, though I didn't respond because I didn't want to stick even more non-introduction stuff in the introduction thread.
But somebody did respond to your idea, just not in the specific thread. :wink:
Phate6660 wrote: Plus, I'm just not very good at conversating. It kinda felt like I would just be dragging on the conversation if I replied.
Hardly at all. The introduction thread is perfectly adequate for small talk conversation. :)
UltraMeep!!!!
Posts: 1
Joined: Mon May 27, 2019 1:13 pm
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Post by UltraMeep!!!! »

is there any way to fix this?

Code: Select all

thread 'main' panicked at 'index out of bounds: the len is 1 but the index is 1', src\main.rs:35:24
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[/color]
User avatar
Phate6660
Posts: 11
Joined: Thu Jul 09, 2020 9:17 am
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Post by Phate6660 »

Yep, that happens when a window title that wasn't expected or is invalid is attempted to be split into a vector.
Did you make sure you were already in a level? The program expects that the window is already open so it can parse the title right away.
And it also expects the window title to be labelled as "level - game".

I'm sorry for the late response by the way, I have been very oddly busy for some reason lately.
User avatar
onContentStop
Posts: 17
Joined: Tue Aug 25, 2020 12:43 pm
Graphics Processor: nVidia with Vulkan support

Re: [WIP] DiscordRPC for GZDoom

Post by onContentStop »

Hi, is this project still active? I am having the following problem with GZDoom 4.5.0.

Basically, it just exits the program instead of doing anything at all.
[imgur]https://i.imgur.com/1ldEFET.png[/imgur]
User avatar
Doode
Posts: 4
Joined: Sat Oct 31, 2020 9:32 am
Graphics Processor: ATI/AMD (Legacy GZDoom)
Location: Somewhere on the planet Earth

Re: [WIP] DiscordRPC for GZDoom

Post by Doode »

Hey! If this project is still alive, can you make it support Zandronum? I play it pretty much all the time and I can't even launch GZDoom. I hope you can :D
Gez
 
 
Posts: 17933
Joined: Fri Jul 06, 2007 3:22 pm

Re: [WIP] DiscordRPC for GZDoom

Post by Gez »

Nehakakar
Posts: 3
Joined: Wed Sep 04, 2024 7:10 am
Operating System Version (Optional): Window 11
Graphics Processor: Not Listed

Re: [WIP] DiscordRPC for GZDoom

Post by Nehakakar »

For the GZDoom 4.5.0 issue, make sure you're using the latest client version and check the window title format. Adding Zandronum support is a good idea and will be considered for future updates.

Return to “Miscellaneous”