Code Monkey home page Code Monkey logo

Comments (7)

rp- avatar rp- commented on September 2, 2024

That might be a bug, do you have installed DCS in the default location?
C:\Program Files\Eagle Dynamics\DCS World

or on another drive or folder?

from dcs.

rp- avatar rp- commented on September 2, 2024

or what unit type is it?

from dcs.

shdwp avatar shdwp commented on September 2, 2024

I have both SA at standard and steam in PFx86/Steam.

For the type I've tried A10C with CAS and F15C with FighterSweep.

I think I'll debug this later this evening after I come back home and provide a little more information (I've thought it's a simple wrong usage issue).

from dcs.

shdwp avatar shdwp commented on September 2, 2024

Wait, does it require dcs to be installed? I'm using a separate computer to generate the missions (without DCS), so that would explain it all. How does it account for non-standard path installations then?

from dcs.

rp- avatar rp- commented on September 2, 2024

I don't think it is your fault, but it should have worked for the A10C.

The code for loading the unit payload is a bit static, if you look at unittype.py:58 these are the folders that are currently looked for unit payload definitions.

The code should get the DCS install folder from the registry or some other reliable way and it should also load all CoreMods/aircraft folders.

I just tested it with SU-25 and AH-64A and it worked.

apache = m.flight_group_from_airport(usa, "AirCav", dcs.helicopters.AH_64A, kobuleti, group_size=2)
apache.load_loadout("8xAGM-114, 38xHYDRA-70")
apache.add_runway_waypoint(kobuleti)

from dcs.

rp- avatar rp- commented on September 2, 2024

Wait, does it require dcs to be installed? I'm using a separate computer to generate the missions (without DCS), so that would explain it all. How does it account for non-standard path installations then?

yes for payloads to work it needs a DCS install, or you copy all the payload definitions in a directory and add them to the load path in unittype.py.

from dcs.

shdwp avatar shdwp commented on September 2, 2024

Yeah, I've tested that on the machine with DCS installed and it works just fine. Thanks a bunch.

from dcs.

Related Issues (20)

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.