PDA

View Full Version : An error in API import


gsnde
23 Apr 2010, 13:39
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.

arno
23 Apr 2010, 14:28
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...

arno
23 Apr 2010, 14:43
Hi Martin,

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

gsnde
23 Apr 2010, 15:59
Great, Arno!

gsnde
24 Apr 2010, 04:15
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?

arno
24 Apr 2010, 04:31
OK, will do that later today.

arno
24 Apr 2010, 09:20
Hi Martin,

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

gsnde
24 Apr 2010, 10:04
This was for FS9, Arno

arno
24 Apr 2010, 10:14
OK, let me check that as well.

gsnde
24 Apr 2010, 10:20
I can confirm that it works perfect in FSX and is only a problem with FS9, Arno

arno
24 Apr 2010, 10:54
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.

arno
24 Apr 2010, 11:09
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).

gsnde
24 Apr 2010, 11:23
Arno,

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

... (or not apply the default scale)....

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

OK, I found the option and retest...

arno
24 Apr 2010, 11:26
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.

gsnde
24 Apr 2010, 12:27
That did the trick, Arno :)

Thanks