@echo off setlocal cd /d "%~dp0" echo Testing the pipe connection first (PING)... python -m x4_advisor.live --ping-only if errorlevel 1 ( echo. echo Connection test failed -- see the message above. echo Checklist: X4 running, x4_advisor_bridge extension enabled, echo Protected UI Mode OFF, game restarted after any of those changed. pause exit /b 1 ) echo. echo Connection OK. Fetching a full snapshot... python -m x4_advisor.live if errorlevel 1 ( pause exit /b 1 ) echo. echo Done. Opening x4_advisor_live_report.md ... start "" "x4_advisor_live_report.md" pause