[WIP] DiscordRPC for GZDoom

Software projects like source ports (EDGE, Eternity, etc), launchers like ZDL, and other useful utilities belong in this forum.
Forum rules
The Projects forums are ONLY for YOUR PROJECTS! If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.

[WIP] DiscordRPC for GZDoom

Postby Phate6660 » Thu Jul 09, 2020 11:11 am

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.
Last edited by Phate6660 on Wed Jul 22, 2020 1:55 pm, edited 2 times in total.
User avatar
Phate6660
 
Joined: 09 Jul 2020
Discord: Phate6660#6270
Github ID: Phate6660
Operating System: Other Linux 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Postby frozenfoxx » Mon Jul 20, 2020 3:13 pm

Sure looks nifty to me, I'll give it a shot!
User avatar
frozenfoxx
 
Joined: 20 Jul 2020
Github ID: frozenfoxx

Re: [WIP] DiscordRPC for GZDoom

Postby Phate6660 » Mon Jul 20, 2020 4:55 pm

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
Phate6660
 
Joined: 09 Jul 2020
Discord: Phate6660#6270
Github ID: Phate6660
Operating System: Other Linux 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Postby Rachael » Mon Jul 20, 2020 10:50 pm

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.
User avatar
Rachael
Webmaster
 
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [WIP] DiscordRPC for GZDoom

Postby SanyaWaffles » Tue Jul 21, 2020 12:23 am

this is quite neat. I wonder if there's a way to extend this a bit for other projects involving GZDoom.
User avatar
SanyaWaffles
Wouldn't be an epic gamer if I didn't commit a few war crimes.
 
Joined: 25 Apr 2013
Location: Eastern Ohio
Discord: SanyaWaffles#5095
Twitch ID: sanyawaffles
Operating System: Windows 10/8.1/8/201x 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: [WIP] DiscordRPC for GZDoom

Postby Phate6660 » Tue Jul 21, 2020 9:18 am

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
Phate6660
 
Joined: 09 Jul 2020
Discord: Phate6660#6270
Github ID: Phate6660
Operating System: Other Linux 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Postby Redneckerz » Tue Jul 21, 2020 1:54 pm

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
Redneckerz
To it's ports i may have seen
Spotlight Team
 
Joined: 25 Nov 2019
Discord: Redneckerz#8399
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Legacy GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Postby Phate6660 » Tue Jul 21, 2020 2:29 pm

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
Phate6660
 
Joined: 09 Jul 2020
Discord: Phate6660#6270
Github ID: Phate6660
Operating System: Other Linux 64-bit
Graphics Processor: nVidia (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Postby Redneckerz » Thu Jul 23, 2020 3:01 pm

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. :)
User avatar
Redneckerz
To it's ports i may have seen
Spotlight Team
 
Joined: 25 Nov 2019
Discord: Redneckerz#8399
Operating System: Windows Vista/7/2008 64-bit
Graphics Processor: nVidia (Legacy GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Postby UltraMeep!!!! » Wed Aug 19, 2020 12:52 am

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
UltraMeep!!!!
 
Joined: 27 May 2019
Operating System: Windows 10/8.1/8/201x 64-bit
Graphics Processor: ATI/AMD (Modern GZDoom)

Re: [WIP] DiscordRPC for GZDoom

Postby Phate6660 » Thu Aug 20, 2020 4:12 pm

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
Phate6660
 
Joined: 09 Jul 2020
Discord: Phate6660#6270
Github ID: Phate6660
Operating System: Other Linux 64-bit
Graphics Processor: nVidia (Modern GZDoom)


Return to Software and Ports

Who is online

Users browsing this forum: No registered users and 0 guests