1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

An error in API import

Discussion in 'ModelConverterX' started by gsnde, 23/4/10.

  1. gsnde

    gsnde

    Joined:
    21/3/05
    Messages:
    2,709
    Country:
    germany
    Arno,

    There is a new error in the API import which throws an exception and then hangs the program.
    I have attached two APIs that trigger this error.

    Attached Files:

    Last edited: 23/4/10
  2. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    Hi Martin,

    I'll take a look at this. Might be related to the big changes I made to the texture system, but I'll see...
  3. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    Hi Martin,

    I have found it, it is fixed in the next development release.
  4. gsnde

    gsnde

    Joined:
    21/3/05
    Messages:
    2,709
    Country:
    germany
    Great, Arno!
  5. gsnde

    gsnde

    Joined:
    21/3/05
    Messages:
    2,709
    Country:
    germany
    Thank you, Arno. The crash bug is fixed. :)

    But now the Arrestor Cable macro does not show the cables any more when placed in the sim. You can see them in MCX, though. Could you have another look maybe?
  6. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    OK, will do that later today.
  7. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    Hi Martin,

    I exported them to FSX and here they show fine. Are you also exporting to FSX or to FS2004?
  8. gsnde

    gsnde

    Joined:
    21/3/05
    Messages:
    2,709
    Country:
    germany
    This was for FS9, Arno
  9. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    OK, let me check that as well.
  10. gsnde

    gsnde

    Joined:
    21/3/05
    Messages:
    2,709
    Country:
    germany
    I can confirm that it works perfect in FSX and is only a problem with FS9, Arno
  11. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    Hi Martin,

    I notice in MCX that if I increase the radius for extrusion (the cables are lines in the API) that they do show up. Can you test if they show in FS2004 as well with a bigger radius? The default is 0.1.
  12. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    Hi Martin,

    I am quite sure that is the issue. The API has a default scale of 0.01, by default that is applied as well. So the cables extruded with a radius of 0.1 then only become 1 mm in radius. That is lower than the minimum distance MakeMDL can handle and that is why they do not appear.

    So for this object I would suggest that you increase the radius (or not apply the default scale).
  13. gsnde

    gsnde

    Joined:
    21/3/05
    Messages:
    2,709
    Country:
    germany
    Arno,

    No matter how I scale it in FS9 the cables stay invisible.

    You mean in MCX? How would I do that? :confused:

    OK, I found the option and retest...
  14. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28/5/04
    Messages:
    20,579
    Country:
    netherlands
    Hi Martin,

    Yes, I mean in MCX. MakeMDL does not compile them correctly due to the small size.

    In the importer options you have an option to "Apply default scale" and another one for "Line extrude radius". I would try to increase the value of the last one, till you think the cables look OK in the preview. And then export again.
  15. gsnde

    gsnde

    Joined:
    21/3/05
    Messages:
    2,709
    Country:
    germany
    That did the trick, Arno :)

    Thanks

Share This Page