Repository navigation
Configuration and Usage
EU5 RPC works out of the box with zero configuration, creating a default config.toml automatically on first run. Every option can be customized via config.toml, CLI flags, or the persistent system tray menu.
EU5 RPC resolves its data directory (config.resolveDataDir) automatically per platform:
| Platform | Resolution Order | Default Path |
|---|---|---|
| Windows | 1. Directory containing eu5-rpc.exe if writable (portable or standard %LOCALAPPDATA%\EU5-RPC install)2. %LOCALAPPDATA%\EU5-RPC3. %USERPROFILE%\AppData\Local\EU5-RPC
|
%LOCALAPPDATA%\EU5-RPC\config.toml |
| Linux | 1. $XDG_CONFIG_HOME/eu5-rpc2. $HOME/.config/eu5-rpc
|
~/.config/eu5-rpc/config.toml |
You can open this folder at any time by clicking Open Config Folder in the system tray menu, or regenerate a fresh default configuration file with:
eu5-rpc --generate-configWarning
Running --generate-config overwrites your existing config.toml with the built-in defaults. Back up custom templates first if you want to keep them.
Below is the exact default config.toml written by config.zig:
[general]
# Leave blank to automatically link with Discord's built-in Europa Universalis V application.
discord_app_id = ""
launch_game_on_start = true
exit_when_game_closes = false
auto_update = true
poll_interval_ms = 1000
discord_update_interval_s = 5
# Override Paradox user data folder if auto-detection fails.
# Example: Documents\Paradox Interactive\Europa Universalis V
user_data_folder = ""
config_version = 1
[presence]
show_game_version = true
show_historical_age = true
show_live_events = true
show_session_timer = true
[presence.status]
game_not_running = "Not Running"
loading = "Loading Europa Universalis V..."
in_main_menu = "Browsing the Main Menu"
# Supports {country}, {tag}, {year}, {date}, {age}
in_game_with_country = "Playing as {country} ({year})"
in_game_unknown_country = "In Campaign ({year})"
observing = "Observing the World ({year})"
[images]
# Direct HTTPS image URL or Discord Art Asset key.
large_image = "https://raw.githubusercontent.com/buntatoes/eu5-rpc/main/assets/icon.png"
large_image_tooltip = "Europa Universalis V"
small_image = ""
small_image_tooltip = "EU5 RPC"| Key | Type | Default | Range / Notes |
|---|---|---|---|
discord_app_id |
string | "" |
Leave blank to use Discord's built-in official EU5 App ID (1435327845051400292). Set a custom Discord Developer Portal Application ID to use custom art asset keys. |
launch_game_on_start |
bool | true |
Automatically launches Europa Universalis V via Steam when eu5-rpc starts (skipped if EU5 is already running or --no-launch is passed). |
exit_when_game_closes |
bool | false |
When true, EU5 RPC exits automatically after Europa Universalis V closes (unless --keep-open is passed). Default false keeps the tray icon ready for your next session. |
auto_update |
bool | true |
Runs a non-blocking GitHub Releases check on startup (skipped with --no-update). |
poll_interval_ms |
int | 1000 |
Main loop telemetry polling interval in milliseconds. Accepted config range: 1–60000, clamped to a minimum of 250 ms at runtime. |
discord_update_interval_s |
int | 5 |
Minimum seconds between consecutive Discord SET_ACTIVITY updates when state changes. Accepted config range: 1–3600, minimum 1 s at runtime. |
user_data_folder |
string | "" |
Optional manual path to Paradox's EU5 user data directory (the folder containing logs/, save games/, and continue_game.json). Leave empty for automatic detection. Use single quotes on Windows paths (e.g. 'D:\Documents\Paradox Interactive\Europa Universalis V') or double backslashes (\\). |
config_version |
int | 1 |
Internal schema version marker (CURRENT_CONFIG_VERSION = 1). |
| Key | Type | Default | Effect |
|---|---|---|---|
show_game_version |
bool | true |
Appends v<version> (e.g., v1.4.9) to the Discord state line across loading, main menu, lobby, and in-game phases. |
show_historical_age |
bool | true |
Displays the historical Age corresponding to the current year (e.g., Age of Renaissance) when no live event is active. |
show_live_events |
bool | true |
Displays live wars, civil wars, explorations, disasters, or localized Steam Rich Presence status descriptions in the state line. |
show_session_timer |
bool | true |
Sends the Unix start timestamp (timestamps.start) so Discord displays an elapsed playtime counter (01:23:45 elapsed). |
| Key | Default | Used When |
|---|---|---|
game_not_running |
"Not Running" |
Game is not running (used in --once output / fallback) |
loading |
"Loading Europa Universalis V..." |
Splash screen or loading screen |
in_main_menu |
"Browsing the Main Menu" |
Main menu |
in_game_with_country |
"Playing as {country} ({year})" |
Active campaign with a detected country name |
in_game_unknown_country |
"In Campaign ({year})" |
Active campaign before a country is identified |
observing |
"Observing the World ({year})" |
Active campaign in Observer mode |
The in-game templates (in_game_with_country, in_game_unknown_country, observing) support five substitution tokens handled by config.applyVars:
| Token | Example Value | Fallback if Unavailable |
|---|---|---|
{country} |
Kingdom of France or France
|
"" |
{tag} |
FRA |
"" |
{year} |
1454 |
1337 |
{date} |
1453.5.29 or 1 May, 1337
|
Falls back to {year}
|
{age} |
Age of Renaissance |
"" |
In GameState.formatPresence (src/game_state.zig), the secondary Discord line (state) is joined with " · ":
-
Live Event vs. Historical Age: If
show_live_events = trueand an active event/status is present (e.g.,At War with BurgundyorDisaster: Succession Crisis), it takes the first slot. Otherwise, ifshow_historical_age = trueand the year is>= 1337, the historical Age (e.g.,Age of Renaissance) fills that slot. -
Campaign Mode: Always appended in lobby and in-game phases:
SingleplayerMultiplayerMultiplayer (Host)ObserverMultiplayer Observer
-
Game Version: If
show_game_version = trueand the game version is known,v<version>is appended last.
Example outputs:
- Live event active:
Playing as France (1454)/At War with Burgundy · Multiplayer (Host) · v1.4.9 - No live event:
Playing as France (1454)/Age of Renaissance · Multiplayer (Host) · v1.4.9 - Country selection lobby:
Choosing Country: Portugal/Singleplayer · v1.4.9
| Key | Default | Notes |
|---|---|---|
large_image |
https://raw.githubusercontent.com/buntatoes/eu5-rpc/main/assets/icon.png |
Direct HTTPS image URL or Discord Art Asset key |
large_image_tooltip |
"Europa Universalis V" |
Hover tooltip shown on the large image |
small_image |
"" |
Optional badge image URL or Art Asset key (omitted when empty) |
small_image_tooltip |
"EU5 RPC" |
Hover tooltip shown on the small image (only sent if small_image is non-empty) |
All command-line flags implemented in src/main.zig:
| Flag | Description |
|---|---|
--no-launch |
Skip launching Europa Universalis V via Steam on startup |
--keep-open |
Keep EU5 RPC running after Europa Universalis V closes (overrides exit_when_game_closes = true) |
--no-tray |
Run headless without starting the persistent system tray icon |
--no-update |
Skip the automatic background GitHub update check on startup |
--check-update |
Query GitHub Releases for a newer version (or legacy Ruby install), print the result, and exit |
--update |
Download and install the latest Zig release from GitHub Releases and exit |
--once |
Probe current EU5 telemetry once (implies --no-launch), print Details: and State:, and exit |
--launch-with-command -- <cmd> |
Spawn a custom game command (designed for Steam %command% launch options) |
--generate-config |
Write a fresh default config.toml to the resolved config path and exit |
--install |
Install binary, icon, and XDG .desktop entry to ~/.local (or $PREFIX) on Linux and exit |
--uninstall |
Remove installed binary, symlink, icon, and XDG .desktop entry on Linux and exit |
-v, --version
|
Print eu5-rpc v4.1.0 and exit |
-h, --help
|
Print CLI usage summary and exit |
Unless --no-tray is passed, EU5 RPC runs a persistent tray icon on a dedicated background thread:
| Menu Item | Action |
|---|---|
EU5 RPC v4.1.0 - <live status> |
Disabled status header synced with your current presence (or Waiting for Europa Universalis V) |
| Launch Europa Universalis V | Launches EU5 via Steam (disabled while the game is already running) |
| Check for Updates | Runs an on-demand GitHub Releases check and shows a desktop/balloon notification with the result |
| Open Config Folder | Opens the directory containing config.toml and logs/ in Windows Explorer or Linux xdg-open
|
| Quit (Close EU5 & RPC) | Disconnects Steam IPC, clears Discord Rich Presence, gracefully closes Europa Universalis V (WM_CLOSE / SIGTERM with 3s fallback), and exits EU5 RPC |
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