• 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.

XtoMDL.exe Unhandled Application Exception

Messages
466
Country
us-california
Hi all,

I'm encountering a strange error when attempting to compile an X file into an MDL.

Here's the error:
Code:
error : Error loading .X file: (C:\Users\Brandon\Desktop\aircraftname.X).  Is it a valid FLIGHT SIMULATOR '.X' file?
(0): error : XToMdl.exe Unhandled Application Exception
(0): error : SlimDX.Direct3D9.Direct3D9Exception: D3DXFERR_PARSEERROR: Parse error (-2005531760)

(0): error :    at Microsoft.FlightSimulator.XToXmlLib.XFileLoader.LoadFromModelFile(ModelFile FileInfo)

(0): error :    at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()

(0): error :    at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData()

(0): error :    at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)

(0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()

(0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)

(0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
(0): error :
(0): error : D3DXFERR_PARSEERROR: Parse error (-2005531760)
(0): error :
(0): error : Stack Trace:
(0): error :    at Microsoft.FlightSimulator.XToXmlLib.XFileLoader.LoadFromModelFile(ModelFile FileInfo)

(0): error :    at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()

(0): error :    at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData()

(0): error :    at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)

(0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()

(0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)

(0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)

Here's the X file. I've exported only a single polygon and replaced all instances of the aircraft name for obvious reasons.

The model exports fine with a single FSX material, but if I apply a multi material (as I've left it in this X file), it gives the above error.

Any ideas?
 
I tried compiling locally as "text.x" and simply got a zero byte file with no error messages.
 
The log I posted in my original post if I use the P3D v1.4 exporter. If I use the FSX exporter, I just get nothing.
That's very odd. The build log is being written but empty of text or not being written at all? I've gotten 0kb MDL files before but something was always written to the build log when using the DOS redirect switch.
 
Back
Top