Skip to content

Troubleshooting and FAQ

buntatoes edited this page Nov 28, 2026 · 1 revision

Troubleshooting and FAQ


Quick Diagnostics

1. Probe Live Telemetry Once (--once)

Run EU5 RPC in single-shot probe mode while Europa Universalis V is open to see exactly what EU5 RPC detects without modifying Discord or launching the game:

eu5-rpc --once

Expected output while in-game:

Details: Playing as Kingdom of France (1454)
State:   Age of Renaissance · Singleplayer · v1.4.9

2. Inspect the Runtime Log (logs/eu5-rpc.log)

EU5 RPC writes timestamped ISO-8601 UTC logs on every run:

  • Windows: %LOCALAPPDATA%\EU5-RPC\logs\eu5-rpc.log (or next to eu5-rpc.exe for portable runs)
  • Linux: ~/.config/eu5-rpc/logs/eu5-rpc.log (or $XDG_CONFIG_HOME/eu5-rpc/logs/eu5-rpc.log)

Look for key diagnostic lines:

  • [config] Loaded from ... — confirms which config.toml was loaded
  • [eu5] Detected Paradox user data folder: ... — confirms where EU5 logs and saves are read from
  • [process] Europa Universalis V detected (eu5.exe) — confirms process detection succeeded
  • [discord] Connected! — confirms local Discord IPC handshake succeeded
  • [rpc] phase=... details="..." state="..." — confirms each activity pushed to Discord

Tip

On Linux, logs also print directly to stdout when running eu5-rpc from a terminal.


Common Issues

Discord Is Not Showing My Rich Presence

  1. Check Discord Activity Privacy: In Discord go to User Settings -> Activity Privacy and make sure Share your detected activities with others is enabled.
  2. Use the Desktop Discord Client: Browser-only Discord tabs do not expose local IPC pipes/sockets. On Linux, native Discord, Canary, PTB, Flatpak Discord/Vesktop/ArmCord/Equibop/Legcord, and Snap Discord are all supported.
  3. Flatpak / Snap Socket Sandbox on Linux:
    • EU5 RPC automatically probes $XDG_RUNTIME_DIR/app/<flatpak-id>/discord-ipc-0..9 and $XDG_RUNTIME_DIR/snap.discord*/discord-ipc-0..9.
    • If you run a custom Flatpak Discord client not in the default list, ensure its IPC socket is bridged into $XDG_RUNTIME_DIR/discord-ipc-0 (e.g., via xdg-runtime socket permissions).
  4. Custom discord_app_id: If you edited discord_app_id in config.toml, try resetting it to "" so EU5 RPC uses Discord's official EU5 catalog ID (1435327845051400292).
  5. Discord Started After EU5 RPC: EU5 RPC retries Discord IPC every 10 seconds automatically — wait 10 seconds after Discord finishes starting.

Country or Year Shows "In Campaign (1337)" or Doesn't Update

  1. Steam Client Running & Online: Passive Steam Rich Presence reads live strings directly from your local Steam client (steamclient64.dll / steamclient.so). If Steam is running in Offline Mode or EU5 was launched outside Steam, EU5 RPC falls back to logs/multiplayer.log, logs/game.log, and session .eu5 save headers.
  2. User Data Folder Not Auto-Detected:
    • Check logs/eu5-rpc.log for Detected Paradox user data folder.
    • If you use a non-standard Wine prefix, custom Drive/OneDrive location, or alternate Paradox data path, set user_data_folder explicitly in config.toml:
      [general]
      # Windows example (use single quotes to avoid backslash escaping):
      user_data_folder = 'D:\Documents\Paradox Interactive\Europa Universalis V'
      [general]
      # Linux Proton example:
      user_data_folder = "/mnt/games/SteamLibrary/steamapps/compatdata/3450310/pfx/drive_c/users/steamuser/Documents/Paradox Interactive/Europa Universalis V"
  3. Old Saves Ignored Intentionally: By design, LogWatcher.refreshSaveMetadata() ignores .eu5 saves whose modification time predates the current EU5 RPC session (session_started_at - 5s) so loading the main menu never displays yesterday's campaign. Once you enter a campaign or save/autosave, live telemetry updates immediately.

Linux System Tray Icon Does Not Appear

  • GNOME: GNOME does not display StatusNotifierItem (AppIndicator) tray icons by default. Install and enable the AppIndicator and KStatusNotifierItem Support GNOME Shell extension.
  • Minimal Window Managers (Sway, Hyprland, i3, etc.): Ensure a StatusNotifierHost bar such as Waybar (tray module), Hyprpanel, or Swaybar is running.
  • libdbus-1.so.3 Missing: EU5 RPC loads libdbus-1.so.3 dynamically at runtime. If it is absent (e.g., on a headless system), the tray gracefully no-ops while Rich Presence continues working normally.
  • Disable Tray Explicitly: Pass --no-tray if you prefer running strictly in the background or terminal.

Windows SmartScreen Shows "Windows protected your PC"

Release .exe files are unsigned open-source binaries compiled directly from this repository in pure Zig. You can:

  • Click More info -> Run anyway, or
  • Inspect the source code and compile the installer locally with zig build package (see Build and Packaging).

Auto-Updater Fails or Cannot Replace the Binary

  • Run eu5-rpc --check-update to see if GitHub Releases is reachable from your network.
  • On Linux, self-updating requires write permission to the directory containing the running eu5-rpc binary (true for default ~/.local/share/eu5-rpc/eu5-rpc installs; if installed to a root-owned path like /usr/local/bin, download the new .tar.gz and reinstall manually or run with --no-update).
  • On Windows, if an older eu5-rpc.exe.old exists, EU5 RPC removes it automatically on the next launch (cleanupOldBinary()).
  • You can disable startup update checks permanently by setting auto_update = false in config.toml or passing --no-update.

Frequently Asked Questions

Is EU5 RPC safe with VAC, Anti-Cheat, Ironman, and Steam Achievements?

Yes. EU5 RPC is 100% external and read-only during gameplay:

  • Never calls ReadProcessMemory or opens /proc/<pid>/mem
  • Never calls ptrace, injects DLLs, or hooks game code
  • Never modifies save files, game files, or campaign checksums
  • Never calls SteamAPI_Init

Does EU5 RPC collect telemetry or send personal data anywhere?

No. As documented in SECURITY.md, EU5 RPC only communicates locally with your Steam client, local EU5 log/save files, and local Discord desktop IPC. The only outbound network request is the optional GitHub Releases update check (https://api.github.com/repos/buntatoes/eu5-rpc/releases/latest), which can be disabled via auto_update = false or --no-update.

Does EU5 RPC stay open after I close Europa Universalis V?

By default (exit_when_game_closes = false), EU5 RPC clears your Discord presence when EU5 closes and stays in your system tray so you can launch EU5 again anytime. Set exit_when_game_closes = true in config.toml if you want it to exit automatically when the game closes, or click Quit (Close EU5 & RPC) in the tray menu to close both at once.

Where should I report bugs or security issues?

Clone this wiki locally