Page 1 of 1

[WIP] DiscordRPC for GZDoom

PostPosted: Thu Jul 09, 2020 11:11 am
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 allExpand view
./gzdoom-dscordrpc ENGINE

- On Windows:
Code: Select allExpand view
.\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.

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Mon Jul 20, 2020 3:13 pm
by frozenfoxx
Sure looks nifty to me, I'll give it a shot!

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Mon Jul 20, 2020 4:55 pm
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.

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Mon Jul 20, 2020 10:50 pm
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.

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Tue Jul 21, 2020 12:23 am
by SanyaWaffles
this is quite neat. I wonder if there's a way to extend this a bit for other projects involving GZDoom.

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Tue Jul 21, 2020 9:18 am
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.

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Tue Jul 21, 2020 1:54 pm
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 :)

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Tue Jul 21, 2020 2:29 pm
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.

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Thu Jul 23, 2020 3:01 pm
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. :)

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Wed Aug 19, 2020 12:52 am
by UltraMeep!!!!
is there any way to fix this?

Code: Select allExpand view
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

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Thu Aug 20, 2020 4:12 pm
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.

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Fri Jan 08, 2021 7:56 pm
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]

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Sun Nov 14, 2021 11:43 am
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

Re: [WIP] DiscordRPC for GZDoom

PostPosted: Sun Mar 13, 2022 10:11 am
by Gez