[RESOLVED] XtoMDL not working (missing dependencies)

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Locked
avions
Posts: 2
Joined: Tue Feb 19, 2019 7:58 pm

[RESOLVED] XtoMDL not working (missing dependencies)

Post by avions »

Hi, recently I reinstalled Windows 7 on my pc, I' ve been developing an aircraft model for FSX for quite some time using 3ds max 2009 with Prepar3d SDK v1.4, everything was ok before reinstallation but now xtomdl reports nothing more than errors:

Creating output MDL file: test.MDL
(0): error : XToMdl.exe Unhandled Application Exception
(0): error : System.Runtime.InteropServices.SEHException (0x80004005): External
component has thrown an exception.
(0): error : at D3DXFileCreate(ID3DXFile** )
(0): error : at SlimDX.Direct3D9.XFile..ctor()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XFileLoader..ctor()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()

(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData
()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFi
le[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartD
ict PartDictionary)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] arg
s)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
(0): error :
(0): error : External component has thrown an exception.
(0): error :
(0): error : Stack Trace:
(0): error : at D3DXFileCreate(ID3DXFile** )
(0): error : at SlimDX.Direct3D9.XFile..ctor()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XFileLoader..ctor()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()

(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData
()
(0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFi
le[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartD
ict PartDictionary)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] arg
s)
(0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)

error

Thanks for any advice
Clifton Crane
Lockheed Martin
Posts: 1207
Joined: Tue Sep 25, 2012 2:34 pm

Re: xtomdl not working

Post by Clifton Crane »

Hello,

It looks like you may be missing a dependency. You may want to try to download the June 2010 DirectX SDK.
Clifton Crane
Prepar3D® Software Engineer Sr.
avions
Posts: 2
Joined: Tue Feb 19, 2019 7:58 pm

Re: xtomdl not working

Post by avions »

Yes, installing it solved the problem, thanks
Locked