- Messages
- 466
- Country

Hi all,
I'm encountering a strange error when attempting to compile an X file into an MDL.
Here's the error:
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'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?

