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

Error when using Ground Poly Wizard. [SOLVED]

Messages
10
Country
unitedkingdom
So I'm hitting my head against the wall trying to work out what this problem is. When ever I attempt to export a model via the ground poly wizard I get this in the event log and no bgl file.

Code:
16:39    XtoMDL    Error        (0): error :
16:39    XtoMDL    Error        (0): error : ----------------------------------------------------------------
16:39    XtoMDL    Error        (0): error :
16:39    XtoMDL    Error        (0): error : XToMdl.exe Unhandled Application Exception
16:39    XtoMDL    Error        (0): error :
16:39    XtoMDL    Error        (0): error : System.Xml.XmlException
16:39    XtoMDL    Error        (0): error :
16:39    XtoMDL    Error        (0): error : An error occurred while parsing EntityName. Line 23212, position 121.
16:39    XtoMDL    Error        (0): error :
16:39    XtoMDL    Error        (0): error : ----------------------------------------------------------------
16:39    XtoMDL    Error        (0): error :
16:39    XtoMDL    Error        (0): error : Stack Trace:
16:39    XtoMDL    Error        (0): error :
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.ParseEntityName()
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.ParseAttributeValueSlow(Int32 curPos, Char quoteChar, NodeData attr)
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.ParseAttributes()
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.ParseElement()
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.ParseElementContent()
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReaderImpl.Read()
16:39    XtoMDL    Error        (0): error :    at System.Xml.XmlTextReader.Read()
16:39    XtoMDL    Error        (0): error :    at Microsoft.FlightSimulator.XmlToMdlLib.MDLProcessor.LoadFile(Stream InputStream, XPartDict PartDictionary)
16:39    XtoMDL    Error        (0): error :    at Microsoft.FlightSimulator.XmlToMdlLib.XmlToMdlLib.Process(Guid& ModelGuid, Stream AnimationData)
16:39    XtoMDL    Error        (0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.ProcessInputs()
16:39    XtoMDL    Error        (0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.RealMain(String[] args)
16:39    XtoMDL    Error        (0): error :    at Microsoft.FlightSimulator.XToMDL.XToMDL.Main(String[] args)

I am creating the model in blender and exporting them as a Colladda file.

Things I've tried:
- Moving the location my p3D V3 SDK.
- Removing the materials from the model.
- Exporting as a MDL file then re-importing via the ground poly wizard.
- updating to the latest version of MCX (This kept happening in the previouse version to)
- Exporting only a single mesh from blender (As oppose to all the ground polys)
- Updating to .Net 4.7 (The latest version).

I am assuming that the problem lies either with the model it's self or XtoMDL, unfortunatly I don't really understand the error it keeps giving me, so I'm hopeing someone better informed than myself can shed some light on this.

windows 7 64-bit

Thanks.
 
Hi,

Is your decimal separator in your Windows Regional Settings a comma (,)? It may need it to be a period (.). I think it's also known as a full stop.
 
I've checked the setting and all seems to be correct. I also tried changing the "Digit grouping Symbol" to "." just to check but the problem still persists.
Region settings.png
 

Attachments

  • Region settings.png
    Region settings.png
    45.3 KB · Views: 520
What's the filename you export to? Any weird characters in it?
 
On line 23,212 at the 121st character from the beginning XtoMdl is encountering a character that it is not expecting. Whatever represents an entity name in your model has some character that XtoMdl doesn't consider valid. As Arno says check your filename.
 
Thanks for the help. You were right.
I checked the the save name to make sure no weird characters were anywhere to be found but completely overlooked a folder in the output directory I was exportng to which had "&" in the name. I guess I just did not consider it a wierd character. my bad, thank you again.
 
Yes, xtomdl is very picky when it comes to characters in the object name or file path. So even something as a & can give trouble.
 
Back
Top