Skip to content
buntatoes edited this page Nov 28, 2026 · 1 revision

RubyLock RPC Logo

RubyLock RPC Wiki

RubyLock RPC (v1.3.0) is a zero-dependency pure-Ruby Discord Rich Presence client for Deadlock. It reads Deadlock's -condebug console log (game/citadel/console.log) to display your live hero, match mode, elapsed match timer, Hideout party size, and game phase on your Discord profile on Windows and Linux, licensed under the GNU General Public License v3.0 (GPL-3.0).

Built by Buntato as a clean pure-Ruby reimplementation based on the upstream GPL-3.0 Rust project HeyTariq/deadlock-rpc, RubyLock RPC runs directly on Ruby 3.2+ (tested on Ruby 3.4) using only the Ruby standard library — no Bundler, no third-party gems, and no native C extensions to compile at install time.

Note

VAC-Safe by Design: RubyLock RPC only tails Deadlock's standard -condebug text log (game/citadel/console.log) and checks whether deadlock.exe appears in the OS process list. It never reads game memory, injects DLLs, modifies game files, or intercepts network traffic. See Development, Safety, and Troubleshooting for details.


Highlights

  • 100% Pure Ruby Core (Zero External Gems): Powered exclusively by Ruby's standard library (json, net/http, socket, fiddle, win32/registry, zlib, rubygems/package, securerandom, open3, fileutils, tmpdir, set, time), including a custom zero-dependency TOML parser/serializer and pure-Ruby D-Bus binary wire protocol implementation.
  • Persistent Native System Tray (Windows & Linux):
    • Windows: Native Win32 Shell_NotifyIconW and popup menu via Fiddle (kernel32.dll, user32.dll, shell32.dll) with TaskbarCreated recovery.
    • Linux: Pure-Ruby D-Bus org.kde.StatusNotifierItem + com.canonical.dbusmenu over the session bus (KDE Plasma, GNOME with AppIndicator, COSMIC, XFCE).
  • Live Deadlock State Tracking: Tracks 8 game phases (NOT_RUNNING, MAIN_MENU, HIDEOUT, IN_QUEUE, MATCH_INTRO, IN_MATCH, POST_MATCH, SPECTATING), 7 match modes (Standard Match, Ranked Match, Street Brawl, Bot Match, Training Range, Hero Labs, plus generic fallback), elapsed match duration, and Hideout party size (up to 6 players).
  • Five Hero Portrait Styles & Offline Fallback: Fetches hero metadata, Hideout flavor lines, and portrait URLs (normal, gloat, critical, icon, fullbody) from the community Deadlock API, backed by a built-in static hero name fallback table.
  • Cross-Platform Discord IPC: Connects directly to the local Discord client over Windows Named Pipes (\\.\pipe\discord-ipc-0..9) or Linux UNIX Domain Sockets (native Discord, Flatpak, Snap, and Vesktop).
  • Turnkey Installers & GitHub Auto-Updater: Ships with a self-contained Windows .exe installer (RubyLock-RPC-Setup-v1.3.0-win64.exe), a Linux .tar.gz bundle with native ELF wrapper and GUI/CLI installer (zenity / kdialog / terminal), and a verified GitHub Releases auto-updater.

Quick Start

Requires Ruby 3.2+ (tested on Ruby 3.4) and Deadlock launched with -condebug.

Windows (.exe Installer)

  1. Download RubyLock-RPC-Setup-v1.3.0-win64.exe from GitHub Releases.
  2. Run the installer to extract RubyLock RPC to %LOCALAPPDATA%\RubyLock-RPC and create "RubyLock RPC" Desktop and Start Menu shortcuts.
  3. Double-click "RubyLock RPC" on your Desktop to start Discord Rich Presence and launch Deadlock via Steam with -condebug.

Linux (.tar.gz Bundle)

tar -xzf rubylock-rpc-linux-x86_64.tar.gz
cd rubylock-rpc-linux-x86_64
./install.sh
rubylock-rpc

Steam Launch Options (Alternative)

To start RubyLock RPC automatically whenever you click Play in Steam, set Deadlock's Properties -> Launch Options to:

rubylock-rpc --launch-with-command -- %command%

Documentation Index

Page Description
Installation and Setup Windows .exe installer, Linux GUI/CLI .tar.gz install, Steam auto-detection, and all three Deadlock launch workflows
Configuration and CLI Complete config.toml schema (config_version = 6), data directories, status template variables, portrait styles, and CLI flags
Architecture and Internals Threading model, runtime data flow, module map, native C host wrapper, custom TOML engine, and logging
Deadlock Detection and State Machine console.log regex patterns, 8-phase state machine, hero lock-in, mode inference, party tracking, and native process monitoring
Discord IPC and Rich Presence Binary IPC framing, Named Pipe / UNIX socket discovery (Flatpak/Snap/Vesktop), activity payloads, Deadlock API, and Statlocker
System Tray and Auto-Updater Win32 Shell_NotifyIconW via Fiddle, pure-Ruby Linux D-Bus SNI/DBusMenu wire protocol, and verified GitHub Release updates
Development, Safety, and Troubleshooting Anti-cheat safety & privacy, Minitest & CI workflow, scripts/package.rb packaging, GPL-3.0 license, and common fixes

Project Links