Skip to content

Add logistics mission system plugin#99

Merged
karel26 merged 5 commits intoSpecial-K-s-Flightsim-Bots:developmentfrom
engines-wafu:feature/logistics-plugin
Jan 13, 2026
Merged

Add logistics mission system plugin#99
karel26 merged 5 commits intoSpecial-K-s-Flightsim-Bots:developmentfrom
engines-wafu:feature/logistics-plugin

Conversation

@engines-wafu
Copy link

Summary

New logistics plugin providing an immersive in-game logistics mission system for DCS World servers.

Features

  • Task Management - Create, approve, assign, and track logistics delivery tasks
  • In-Game Integration - View and accept tasks via F10 menu or chat commands
  • F10 Map Overlays - Visual route markers showing pickup, delivery, waypoints with cargo/pilot/deadline info
  • Auto-Completion - Automatic task completion when pilot lands at destination
  • Logbook Integration - Completed tasks credited to pilot's logbook record
  • Warehouse Queries - Query airbase/carrier inventory via Discord commands
  • Coalition-Specific - All markers and tasks are coalition-restricted

Commands

Discord:

  • /logistics create/list/view/approve/deny/cancel - Full task lifecycle management
  • /warehouse status/compare - Query warehouse inventory

In-Game Chat:

  • -tasks - View available tasks
  • -accept <id> - Claim a task
  • -mytask - View assigned task
  • -deliver - Manual completion
  • -abandon - Release task

F10 Menu:

  • View Available Tasks
  • Accept Task (submenu with available tasks)
  • Task Actions (deliver, abandon, details)

Technical Details

  • Database: 4 tables (logistics_tasks, logistics_tasks_history, logistics_markers, logbook_logistics_completions)
  • Lua Integration: Map markers via trigger.action.markToCoalition(), position tracking, landing detection
  • Event Handling: S_EVENT_LAND hook for auto-completion

Configuration

Configurable delivery threshold, marker options, task limits via logistics.yaml.

Test Plan

  • Create task via Discord
  • Approve task and verify map markers appear
  • Accept task in-game via chat command
  • Fly to destination and verify auto-completion on landing
  • Test F10 menu workflow
  • Query warehouse status via Discord
  • Verify coalition visibility restrictions

gezipline and others added 5 commits January 13, 2026 12:40
New plugin providing comprehensive logistics mission system with in-game integration:

Features:
- Discord commands: /logistics create/list/view/approve/deny/cancel
- Discord commands: /warehouse status/compare
- In-game chat commands: -tasks, -accept, -mytask, -deliver, -abandon, -request
- Database schema for tasks, history, markers, and logbook integration
- Event handlers for S_EVENT_LAND delivery detection
- Map marker lifecycle management
- Logbook integration for pilot credit tracking

Changes to logbook plugin:
- Removed /stores commands (replaced by logistics plugin)
- Updated README to note logistics plugin for stores functionality
- Add lua/commands.lua: Python -> DCS command handlers for markers
- Add lua/mission.lua: Map marker functions (create, remove, update)
  - Coalition-specific markers with cargo/pilot/deadline info
  - Route lines between source, waypoints, and destination
- Add lua/callbacks.lua: Event hooks for mission load/start
- Update listener.py:
  - Handle marker creation/removal responses from Lua
  - Improved delivery detection using event.place (airbase name)
  - Fallback proximity check via DCS position query
  - Credit pilots on completion via logbook_logistics_completions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Dynamic F10 menu created when player spawns
- Menu structure:
  - Logistics/
    - View Available Tasks (popup with task list)
    - My Current Task (popup with assigned task details)
    - Accept Task/ (submenu with available tasks)
    - Mark Delivered (manual completion)
    - Abandon Task (release task to pool)
- Menu callbacks handled via 'callback' event
- Menu refreshes automatically when task state changes

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add comprehensive README.md with:
  - Feature overview
  - Installation and configuration
  - Discord and chat command reference
  - F10 menu structure documentation
  - Map marker format details
  - Task workflow diagram
  - Logbook integration explanation
  - Troubleshooting guide
- Add logistics_schema.yaml for configuration validation
- Add reference/ to .gitignore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update .gitignore to include all files in .copilot-docs and reference directory.
@karel26 karel26 merged commit bec05f5 into Special-K-s-Flightsim-Bots:development Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants