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

EU5 RPC Logo

EU5 RPC Wiki

EU5 RPC (v4.1.0) is a lightweight, zero-dependency Discord Rich Presence companion for Europa Universalis V, written 100% in pure Zig (0.17.1+) for Windows and Linux (Native & Proton) and licensed under the GNU General Public License v3.0 (GPL-3.0-only).

It automatically displays your current country, in-game year, historical Age (all six Ages starting from 1337), campaign mode (Singleplayer, Multiplayer, Multiplayer (Host), Observer, Multiplayer Observer), game version, and live wars, civil wars, explorations, or disasters on your Discord profile — including mid-game nation swaps, formable nations, and custom nations — with zero Discord Developer Portal setup required.

EU5 Discord Rich Presence Preview

Note

100% VAC-Safe, Ironman-Safe, and Read-Only: EU5 RPC is strictly external and read-only during gameplay. It never calls ReadProcessMemory, never injects DLLs or hooks game code, never opens /proc/<pid>/mem or calls ptrace, never modifies save files or game checksums, and never calls SteamAPI_Init.


Highlights

  • 100% Pure Zig with Zero Runtime Dependencies: Every subsystem — the telemetry daemon, Discord IPC client, persistent system tray, GitHub auto-updater, custom TOML config parser, Windows GUI setup installer, Linux desktop integrator, and USTAR .tar.gz release packager — is implemented directly in Zig (17 source files, 8,964 lines of Zig).
  • Zero-Setup Discord Linking: Connects locally over Windows named pipes or Linux Unix domain sockets using Discord's official public Europa Universalis V catalog ID (1435327845051400292), across native Discord, Canary, PTB, Flatpak, Snap, Vesktop, ArmCord, Equibop, and Legcord.
  • Multi-Source Live Telemetry:
    • Passive Steam Rich Presence polling across all 11 official EU5 languages (English, Brazilian Portuguese, French, German, Japanese, Korean, Polish, Russian, Simplified Chinese, Spanish, and Turkish) scoped to Steam AppID 3450310.
    • Live incremental log tailing (logs/debug.log, logs/multiplayer.log, logs/game.log) and session-scoped continue_game.json / .eu5 save header inspection.
    • Dynamic CountryLookup loading localized nation and formable names directly from your local EU5 installation, backed by a 54-tag fallback table.
  • Persistent System Tray: Native Win32 Shell_NotifyIconW (with TaskbarCreated auto-recovery) on Windows and D-Bus org.kde.StatusNotifierItem + com.canonical.dbusmenu (via dynamically loaded libdbus-1.so.3) on Linux, featuring live status tooltips and quick actions (Launch Europa Universalis V, Check for Updates, Open Config Folder, and Quit (Close EU5 & RPC)).
  • Built-In GitHub Auto-Updater & Legacy Ruby Migration: Checks GitHub Releases via Zig's built-in std.http.Client (pure Zig TLS), validates trusted GitHub asset hosts, applies updates atomically, and cleanly migrates legacy Ruby installs (v0.1–v0.3.3) while preserving config.toml.
  • Cross-Platform & Environment-Agnostic: Full UTF-16 Unicode and OneDrive-redirected Documents support on Windows 10/11, plus native Linux, Steam Proton, Wine, GE-Proton, Steam Linux Runtime, Gamescope, GameMode, MangoHud, umu-run, Flatpak Steam, Snap Steam, and NixOS steam-run support on Linux.

Quick Start

Windows (.exe Installer)

  1. Download EU5-RPC-Setup-v4.1.0-win64.exe from GitHub Releases.
  2. Run the installer to extract to %LOCALAPPDATA%\EU5-RPC and create "EU5 RPC" shortcuts on your Desktop and Start Menu.
  3. Double-click "EU5 RPC" to launch Europa Universalis V with Discord Rich Presence and the system tray icon.

Linux (.tar.gz Native Binary)

tar -xzf eu5-rpc-linux-x86_64.tar.gz
cd eu5-rpc-linux-x86_64
./eu5-rpc --install
eu5-rpc

Build from Source

Requires only Zig 0.17.1+:

git clone https://github.com/buntatoes/eu5-rpc.git
cd eu5-rpc
zig build test
zig build -Doptimize=ReleaseSafe

Documentation Index

Page Description
Installation and Setup Windows GUI/silent installer, Linux --install/--uninstall, Steam %command% integration, auto-updater, and legacy Ruby migration
Configuration and Usage Complete config.toml schema, template tokens, status formatting rules, CLI flag reference, and persistent system tray actions
Architecture and Internals Pure-Zig module map, main loop data flow, GamePhase state machine, TOML parser, logger, and Windows/Linux tray implementations
Telemetry and Save Parsing Process detection, passive 11-language Steam Rich Presence, live log tailing, .eu5 save header inspection, CountryLookup, and historical Ages
Discord IPC and Rich Presence Binary IPC framing, Windows pipes & Linux native/Flatpak/Snap sockets, SET_ACTIVITY JSON payloads, rate limiting, and custom assets
Build and Packaging Zig 0.17.1+ build graph, unit test suite, zig build package cross-compilation, Windows installer embedding, Linux USTAR .tar.gz packager, and CI
Troubleshooting and FAQ Diagnostics with --once and eu5-rpc.log, Discord IPC & Flatpak/Snap tips, user data folder overrides, tray setup, and VAC/Ironman FAQ

Project Links

Clone this wiki locally