Giter Site home page Giter Site logo

dcs-api's Introduction

dcs-api - Digital Combat Simulator API information

This project primarily documents information on how to integrate with Digital Combat Simulator. This information may be useful, for example, if you want to integrate DCS with a physical cockpit or add your own extensions or mods to DCS. It seems there is no official API/programmers guide and bits and pieces of information is spread over the Eagle Dynmamics Forums and the Internet. Here some of that information is collected and duplicated.

Good starting points are to read Scripts\Export.lua and API\DCS_ControlAPI.html in the DCS installation folder.

Information about devices, commands and gagues are in the aircraft folder.

Tools

Some tools are included to extact information from the DCS folders. I run the tools from Ubuntu in Windows.

getgauges

This is extracts the gauges and prints them out as a JSON file. Run the tool as:

getgagues /mnt/c/Program\ Files/Eagle\ Dynamics/DCS\ World/Mods/aircraft/Ka-50/Cockpit/Scripts/mainpanel_init.lua > ../aircraft/Ka-50/gauges.json

Replace "Ka-50" with the module you want.

getdevices.lua

This gets the devices as a compact JSON file. You might want to pretty print the JSON file. For example, run it like this:

lua getdevices.lua Ka-50 | json_pp > ../aircraft/Ka-50/devices.json

The script assumes your installation is the folder "C:\Program Files\Eagle Dynamics\DCS World".

getcommands:lua

This gets the commands as a compact JSON file. You might want to pretty print this as well. For example:

lua getcommands.lua Ka-50 | json_pp > ../aircraft/Ka-50/commands.json

Unfortunatley some aircraft has very generic names such as "Button_1".

dcs-api's People

Contributors

bjanders avatar

Watchers

 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.