Heretic
Resource contributor
- Messages
- 6,830
- Country

MCX' latest development release (Sept. 18th, 2018) essentially crashes when trying to delete or isolate parts from a hierarchy and refuses to export.
1)
- Open a FSX MDL file in MCX.
- Search for a certain part in the hierarchy editor
- Select part from list and press "isolate"
Result: MCX shows the following unhandled exception
This only seems to affect items whose "SceneGraphNode" parent wold be deleted.
Deleting a single "SceneGraphNode" and "ModelPart" together also produces the error.
Deleting a "ModelPart" without touching the "SceneGraphNode" seems to work most of the times.
2)
Exporting a FSX MDL file does not work. Log entry:
Apparently, this is a problem with finding XToMDL, but the path is correct. Yet, neither the XToMDL from the FSX nor the one from the P3Dv1.4 SDK works.
Maybe I'm just overlooking something. It's been a long, long while since I last used MCX in earnest.
1)
- Open a FSX MDL file in MCX.
- Search for a certain part in the hierarchy editor
- Select part from list and press "isolate"
Result: MCX shows the following unhandled exception
Code:
************** Exception Text **************
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at ASToFra.ObjectRenderer.Renderer3DHandlerType.FillArrayObjects()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.GenerateArrays()
at ASToFra.ObjectRenderer.Renderer3DHandlerType.SetObjectModel(ObjectModel newObj, ObjectChangeLevel level)
at ASToFra.ObjectRenderer.Renderer3DControl.OnObjectChanged(ObjectChangeLevel level, ObjectModel obj, Object sender, String changeDescription)
at ASToFra.Interfaces.ObjectChanged.Invoke(ObjectChangeLevel level, ObjectModel obj, Object sender, String changeDescription)
at ASToFra.Interfaces.EventDistributor.RaiseObjectChanged(ObjectChangeLevel level, ObjectModel obj, Object sender, String changeDescription)
at ASToFra.ModelConverterX.HierarchyEditor.RaiseObjectChanged(ObjectChangeLevel level, String message)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.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.7.3163.0 built by: NET472REL1LAST_C
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:///E:/Dev%20Utilities/Model%20Converter%20X/ModelConverterX.exe
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.ErrorHandler.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
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.7.3151.0 built by: NET472REL1LAST_B
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.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ASToFra.Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.Utils.DLL
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.ObjectModel3D
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.ObjectModel3D.DLL
----------------------------------------
ASToFra.ObjectReader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.ObjectReader.DLL
----------------------------------------
ASToFra.ObjectWriter
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.ObjectWriter.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.EventLog.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
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.7.3160.0 built by: NET472REL1LAST_C
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.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ASToFra.ObjectRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.ObjectRenderer.DLL
----------------------------------------
CSGL12DLL
Assembly Version: 12.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/CSGL12DLL.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.ParticleEffects.DLL
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.TextureObject
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.TextureObject.DLL
----------------------------------------
lib3ds.Net
Assembly Version: 2.0.0.36005
Win32 Version: 2.0.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/lib3ds.Net.DLL
----------------------------------------
ASToFra.TextureLoader
Assembly Version: 1.0.0.0
Win32 Version: 1.4.0.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ASToFra.TextureLoader.DLL
----------------------------------------
MonoGame.Framework
Assembly Version: 3.4.0.459
Win32 Version: 3.4.0.459
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/MonoGame.Framework.DLL
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.7.3056.0 built by: NET472REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
ObjectListView
Assembly Version: 2.9.1.25410
Win32 Version: 2.9.1.0
CodeBase: file:///E:/Dev%20Utilities/Model%20Converter%20X/ObjectListView.DLL
This only seems to affect items whose "SceneGraphNode" parent wold be deleted.
Deleting a single "SceneGraphNode" and "ModelPart" together also produces the error.
Deleting a "ModelPart" without touching the "SceneGraphNode" seems to work most of the times.
2)
Exporting a FSX MDL file does not work. Log entry:
Code:
23:32 MDLXWriter Information Starting writing of file V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\test2.mdl
23:32 MDLXWriter Information Object contains animations
23:32 XWriter Information Starting writing of file V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\tmp37C.x
23:33 XWriter Information Finished writing of file V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\tmp37C.x
23:33 XtoMDL Information Found dictionary file: V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\MCX_ModelDef.xml
23:33 XtoMDL Information Found output file: V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\test2.mdl
23:33 XtoMDL Information OutputFile: V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\test2.mdl
23:33 XtoMDL Information Output file after modification: V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\test2.mdl
23:33 XtoMDL Information Creating output MDL file: V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\test2.mdl
23:33 XtoMDL Error error : Error loading .X file: (V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\tmp37C.x). Is it a valid FLIGHT SIMULATOR '.X' file?
23:33 XtoMDL Error (0): error : XToMdl.exe Unhandled Application Exception
23:33 XtoMDL Error (0): error : SlimDX.Direct3D9.Direct3D9Exception: D3DXFERR_PARSEERROR: Parse error (-2005531760)
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XFileLoader.LoadFromModelFile(ModelFile FileInfo)
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData()
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
23:33 XtoMDL Error (0): error :
23:33 XtoMDL Error (0): error : D3DXFERR_PARSEERROR: Parse error (-2005531760)
23:33 XtoMDL Error (0): error :
23:33 XtoMDL Error (0): error : Stack Trace:
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XFileLoader.LoadFromModelFile(ModelFile FileInfo)
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData()
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)
23:33 XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
23:33 MDLXWriter Information Finished writing of file V:\X-Plane 11\Aircraft\Development\Aero L-39C Albatros - Modded\0_Resources\FSX Export\test2.mdl
Apparently, this is a problem with finding XToMDL, but the path is correct. Yet, neither the XToMDL from the FSX nor the one from the P3Dv1.4 SDK works.
Maybe I'm just overlooking something. It's been a long, long while since I last used MCX in earnest.
Last edited:

