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

P3D v4 XtoMDL error in ModelconvertorX

Messages
45
Country
taiwan
Hi

Could anyone help me?
I just keep facing error when I convert .x to .mdl in ModelconvertorX.
But funny thing is the model that I want to convert which I convert them to mdl for several times but 3 days ago error occurred.
Also I can convert some sample scenery objects like hangar or tower.

error log list below FYR.

please help.

Best,
Kay

5:20 PM XWriter Information Starting writing of file C:\Users\imkay1120\Documents\3dsMax\export\tmpC840.x
5:20 PM XWriter Information Finished writing of file C:\Users\imkay1120\Documents\3dsMax\export\tmpC840.x
5:20 PM XtoMDL Information Found dictionary file: C:\Users\imkay1120\Documents\3dsMax\export\MCX_ModelDef.xml
5:20 PM XtoMDL Information Found output file: C:\Users\imkay1120\Documents\3dsMax\export\test.mdl
5:20 PM XtoMDL Information OutputFile: C:\Users\imkay1120\Documents\3dsMax\export\test.mdl
5:20 PM XtoMDL Information Output file after modification: C:\Users\imkay1120\Documents\3dsMax\export\test.mdl
5:20 PM XtoMDL Information Creating output MDL file: C:\Users\imkay1120\Documents\3dsMax\export\test.mdl
5:20 PM XtoMDL Error error : Error loading .X file: (C:\Users\imkay1120\Documents\3dsMax\export\tmpC840.x). Is it a valid FLIGHT SIMULATOR '.X' file?
5:20 PM XtoMDL Error (0): error : XToMdl.exe Unhandled Application Exception
5:20 PM XtoMDL Error (0): error : SlimDX.Direct3D9.Direct3D9Exception: D3DXFERR_PARSEERROR: Parse error (-2005531760)
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XFileLoader.LoadFromModelFile(ModelFile FileInfo)
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData()
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
5:20 PM XtoMDL Error (0): error :
5:20 PM XtoMDL Error (0): error : D3DXFERR_PARSEERROR: Parse error (-2005531760)
5:20 PM XtoMDL Error (0): error :
5:20 PM XtoMDL Error (0): error : Stack Trace:
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XFileLoader.LoadFromModelFile(ModelFile FileInfo)
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.ModelFile.LoadFromXFile()
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.LoadAllFileData()
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToXmlLib.XToXmlLib.Process(ModelFile[] InputFiles, Hashtable[] AnimationLinkage, String[] AnimationFileRef, XPartDict PartDictionary)
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)
5:20 PM XtoMDL Error (0): error : at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)
5:20 PM MDLXWriter Information Finished writing of file C:\Users\imkay1120\Documents\3dsMax\export\test.mdl
 
I made another test, if I export x. form 3ds max 2017 with animation and it works, I can convert .x to .mdl.
have no idea about this.......
 
Sorry about that, but I am not sure is it MCX issue or others.
I just create another object and put it in MCX it works, also if I just export .x w/o animation it works.
Anyway I will post correct sub-forum next time.
Thanks a lot.

Kay
 
Could be there are some weird characters in your x file. Any texture or part names that contain special characters?
 
Hi Arno
Many thanks for your help.
However I check all my part names only one ? and one # (had correct that) other are _, - and ( ), texture I remap with one named basic but still have the problem.
what I really don't get it is all these .x files, I had use xtomdl (from P3D SDK 4.2) in MCX before (I always save each version separately) and works, I also put them (MDL) in FSX and P3D works great, but now all of them have problems.

Kay
 
If files that worked before have issues now, it must be something else that changed. Any system setting that changed?
 
Hi Arno

Thanks for your help. All the change has been made after problem occurred. FYI.\
After a lot of testing and research, I found the root course, however I still don't know how it happened.
3 of my parts (c-gear door and 2 landing light) cause the problem, I just reset the transform and re-animate now it just work fine.
Many thanks for your help.

Best,
Kay
 
Last edited:
Hey guys,

I also have this issue with MCX 1.4 DEV 8/7/2020
Below is a screenshot. I must say, that i can export to .mdl without any PBR or just 6 items max with full PBR (normal maps and metallic). Once I go over 6 PBR configurations or more, this happens. And this is the first time I have had this error.
Another information I can add to this is that yesterday i installed P3D V5. Yet, nothing has changed on my export paths as seen below, attached.

Can anyone please help me? Thank you.
 

Attachments

  • Screenshot 2020-08-30 22.03.41.png
    Screenshot 2020-08-30 22.03.41.png
    2.5 MB · Views: 328
  • Screenshot 2020-08-30 22.16.27.png
    Screenshot 2020-08-30 22.16.27.png
    231 KB · Views: 391
The error seems to indicate that some string is too long. Could it be that you have a texture with a very long filename?

Installing P3D v5 and its SDK does not directly change the settings. MCX will only try to detect the paths when they are not defined. So if you have the v4.5 SDK already detected, you would have to manually change it to v5.
 
Thank you @arno i will take care of the long names.
I actually have long names on a lot of my textures.
I will rename them to smaller names and I will export to mdl and I will report back.
 
Back
Top