Giter Site home page Giter Site logo

dcs's Introduction

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

dcs's People

Contributors

rp- avatar shdwp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.