Repository navigation
Home
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.
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.
-
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.gzrelease packager — is implemented directly in Zig (17source files,8,964lines of Zig). -
Zero-Setup Discord Linking: Connects locally over Windows named pipes or Linux Unix domain sockets using Discord's official public
Europa Universalis Vcatalog 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-scopedcontinue_game.json/.eu5save header inspection. - Dynamic
CountryLookuploading localized nation and formable names directly from your local EU5 installation, backed by a 54-tag fallback table.
- 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
-
Persistent System Tray: Native Win32
Shell_NotifyIconW(withTaskbarCreatedauto-recovery) on Windows and D-Busorg.kde.StatusNotifierItem+com.canonical.dbusmenu(via dynamically loadedlibdbus-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 preservingconfig.toml. -
Cross-Platform & Environment-Agnostic: Full UTF-16 Unicode and OneDrive-redirected
Documentssupport 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 NixOSsteam-runsupport on Linux.
- Download
EU5-RPC-Setup-v4.1.0-win64.exefrom GitHub Releases. - Run the installer to extract to
%LOCALAPPDATA%\EU5-RPCand create "EU5 RPC" shortcuts on your Desktop and Start Menu. - Double-click "EU5 RPC" to launch Europa Universalis V with Discord Rich Presence and the system tray icon.
tar -xzf eu5-rpc-linux-x86_64.tar.gz
cd eu5-rpc-linux-x86_64
./eu5-rpc --install
eu5-rpcRequires only Zig 0.17.1+:
git clone https://github.com/buntatoes/eu5-rpc.git
cd eu5-rpc
zig build test
zig build -Doptimize=ReleaseSafe| 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 |
- GitHub Repository: github.com/buntatoes/eu5-rpc
- Latest Release: github.com/buntatoes/eu5-rpc/releases/latest
- Bug Reports & Feature Requests: Issue Templates
- Security Policy: SECURITY.md
- Author Website: buntatoes.dev
Copyright (c) 2026 Buntato (buntatoes.dev). EU5 RPC is free software licensed under the GNU General Public License v3.0 (GPL-3.0-only). Not affiliated with or endorsed by Paradox Interactive AB; Europa Universalis V is a trademark of Paradox Interactive AB.
Getting Started
Architecture & Telemetry
Development & Support
Links