Skip to content

Digital Combat Simulator Python mission framework

License

Notifications You must be signed in to change notification settings

M-Chimiste/pydcs

This branch is 62 commits behind dcs-retribution/pydcs:retribution.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

May 24, 2024
805088f · May 24, 2024
Oct 1, 2023
May 24, 2024
Dec 11, 2017
Feb 18, 2024
May 24, 2024
Feb 18, 2024
Mar 22, 2016
Oct 13, 2020
Apr 6, 2016
Nov 18, 2017
Feb 21, 2022
Sep 10, 2022
May 12, 2024

Repository files navigation

python dcs mission framework

pydcs is a python framework for creating and editing mission files from digital combat simulator.

Possible use cases are:

  • assisting mission creators
  • random mission creation
  • write an external mission editor on top of it
  • data export from existing missions
  • ...

Sample

import dcs
m = dcs.Mission()

batumi = m.terrain.batumi()
batumi.set_blue()

usa = m.country("USA")
m.awacs_flight(
   usa, "AWACS", dcs.planes.E_3A,
   batumi, dcs.Point(batumi.position.x + 20000, batumi.position.y + 80000),
   race_distance=120 * 1000, heading=90)

m.save("sample.miz")

This code generates a mission with a AWACS flight starting cold from batumi.

Random mission scripts

pydcs comes with 2 proof of concept scripts:

dcs_random

This script can generate 3 different mission types

  • refuel

    Generates a refuel mission for A-10C or M-2000C aircrafts, search your tanker and refuel.

  • CAS

    Support ground troops.

  • CAP

    Take care of your tanker and AWACS.

For options see the script help with dcs_random --help

dcs_dogfight_wwii

This script randomly generates WWII dogfights with a given number of planes near a random airport. For options also see the script help dcs_dogfight_wwii --help

Install

pip install pydcs

Documentation

The current documentation can be found here

TODO

  • Failures
  • More/better documentation

About

Digital Combat Simulator Python mission framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.0%
  • Other 1.0%