Universal Stellaris Mod Log Analyzer
Watch your mod's logs in real-time while you play. Catch errors instantly, filter out vanilla noise, and debug faster.
- Live Monitor While You Play - Real-time log streaming in separate windows
- Instant Error Alerts - Beep notification when YOUR mod has errors
- Smart Filtering - Only shows errors from YOUR mod (vanilla filtered out)
- Game Launch Integration - Launches Stellaris via Steam if not running
- Auto-Detection - Finds your Stellaris folder and mods automatically
- Cross-Platform - Works on Windows, Linux, and macOS
- GUI Setup - Easy folder picker, no manual config needed
- Color-Coded Output - Errors red, warnings yellow, success green
- Download/extract the
stelmod-debugfolder - Double-click
stelmod-debug.bat - Run
stelmod-debug.bat setupto configure - Use
stelmod-debug.bat allto check logs
# 1. Download/extract the folder
cd stelmod-debug
# 2. Make executable
chmod +x stelmod-debug.sh
# 3. Run setup (GUI folder picker if zenity/kdialog installed)
./stelmod-debug.sh setup
# 4. Check your logs
./stelmod-debug.sh allDebug while you play! No more alt-tabbing to check logs manually.
Opens 2 real-time monitoring windows that update as you play the game:
| Window | Purpose |
|---|---|
| LOG WATCHER | See your [MYMOD] log messages live as events fire |
| FOCUS ALERTS | Get a BEEP when your mod throws an error |
- Run
stelmod-debug.bat→ Select[2] Monitor - If Stellaris isn't running, it offers to launch via Steam
- Two windows open - position them on a second monitor or to the side
- Play the game - watch logs update in real-time!
- Hear a beep? Check the FOCUS ALERTS window for the error
The tool only shows errors containing your mod folder name:
- ✅
the_living_network/events/ln_spawn.txt→ Shown - ❌
events/nomad_events.txt→ Filtered out - ❌
mod/ugc_12345.mod→ Filtered out (Workshop mods)
| Command | Description |
|---|---|
setup |
Interactive configuration with folder picker |
monitor |
Live monitor - Real-time log watching (Windows) |
errors |
Show error.log entries for your mod |
game |
Show game.log entries matching your prefix |
all |
Show freshness + errors + game logs |
fresh |
Check if logs are newer than your mod files |
summary |
Quick stats on log contents |
help |
Show help message |
stelmod-debug.bat setup # First-time configuration
stelmod-debug.bat all # Full log check
stelmod-debug.bat errors # Just errors
stelmod-debug.bat game # Just game log./stelmod-debug.sh setup # First-time configuration
./stelmod-debug.sh all # Full log check
./stelmod-debug.sh game -n 100 # Last 100 game log entriesThe tool automatically searches these common locations:
Documents\Paradox Interactive\StellarisOneDrive\Documents\Paradox Interactive\StellarisD:throughH:drives (Documents\Paradox Interactive\Stellaris)D:,E:,F:drives (Games\Paradox Interactive\Stellaris)- SteamLibrary paths on secondary drives
~/.local/share/Paradox Interactive/Stellaris(Steam)~/.paradoxinteractive/Stellaris(GOG)
~/Documents/Paradox Interactive/Stellaris~/Library/Application Support/Paradox Interactive/Stellaris
If your folder isn't auto-detected, the setup wizard lets you browse or enter the path manually.
After running setup, configuration is saved:
- Windows:
config.json(JSON format) - Linux/macOS:
config.sh(Shell format)
| Setting | Description |
|---|---|
ModPrefix |
Your log prefix (e.g., "MYMOD" for [MYMOD]) |
StellarisDocs |
Path to Stellaris user data folder |
ModFolder |
Your mod's folder name (for freshness check) |
TailLines |
Number of log lines to show (default: 50) |
ExtraPatterns |
Additional keywords to highlight |
The tool color-codes output for quick scanning:
| Color | Meaning |
|---|---|
| 🔴 Red | Errors, failures |
| 🟡 Yellow | Warnings |
| 🟢 Green | Success, completions |
| 🟣 Magenta | Debug messages |
| 🔵 Cyan | Info, headers |
| ⚪ Gray | Context, hints |
Stellaris game.log contains thousands of messages from:
- Your mod
- Other mods
- Base game & DLCs
Without a prefix, finding your mod's messages is like finding a needle in a haystack:
[14:32:01] Starting galaxy generation...
[14:32:02] Fleet moved to system
[14:32:02] Your mod did something ← WHERE IS THIS?!
[14:32:02] AI evaluated diplomacy...
... 10,000 more lines ...
With a prefix [MYMOD], the tool filters to show ONLY your messages:
[MYMOD] Spawned 5 ships
[MYMOD] Route complete
[MYMOD] ERROR: Fleet has no owner!
| Log File | Filtered By | Purpose |
|---|---|---|
game.log |
Your prefix [MYMOD] |
Find your log messages |
error.log |
Your mod folder name | Find your script errors |
In your mod scripts, always use the same prefix:
# Good - consistent prefix
log = "[MYMOD] Initializing..."
log = "[MYMOD] Spawned 5 ships"
log = "[MYMOD] ERROR: Something failed"
# Bad - inconsistent
log = "MyMod: Starting..."
log = "[MY_MOD] Did something"
# Initialization
log = "[MYMOD] === INITIALIZATION STARTED ==="
# Key decisions
log = "[MYMOD] Selected destination: [solar_system.GetName]"
# Errors with context
log = "[MYMOD] ERROR: Fleet [This.GetName] has no owner!"
Add important keywords to highlight:
- Windows: Edit
config.json, add toExtraPatternsarray - Linux: Edit
config.sh, setEXTRA_PATTERNS="FALLBACK|DIRECT|ORPHAN"
The "fresh" check compares:
- Your mod folder's newest file timestamp
- The game.log modification time
If the log is older than your mod files, you're looking at stale logs from before your latest changes. Reload the game!
- Make sure you've run Stellaris at least once
- Use the folder browser or enter path manually
- Check that the folder contains
logsandmodsubfolders
- Run your mod's initialization event in-game
- Check your log prefix is correct (exact match, case-sensitive)
- Verify logs aren't from a previous session (run
freshcommand)
Run PowerShell as Administrator and execute:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserInstall zenity (GTK) or kdialog (KDE):
# Ubuntu/Debian
sudo apt install zenity
# Fedora
sudo dnf install zenity
# Arch
sudo pacman -S zenitystelmod-debug/
├── stelmod-debug.bat # Windows launcher (double-click)
├── stelmod-debug.ps1 # Windows PowerShell script
├── stelmod-debug.sh # Linux/macOS bash script
├── config.json # Windows config (created by setup)
├── config.sh # Linux config (created by setup)
├── config.example.sh # Example config template
├── README.md # This file
└── .gitignore # Excludes personal configs
MIT - Use freely for any Stellaris modding project.
Made for the Stellaris modding community 🚀


