GwyndolynMarchant / zgame-discordrpc

DiscordRPC for GZDoom/LZDoom/Raze, written in Rust.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zgame-discordrpc

license

A discordrpc client for ZDoom and Raze written in Rust.

Possibly cross-platform support? It works on Windows. I haven't personally tested it otherwise.

I forked this because:

  1. DiscordRPC for Raze and GZDoom is still WIP
  2. I play a lot of WADs for friends in Discord.
  3. This was a fun way to learn Rust.

How it works

  1. Program reads first argument
  2. Program connects to Discord via RPC
  3. It then looks for a zgame process based on supplied argument, and parses it's window title ("level - game/mod")
  4. It is separated into an &str vector
  5. The icon will be the logo for the game/mod, the status will be the game and level, and the hover text will be the engine
  6. Program loops every 15 secs, looping every second would be overkill

Supported Engines

  • GZDoom
  • LZDoom
  • Raze

Running

Currently there are no builds available, so you'll have to work from source.

  1. First make sure that a supported engine is running.
  2. git clone https://github.com/Phate6660/gzdoom-discordrpc
  3. cd gzdoom-discordrpc
  4. cargo run -- ENGINE

Screenshots

DOOM:

DOOM

DOOM (with LZDoom):

DOOM

DOOM II:

DOOM II

Project Brutality:

Project Brutality

About

DiscordRPC for GZDoom/LZDoom/Raze, written in Rust.

License:Other


Languages

Language:Rust 100.0%