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

Messages
26
Country
unitedstates
I use this code in CMD prompt.

>XToMdl /DICT:C:\modeldef.xml /OUT:C:\ufomdl ufoXmodel.X

My result;

Code:
C:\Users\Duncan>>XToMdl /DICT:C:\modeldef.xml /OUT:C:\ufomdl ufoXmodel.X
The filename, directory name, or volume label syntax is incorrect.

C:\Users\Duncan>C:\XToMdl.exe /DICT:C:\modeldef.xml /OUT:C:\ufomdl ufoXmodel.X
Found dictionary file: C:\modeldef.xml
Found output file: C:\ufomdl
OutputFile: C:\ufomdl
Output file after modification: C:\ufomdl.MDL
(0): error : XToMdl.exe Unhandled Application Exception
(0): error : System.UnauthorizedAccessException: Access to the path 'C:\ufomdl.M
DL' is denied.
(0): error :    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFul
lPath)
(0): error :    at System.IO.FileStream.Init(String path, FileMode mode, FileAcc
ess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFrom
Proxy)
(0): error :    at System.IO.FileStream..ctor(String path, FileMode mode)
(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 : Access to the path 'C:\ufomdl.MDL' is denied.
(0): error :
(0): error : Stack Trace:
(0): error :    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFul
lPath)
(0): error :    at System.IO.FileStream.Init(String path, FileMode mode, FileAcc
ess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize,
FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFrom
Proxy)
(0): error :    at System.IO.FileStream..ctor(String path, FileMode mode)
(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)

C:\Users\Duncan>
Help? In my C:\ I have XToMdl.exe, ufoXmodel.X and modeldef.xml

Can someone compile it for me if I cannot?
 
I use this code in CMD prompt.

>XToMdl /DICT:C:\modeldef.xml /OUT:C:\ufomdl ufoXmodel.X

It looks like you do not have write access to the root folder of the c drive - are you logged in as the administrator?
Have you tried a different output folder name?

Paul
 
Last edited:
Trace out the error report:

C:\Users\Duncan>C:\XToMdl.exe /DICT:C:\modeldef.xml /OUT:C:\ufomdl ufoXmodel.X
Found dictionary file: C:\modeldef.xml
Found output file: C:\ufomdl
OutputFile: C:\ufomdl
Output file after modification: C:\ufomdl.MDL
(0): error : XToMdl.exe Unhandled Application Exception
(0): error : System.UnauthorizedAccessException: Access to the path 'C:\ufomdl.M
DL' is denied.

One tiny error:

/OUT:C:\ufomdl ufoXmodel.X


Should be:

/OUT:C:\ufomdl\ufoXmodel.X
 
Last edited:
That was my first though too Bill, but the original is correct.

The /OUT:C:\ufomdl is translated to
/OUT:C:\ufomdl.mdl

ufoXmodel.X in the current folder c:\users\duncan is the input for the program.
The .Net error trace show that creating the file c:\ufomdl.mdl is not allowed.
 
That was my first though too Bill, but the original is correct.

The /OUT:C:\ufomdl is translated to
/OUT:C:\ufomdl.mdl

ufoXmodel.X in the current folder c:\users\duncan is the input for the program.
The .Net error trace show that creating the file c:\ufomdl.mdl is not allowed.

No, it is not correct...

I missed this the first time around...

the /OUT parameter is used to CHANGE the name of the MDL file to be created. If omitted, the MDL file will use the name of the .X file, and append the .MDL extension.

/OUT:<OutputName>
Changes the output name of the .MDL file.

Code:
XToMdl /DICT:C:\modeldef.xml /OUT:ufomdl ufoXmodel.X

This means, compile the file "ufoXmodel.X" and save it with the name "ufomdl.mdl"

We cannot of course have a file named "C:\ufomdl"... :eek:
 
Last edited:
Sorry for my stupidity, I must be doing something wrong.

My code:
Code:
>XToMdl /DICT:C:\modeldef.xml /XMLSAMPLE ufo.X

I got a No-GUID error which I cannot reproduce so I made another *.X file and that is ufo.X

Again, sorry.
 
Back
Top