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

MSFS20 Creating a model library - puzzled by error message preventing the compile...

Messages
142
Country
ca-ontario
I'm trying to create a model library of scenery objects I want to use in making a scenery for MSFS2020. I've been given permission to resurrect an old FSX library. Each object was improved and converted for use in FS2020 using MXC. Using a template from the SDK samples, I created a scenery project, added the necessary details and specified pathways. All of the models I want in the library have their own XML, BIN, GLTF files and are recognized during the compile process, but this error pops up every time and the compile fails. What am I doing wrong? Where am i to find said bcatp_assets.gltf?
Is it better to " add an asset" for each object to the project ( I have about 30 models of buildings and clutter objects =30 assets?), or create the library with all the objects as one asset? Am I asking correctly, does this make sense?

This is the compile error I get:

Can not find model file: 'D:\Hagersville Project\Bcatp_Assets\_PackageInt\_tempFiles\dsmithproductions-bcatp-assets\BCATP_AssetsLib\bcatp_assets.gltf'
INTERNAL COMPILER ERROR: #C2006: Parse failed (0x80004005)
INTERNAL COMPILER ERROR: #C2340: Failed to finalize MODEL_DATA!
INTERNAL COMPILER ERROR: #C2032: XML Parse Error! Element tree follows:
ERROR: <FSData
ERROR: version = 9.0
ERROR: >
ERROR: <GLTFData
ERROR: sourceFile = D:\Hagersville Project\Bcatp_Assets\_PackageInt\_tempFiles\dsmithproductions-bcatp-assets\BCATP_AssetsLib\bcatp_assets.xml
ERROR: >
ERROR:
INTERNAL COMPILER ERROR: #C2024: Failed to process closing element tag <GLTFData> near line 118!
INTERNAL COMPILER ERROR: #C2607: Compilation errors detected, compilation failed!
INTERNAL COMPILER ERROR: #C2006: Parse failed (0x 0)
PackageBuilder | Output path does not exist: D:\Hagersville Project\Bcatp_Assets\Packages\dsmithproductions-bcatp-assets\Scenery\bcatp-assets\BCATP_AssetsLib\bcatp_assetsModel.BGL
 
Seems impossible to debug this without the source files (including the package setup).
 
I split the assets up into 3 model libraries. Buildings, Static Aircraft, and Clutter then associated the model libraries with an existing airport project. Everything appeared with no errors, all scenery objects are visible and usable. So am I right to assume you can't simply create an independent model library not associated with an airport project? Anyway, after thinking about it for a couple days, I solved my own problem.
 
It is a good idea to share your solution,
Especially when people took some time to analyse your issues... 😊
For future reference
- Yes, you can create a project with modelLib only (there are a ton available)
- The library is a collection of single 3d objects, where a 3d object is defined by a single .glft (+bin +XML)
- an "asset" in msfs is usually the final ".bgl"
So a modellib (with a plethora of objects) is a sigle asset (because all the models are compiled in a single .bgl). You can anyway have multiple modellib In a projects, for whatever reason, it is indeed possible)
 
Back
Top