• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA Getting this error on the last 2 developer releases

Angelus1971

Resource contributor
Messages
195
Country
scotland
I get a white box with a big red X bounded by a red square and the following details....

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at ASToFra.ObjectRenderer.Renderer3DHandlerType.GetBoneMatrices(Transformation invRoot)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderModelPart(ModelPart p, RenderNodes renderNodes, Int32 activeLOD, Boolean highlight)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderSceneGraphNode(SceneGraphNode sn, RenderNodes renderNodes, Int32 activeLOD, Boolean highlightParent)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderSceneGraphNode(SceneGraphNode sn, RenderNodes renderNodes, Int32 activeLOD, Boolean highlightParent)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderScene(Int32 clientWidth, Int32 clientHeight)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at CSGL12.CSGL12Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.106.0 built by: NETFXREL2STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ModelConverterX.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.93.0 built by: NETFXREL2STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.ObjectModel3D.DLL
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.ErrorHandler.DLL
----------------------------------------
ASToFra.Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.Utils.DLL
----------------------------------------
ASToFra.ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.ObjectReader.DLL
----------------------------------------
ASToFra.ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.ObjectWriter.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.EventLog.DLL
----------------------------------------
ASToFra.ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.ObjectRenderer.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/CSGL12DLL.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.ParticleEffects.DLL
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.TextureObject.DLL
----------------------------------------
lib3ds.Net
Assembly Version: 2.0.0.17089
Win32 Version: 2.0.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/lib3ds.Net.DLL
----------------------------------------
ASToFra.TextureLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Model%20Converter%20X/ASToFra.TextureLoader.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
HI,

What kind of object do you have loaded? Is it an object with skin and bone animations? It seems calculating the matrices for the bones goes wrong.
 
Its just a helicopter, it never could load the texture though, in any version - its loads (no textures) in version 1.4.0.0 ed11f65 DEV 12/07/2015
 
But does the object have skin and bone animations? The code where the error happens is only entered for objects with such animations.

Maybe you can send me the model for testing?
 
Hi,

It should be fixed in the release of tomorrow. I got another file that had the same bug.
 
Thanks

I have just figured out why it doesn't load some textures.

If the texture are in the TEXTURE.???? Directory, then the texture will load. But if the texture is in a sub-dir of the Texture dir

e.g.

Texture.BAW\G-EUOE\*.dds

then the texture is not found and it fails to find it and it wont load or fill the drop down texture properly

Also have just come across a few error when looking at the TFS_346 A/c.

I've enclosed a txt file of the load process and errors.
 

Attachments

Hi,

I think that texture loading issue should also be fixed in the next release. I've worked on that yesterday as well.
 
Still got some issues with the new version I'm afraid.

That mdl file for the ND AS332L now load correctly but MDX just sits there and chews up 10% of my processor (that's equivalent to 1.2 cores!) and its like moving through treacle. I have tried loading other mdl and they seem fine.

The textures not all loading, some only a few textures load, the others the full texture.

I've included the logs from 3 of my imports - there seems to be a lot of unsupported commands being reported.

Thanks
 

Attachments

I also tried generating lods and got the white screen with the red X and these details

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderSceneGraphNode(SceneGraphNode sn, RenderNodes renderNodes, Int32 activeLOD, Boolean highlightParent)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.RenderScene(Int32 clientWidth, Int32 clientHeight)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.Paint(Object sender, PaintEventArgs e)
at System.Windows.Forms.Control.OnPaint(PaintEventArgs e)
at CSGL12.CSGL12Control.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.106.0 built by: NETFXREL2STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ModelConverterX.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.93.0 built by: NETFXREL2STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.ObjectModel3D.DLL
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.ErrorHandler.DLL
----------------------------------------
ASToFra.Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.Utils.DLL
----------------------------------------
ASToFra.ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.ObjectReader.DLL
----------------------------------------
ASToFra.ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.ObjectWriter.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.EventLog.DLL
----------------------------------------
ASToFra.ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.ObjectRenderer.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.81.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.79.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/CSGL12DLL.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.ParticleEffects.DLL
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.TextureObject.DLL
----------------------------------------
lib3ds.Net
Assembly Version: 2.0.0.7238
Win32 Version: 2.0.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/lib3ds.Net.DLL
----------------------------------------
ASToFra.TextureLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.TextureLoader.DLL
----------------------------------------
DigitalRune.Windows.TextEditor
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/DigitalRune.Windows.TextEditor.DLL
----------------------------------------
ASToFra.ObjectEditor
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///D:/FSX%20Tools/Arnos%20Tools/Model%20ConverterX/ASToFra.ObjectEditor.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
Angelus, it appears that you are using a version of MCX that has not been updated since June 7th which almost certainly will not support skin and bones animation. I have a copy of the ND332 Puma that imports without error into MCX latest dev release. It appears that the nd_332 model has several custom_anim_EXIT_OPEN animations which I believe indicate skin and bones animation. The render of the model is subject to a similar distortion to the skin and bones animated P3D V3 avatar I explored earlier with MCX and reported in a different thread.
puma.jpg
 
I'll have a look.

I think it's slow because the calculations for the bones can be quite complex. How many bones are there? I probably have to optimise that a bit.
 
I feel as if I have suddenly become immersed in the whole skin and bones phenomenon. I have to apologize in that I don't know how to count bones, or even how skin and bones animation could improve a door animation. I can say that the only custom animations are in the section captured by the screen shot.
 
I checked the version and I can reproduce the same picture as you've got above (MCX dated 27/10/15).

Did you try loading any of the other liveries? Maybe you don't have the same directory structure as I've got in place (which is quite likely)

upload_2015-10-29_16-32-52.png


Above is my texture directories for the ND332L. I use the same format for my a/c as well. It goes in the format Texture.Company ICAO with a subdirectory of a/c reg.

The other 2 problems I'm getting with the 346 and the 76, were generated with the 27/10/15 version of MCX.

How do I count the bones? (ok, 206 is not going to be the correct answer here :-) )
 
I don't need to load liveries to diagnose your problem, your problem is characterized by import errors, textures are "pointed to" not imported. The TFS 346 and the S76 are native FS2004 models. Do you see at the beginning of the log where it says "MDL9Reader"? The nd_332 says "MDLXReader" because it is native FSX. Many of the FS2004 animations are not supported by FSX and will probably flag error messages in MCX. Import errors don't define problems as much as they define incompatibility. A problem would be that the model does not behave as it is supposed to. Could you express your problem in terms of improper or defective behavior?
 
Back
Top