Feature: Auto-installer & launcher for DCS export server — simplify setup and device authorization
Create an automated installer and launcher application for the DCS export server (forward_parsed_udp.py) to simplify installation, configuration, device authorization management, and launching of the data forwarding service. This will significantly reduce setup complexity for users and make the app's DCS integration more accessible.
Why
- Current setup requires manual Python environment setup, dependency installation, DCS Scripts folder configuration, and manual editing of
authorized_devices.jsonto add device keys. - Users must run command-line tools with complex arguments (
--host,--port,--bind-ip,--authorized-devices, etc.) which is error-prone and not user-friendly. - Device authorization requires copying public keys from Android logs and manually editing JSON files — a tedious and technical process.
- No unified launcher or service management — users must manually start/stop the forwarder script.
- Improving this UX will make the tactical data pad feature accessible to non-technical users and reduce support burden.
Proposed solution
Build a cross-platform installer/launcher application with GUI and CLI modes that:
- Automatic installation: Detects DCS installation, installs Python dependencies, places export scripts in correct folders, validates setup.
- Device authorization wizard: Provides GUI/CLI workflow to add, remove, and manage authorized devices with QR code scanning or manual key entry.
- Configuration manager: GUI for editing server settings (host, port, bind IP, update interval, encryption settings) with validation and presets.
- Integrated launcher: Start/stop/restart the forwarder service with system tray integration and status monitoring.
- Auto-update: Check for script updates and apply them automatically or with user confirmation.
- Setup validation: Health checks for DCS paths, network connectivity, firewall rules, and authorized device validity.
Architecture & tech stack options
Option A: Python + Qt (PyQt6/PySide6) — Recommended ✅
- Pros: Same language as export scripts, good cross-platform GUI, mature ecosystem, easy packaging with PyInstaller/cx_Freeze.
- Cons: Larger binary size (~30-50MB).
- Best for: Unified codebase, quick iteration, direct integration with existing Python scripts.
Option B: Electron (TypeScript/JavaScript + React)
- Pros: Modern web-based UI, rich component libraries, cross-platform.
- Cons: Very large binary (100MB+), spawns external Python process, higher memory usage.
- Best for: Advanced UI features, web developers familiar with stack.
Option C: Go + Fyne/Wails
- Pros: Small binary (<10MB), fast startup, no Python runtime dependency, native feel.
- Cons: Requires separate Python installation for export scripts, Go/Python interop complexity.
- Best for: Lightweight standalone launcher.
Option D: .NET (C# + WPF/Avalonia)
- Pros: Native Windows integration, good performance, rich UI frameworks.
- Cons: Windows-focused (Avalonia helps but less mature), requires .NET runtime or large self-contained bundle.
- Best for: Windows-only deployment with deep OS integration.
Recommendation: Start with Option A (Python + PyQt6) for fastest development and best integration with existing scripts. Can later add web-based control panel if needed.
Key features
1. Installation wizard
- Detect DCS World installation path (check common locations, registry on Windows).
- Detect or guide user to DCS Saved Games folder (
~\Saved Games\DCS\Scripts). - Install Python dependencies (
pip install cryptography) with virtual environment. - Copy/update export scripts (
Export.lua,forward_parsed_udp.py,crypto_handshake.py) to correct locations. - Validate file placement and permissions.
2. Device authorization manager
- Add device:
- QR code scan (device displays QR with deviceId + publicKey).
- Manual entry (copy/paste deviceId and publicKey from Android app logs).
- Assign friendly name and permissions (receive, send_commands).
- Remove device: Select from list and confirm removal.
- Edit device: Update name, permissions, or notes.
- View devices: List all authorized devices with status (active/inactive), last seen, data usage stats.
- Export/import: Backup and restore
authorized_devices.jsonfor multi-PC setups.
3. Server configuration GUI
- Host/port settings with network interface dropdown.
- Bind IP security selector (localhost, LAN, all interfaces) with warnings.
- Update interval slider (0.1s - 10s).
- Handshake port override.
- Log verbosity level.
- Apply and test button (validates settings without restarting).
4. Launcher & service management
- Start/stop/restart forwarder with live status display.
- System tray icon with quick actions and status indicator.
- Auto-start on Windows boot (optional).
- View live logs with filtering (errors, warnings, info, debug).
- Statistics dashboard: messages sent, active sessions, data rate, errors.
5. Health checks & diagnostics
- DCS installation detected: ✅/❌
- Export scripts installed: ✅/❌
- Python dependencies: ✅/❌
- Firewall rules: ✅/⚠️ (warn if blocked).
- Network connectivity test: ping destination host/port.
- Authorized devices validation: check JSON syntax and key formats.
- Export button for diagnostic report (zip logs + config for support).
6. First-time setup wizard
- Welcome screen with quick setup or advanced mode.
- Step 1: Detect DCS installation.
- Step 2: Install dependencies.
- Step 3: Add first device (QR scan or manual).
- Step 4: Configure network settings.
- Step 5: Test connection with device.
- Step 6: Start forwarder and verify data flow.
Acceptance criteria ✅
- [x] Installer detects DCS paths automatically or guides user through manual selection.
- [x] Dependencies installed automatically in isolated environment (virtualenv or bundled).
- [x] GUI provides device authorization workflow: add, edit, remove, list devices.
- [x] Server starts/stops/restarts reliably from GUI with status feedback.
- [x] Configuration changes validated before applying (network, file paths, JSON syntax).
- [x] Health checks report installation state and suggest fixes for common issues.
- [x] System tray integration provides quick access to start/stop and status.
- [x] Logs viewable in GUI with filtering, scrolling, and export capability.
- [x] Installer packaged as single executable for Windows (MSI/EXE) with optional installers for Linux/macOS.
- [ ] Documentation and video walkthrough of setup process.
Tasks
- [x] Choose tech stack (recommend Python + PyQt6) and prototype basic GUI.
- [x] Implement DCS path detection (check registry, common install locations, user-provided path).
- [x] Build device authorization manager UI: list, add, edit, remove devices with JSON r/w.
- [x] Implement QR code scanning (use
qrcode+ camera or manual paste). - [x] Create server configuration panel with validation (IP/port format, path existence).
- [x] Integrate launcher: spawn
forward_parsed_udp.pyas subprocess, capture stdout/stderr for logs. - [x] Add system tray icon with start/stop/status menu (use
pystrayor Qt tray). - [x] Implement health checks: paths, dependencies, connectivity, firewall warnings.
- [x] Build first-time setup wizard flow with step navigation and progress tracking.
- [x] Add auto-update mechanism (check GitHub releases, download and replace scripts).
- [x] Package application (PyInstaller/cx_Freeze for Windows EXE, AppImage for Linux, DMG for macOS).
- [ ] Write user guide and video tutorial for installation and device pairing.
- [x] Add unit tests for configuration validation, device management, and path detection.
- [ ] Beta testing with non-technical users and collect feedback.
Testing & validation
- Test on clean Windows 10/11 systems without DCS or Python installed.
- Test with multiple DCS installation types (Steam, standalone, OpenBeta).
- Test device pairing workflow with real Android devices.
- Test network scenarios: localhost only, LAN, firewall blocking.
- Validate error handling: missing DCS, invalid paths, network failures, malformed JSON.
- Measure installer size and startup time (target <50MB bundle, <2s startup).
Security considerations
- Installer should not require admin rights unless installing to protected paths (warn user).
- Validate all user inputs (paths, IPs, ports, device keys) before applying.
- Bind to localhost by default; show warnings for LAN/public binding.
- Never store sensitive keys in plaintext logs.
- Validate
authorized_devices.jsonschema and reject invalid entries.
Documentation
- User guide: installation, first device pairing, troubleshooting common issues.
- Video walkthrough: complete setup from installer download to receiving first data on Android app.
- Developer docs: architecture overview, adding new features, packaging instructions.
- FAQ: firewall setup, multi-PC sync, device limit, bandwidth usage.
Future enhancements (post-MVP)
- Web-based control panel (Flask/FastAPI + React) for remote management.
- Multi-user support with per-user device authorization.
- Cloud sync for authorized devices across multiple PCs.
- Integration with DCS mission editor (auto-export theater data, waypoints).
- Performance profiling dashboard (latency, throughput, packet loss).
added in 1.0.25: introduces a full-featured GUI application to simplify setup, configuration, and management of the DCS DataPad server, addressing all requirements. It includes an installation wizard, secure device registration via QR code real-time logging, and robust security enhancements.