Code Monkey home page Code Monkey logo

Comments (9)

rp- avatar rp- commented on September 2, 2024

Hi!

did you use the git master version? or you running the release from the pip installer?

Just generated a mission and I can open it in the latest dcs 1.5.7

from dcs.

Flupke25 avatar Flupke25 commented on September 2, 2024

Hello,

Thanks for the very quick reply :)

I used the git master version. Is it the good one ?
It is indeed very strange not to see the file in DCS. I cannot figure out why it is like this for me, but I will search, and I let you know.

In the future, if I have ideas, new code or fixes for the library, I let you know as well ;)

Flupke

from dcs.

rp- avatar rp- commented on September 2, 2024

from dcs.

Flupke25 avatar Flupke25 commented on September 2, 2024

Ok, I send you the file generated this evening with the associated command to generate it, when I am back home.

from dcs.

Flupke25 avatar Flupke25 commented on September 2, 2024

oil_transport.miz.zip

Here it comes.
you have to rename it without the ".zip".
It was generated with python 3.5.2, with the command : "python destroy_oil_transport" without parameters and is not visible in DCS.
Hope it can helps.

from dcs.

rp- avatar rp- commented on September 2, 2024

I know whats wrong in your mission, but I can't reproduce it on my end.
Are you sure you are on the latest master revision?
if you run git log the latest should be 57ba821 right now.

from dcs.

Flupke25 avatar Flupke25 commented on September 2, 2024

I have cloned this evening to be sure, but I have the same problem, I cannot see the generated file oil_transport.miz in DCS.
By the way, I had to put in comment farp and CAP sections, because of errors ( farp is not a variable of mission class ) and still another one, I don't remember.
Could you explain what is wrong in the mission file, I would like to understand ( and make it work ) ?
Thank you for your quick answers and help.

from dcs.

rp- avatar rp- commented on September 2, 2024

Ok I found out whats wrong.
Luckily I had kinda the same issue once I did a fresh clone on my self from commandline and tried to run the script.

The problem is you have an older version of pydcs installed in python and as long you don't set the PYTHONPATH to the checkout version, python will import modules from the installed one first.
There are 2 ways to fix it:

  • Uninstall the current installed version (pip uninstall pydcs), than everything should work from the git clone version
    or
  • Set the PYTHONPATH environment variable to the git clone of pydcs
    set PYTHONPATH=C:/path/to/checkout

The problem in the mission file was the incorrect serialization of the coalition enum in the mission triggers e.g.:
["coalitionlist"]=Coalition.Blue
instead of
["coalitionlist"]="blue"

from dcs.

Flupke25 avatar Flupke25 commented on September 2, 2024

Hello Rene,
Now everything is clear and the mission gets uploaded :)
Thank you very much for the catch and for support :)
Have a nice weekend.
Flupke

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.