Repository navigation
Home
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.
-
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_NotifyIconWand popup menu viaFiddle(kernel32.dll,user32.dll,shell32.dll) withTaskbarCreatedrecovery. -
Linux: Pure-Ruby D-Bus
org.kde.StatusNotifierItem+com.canonical.dbusmenuover the session bus (KDE Plasma,GNOMEwith AppIndicator,COSMIC,XFCE).
-
Windows: Native Win32
-
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
.exeinstaller (RubyLock-RPC-Setup-v1.3.0-win64.exe), a Linux.tar.gzbundle with native ELF wrapper and GUI/CLI installer (zenity/kdialog/ terminal), and a verified GitHub Releases auto-updater.
Requires Ruby 3.2+ (tested on Ruby 3.4) and Deadlock launched with -condebug.
- Download
RubyLock-RPC-Setup-v1.3.0-win64.exefrom GitHub Releases. - Run the installer to extract RubyLock RPC to
%LOCALAPPDATA%\RubyLock-RPCand create "RubyLock RPC" Desktop and Start Menu shortcuts. - Double-click "RubyLock RPC" on your Desktop to start Discord Rich Presence and launch Deadlock via Steam with
-condebug.
tar -xzf rubylock-rpc-linux-x86_64.tar.gz
cd rubylock-rpc-linux-x86_64
./install.sh
rubylock-rpcTo start RubyLock RPC automatically whenever you click Play in Steam, set Deadlock's Properties -> Launch Options to:
rubylock-rpc --launch-with-command -- %command%| 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 |
- Repository: github.com/buntatoes/rubylock-rpc
- Latest Release: github.com/buntatoes/rubylock-rpc/releases/latest
- Author Website: buntatoes.dev
- Issue Tracker: github.com/buntatoes/rubylock-rpc/issues
- Contributing Guide: CONTRIBUTING.md
Copyright (c) 2026 Buntato (buntatoes). RubyLock RPC is free software licensed under the GNU General Public License v3.0 (GPL-3.0), based on the upstream GPL-3.0 project HeyTariq/deadlock-rpc. Not affiliated with or endorsed by Valve Corporation.
Getting Started
Core Architecture
- Architecture and Internals
- Deadlock Detection and State Machine
- Discord IPC and Rich Presence
- System Tray and Auto-Updater
Safety, Dev & Support
Links