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

Batch Converter fails to create bgl-file

Messages
544
Country
germany
Hi Arno,
I tried to convert one of our sceneries so that it works in FSX and Prepar3D v2.x.
When I try to convert the attached library (which is a FS2004 lib) MCX produces the MDL files but is not successful in generating the bgl file.
I also tried to generate simply the MDL files with MCX and produce the library file with LibraryGenerator but that also fails with an error message.
I use the current version of MCX, hope you have an idea.

Update: I checked the Object 51 which obviously causes the problem and it says "unsupported MDL file". When I manually delete this object out of the List in LibraryCreator I can compile the library, so it seems to focus on that object.

Jörg

Code:
13:32    BGLXWriter    Information    Starting writing of file E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib_converted.bgl
13:32    XMLWriter    Information    Starting writing of file E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib_converted.xml
13:32    XMLWriter    Information    Finished writing of file E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib_converted.xml
13:32    BGLCommp    Information    Parsing document: Koblenz_Lib_converted.xml
13:32    BGLCommp    Information    INTERNAL COMPILER ERROR:  #C2014: Failed to load model data in file: E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib51.mdl
13:32    BGLCommp    Information    INTERNAL COMPILER ERROR:  #C2149: Failed to load model data!  Does the file exist?
13:32    BGLCommp    Information    INTERNAL COMPILER ERROR:  #C2340: Failed to finalize MODEL_DATA!
13:32    BGLCommp    Information    INTERNAL COMPILER ERROR:  #C2032: XML Parse Error!  Element tree follows:
13:32    BGLCommp    Information    ERROR: <FSData
13:32    BGLCommp    Information    ERROR:     version = 9.0
13:32    BGLCommp    Information    ERROR: >
13:32    BGLCommp    Information    ERROR:     <ModelData
13:32    BGLCommp    Information    ERROR:         sourceFile = E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib51.mdl
13:32    BGLCommp    Information    ERROR:     >
13:32    BGLCommp    Information    ERROR:
13:32    BGLCommp    Information    INTERNAL COMPILER ERROR:  #C2024: Failed to process closing element tag <ModelData> near line 106!
13:32    BGLCommp    Information    INTERNAL COMPILER ERROR:  #C2607: Compilation errors detected, compilation failed!
13:32    BGLCommp    Information    Parse complete!
13:32    BGLXWriter    Information    Finished writing of file E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib_converted.bgl
13:32    XMLWriter    Information    Starting writing of file E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib_converted.xml
13:32    XMLWriter    Information    Finished writing of file E:\Scenery_Flightport_FSX\EDRK FSX Koblenz Winningen\Scenery\converted\Koblenz_Lib_converted.xml
 

Attachments

Last edited:
Hi Jorg,

I'll have a look at that object.
 
Hi Arno,
thanks, I am not in hurry. It was only one object at the airport so we can live without it in the meantime.
The rest of the airport is now converted, so that the airport is also P3D compliant.
Jörg
 
Hi,

That object, object 51, only contains a light. So it translates to an object with only an attachpoints after importing. Such objects without geometry can't be exported by XtoMDL, it usually crashes. In that case you get an invalid MDL file, due to the crash.

It is somewhere on my bug list already to see if I can prevent such crashes, probably by adding some dummy geometry to satisfy XtoMDL.
 
Hi Arno,
thanks for the answer, an error message as a small popup window and skipping that object would be sufficient for me. The result would be a BGL-file without manually translating all objects in MDL-files and create a library afterwards.
Jörg
 
Hi,

I have to check if xtomdl gives me a return code to see if there is something wrong. Now I can only see it by checking the text returned.
 
Back
Top