Cannot load in custom model

Hello, I export my model from blender using the Asobo exporter. Everything works fine but when I try to load my model inside MSFS using the “fspackagetool.exe” I get this errors does anybody know why?

Error: project XML: C:\MSFS Whaley\My Projects\fushi-sun-siyam\fushi-sun-siyam.xml
temp dir:    C:\MSFS Whaley\My Projects\fushi-sun-siyam
output dir:  C:\MSFS Whaley\My Projects\fushi-sun-siyam
PackageBuilder | Reading C:\MSFS Whaley\My Projects\fushi-sun-siyam\fushi-sun-siyam.xml...
PackageBuilder | Preparing asset groups...
PackageBuilder | Done, 4 asset groups registered.
PackageBuilder | Generating commands for package vtmagroup-airport-airf-iru-fushi...
PackageBuilder | Preparing commands for asset group ContentInfo...
PackageBuilder | Preparing commands for asset group scenery...
PackageBuilder | Preparing commands for asset group Sun-Siyam-Iru-Fushi-ModelLib...
used extension not supported: KHR_materials_specular
used extension not supported: KHR_materials_ior
glTFLister | Model texture not found in the texture directories: 'Plaster001_2K-JPG_Color White.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Plaster001_2K-JPG_Roughness White.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Plaster001_2K-JPG_NormalDX White.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Planks012_2K-JPG_Color.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Planks012_2K-JPG_Roughness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Planks012_2K-JPG_NormalDX.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Asphalt029A_2K-JPG_Color Red.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Asphalt029A_2K-JPG_Roughness Red.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Asphalt029A_2K-JPG_NormalDX Red.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Wood073_2K-JPG_Color.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Wood073_2K-JPG_Roughness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Wood073_2K-JPG_NormalDX.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'No Smok.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Iru Fushi Maruhaba.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Planks018_2K-JPG_Color.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Planks018_2K-JPG_Roughness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Planks018_2K-JPG_NormalDX.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Metal032_2K-JPG_Color.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Metal032_2K-JPG_Roughness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Metal032_2K-JPG_NormalDX.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Wood077_2K-JPG_Color.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Wood028_2K-JPG_Roughness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Wood028_2K-JPG_NormalDX.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'PaintedMetal002_2K-JPG_Color.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'PaintedMetal002_2K-JPG_Roughness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'PaintedMetal002_2K-JPG_NormalDX.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'PaintedMetal002_2K-JPG_Metalness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'WoodSiding010_2K-JPG_Color.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'WoodSiding010_2K-JPG_Roughness.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'WoodSiding010_2K-JPG_NormalDX.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'tire_texture_color_2k.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Tire_Texture_roughness_2k.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'texture_tire_normal_2k.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Concrete042A_4K-JPG_Color Grey.png' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Concrete042A_4K-JPG_Roughness Grey.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
glTFLister | Model texture not found in the texture directories: 'Concrete042A_4K-JPG_NormalDX Grey.jpg' - for model: 'C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.gltf'
Failed to find asset group where the given path is located C
PackageBuilder | Could not find asset group for file C:\MSFS Whaley\My Projects\fushi-sun-siyam\PackageSources\Sun-Siyam-Iru-Fushi-ModelLib\dockingairf\dockingairf.bin
PackageBuilder | Ready, 6 commands added.
PackageBuilder | Listing took 0s015ms.
PackageBuilder | Starting the build...
PackageBuilder | Build package vtmagroup-airport-airf-iru-fushi ...
PackageBuilder | Building assets for the package vtmagroup-airport-airf-iru-fushi...
Compiling BGL file from in-memory data to output file PackageSources.BGL...
INTERNAL COMPILER ERROR:  #C2965: GLTF : XML version is invalid! (valid versions are : 1.1)
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 = C:\MSFS Whaley\My Projects\fushi-sun-siyam\_PackageInt\_tempFiles\vtmagroup-airport-airf-iru-fushi\Sun-Siyam-Iru-Fushi-ModelLib\Scenery\airport-airf-iru-fushi\scenery\AIRF.xml
ERROR:  >
ERROR:
INTERNAL COMPILER ERROR:  #C2024: Failed to process closing element tag <GLTFData> near line 2!
INTERNAL COMPILER ERROR:  #C2607: Compilation errors detected, compilation failed!
INTERNAL COMPILER ERROR:  #C2006: Parse failed  (0x       0)
PackageBuilder | Output path does not exist: C:\MSFS Whaley\My Projects\fushi-sun-siyam\Packages\vtmagroup-airport-airf-iru-fushi\Scenery\airport-airf-iru-fushi\Sun-Siyam-Iru-Fushi-ModelLib\PackageSources.BGL
PackageBuilder | Skip mirroring due to command failures.
PackageBuilder | Skip generation of package information due to command failures.
PackageBuilder | Finished, 7 skipped, 0 done and 1 failed, took 0s047ms.   Failed:  [vtmagroup-airport-airf-iru-fushi/Sun-Siyam-Iru-Fushi-ModelLib](5578493090620040915) - Command class AssetBuilder::BGLCompilerCommand_G

It worked one time on one model but not anymore.

Maybe If you guys need it I can send you some pictures of my directory.

You do have a “texture” folder (With your textures inside of it) inside of your “Sun-Siyam-Iru-Fushi-ModelLib” directory, correct?

Also, wild guess here but the two lines:
used extension not supported: KHR_materials_specular
used extension not supported: KHR_materials_ior

lead me to believe that you might not be using a proper MSFS material. What program are you exporting from and what gltf exporter are you using?

I am using the current Asobo Exporter GitHub - AsoboStudio/glTF-Blender-IO-MSFS

I am using blender and I put all my materials I use in my texture folder inside my ModelLib folder.

What version of Blender?

I am using 3.3.11

If you need more Information’s please tell me

Send whatever you are willing to post publicly.

A directory overview looking inside of the “Sun-Siyam-Iru-Fushi-ModelLib” directory, a folder of one of the models that’s failing, the models XML, and the texture folder would be a good start.

If you want to go a bit extra, a blender file with one of the models isolated so that I could review how you have things set up/plus do an export and maybe your current gltf+bin and textures for that same model to be able to run a test build. Hands-on is a bit easier to debug, but obviously I understand if this is something you’re doing for payware and you don’t want the files out there. Just a bit easier to debug when you don’t have to make guesses.

No problem it will be a freeware Scenery.





Iru Fusi Seaplane Port.zip (1.2 MB)

And here are the Textures. It was to big so I uploaded it here: My Files

I hate to do this to you - but do you think you could reupload the textures in a zip file?
Mediafire wants me to download them all individually since I don’t have a paid account and I keep loosing track of what I do and don’t have downloaded already. lol

Also, could you throw in the gltf you exported so I can compare it to mine? Thanks!

Hi,

you have 2 main issue preveting correct compile

1- hate to say, but geometry is bad, maybe is coming from an import from sketchup or sort of.
Anyway, in blender do the following
object mode, A to select all, edit mode, vertex selection, M to merge by distance (default value is ok), this will remove a bunch of verteces duplicates
Then Mesh/Clean Up/Delete Loose and Mesh Clean Up/Degenerate Dissolve. Do those two step until in the status bar you reach “Removed:0 vertices, 0 edges, 0 faces”
Now your geometry is fixed
Bad geometry in the compiler translates to: INTERNAL COMPILER ERROR: #C2340: Failed to finalize MODEL_DATA!
@FlyingRaccoon can’t you guys make this more clear?
the whole errors list is very misleading for newcomers

2- one of your texture (Iru Fushi Maruhaba) has wrong dimension, original is 608x879, both dimension must be a multiple of four, resize it to 608x880

any wrong texture makes impossible to compile

those two fixes will make your object valid

Now lets come to other stuff

  • when using MSFS standard material, you shouldn’t really put “_roughness” or “_metallic” map in the “OCCLUSION/ROUGHNESS/METALLIC” slot in Blender. That slot is for a specific made texture, using the and ambient occlusion in the red channel, the roughness in the green channel and the metallic in the blue channel, you can do this composition in Photoshop/Gimp or any photo editing software

  • in Blender, in the Asobo Exporter settings, you need to have “Apply Modifiers” selected, otherwise your Modifiers (like solidy and array on your tires) won’t be applied when exporting

optional

  • i would avoid putting materials texture inside the modelLib/texture folder, that will contain the textures created during export of all your models. (I like to keep generic textures inside my Documents folders, and model specific texture in the the modelLib/modelName folder)

The attached zip contains the blend with all the fixes and the gltf
(if you need to work on the blend you will need to locate your textures using Files/External Data/Find missing files)

dockingairf.zip (2.2 MB)

2 Likes

I tried but it’s to big

Oh thank you really much for the help I really appreciate that!

1 Like

hey one question what do you mean with " * i would avoid putting materials texture inside the modelLib/texture folder, that will contain the textures created during export of all your models. (I like to keep generic textures inside my Documents folders, and model specific texture in the the modelLib/modelName folder)"

I still get the error :sweat_smile:

mmm did you follow every step?

anyway

this is again it, it compiles correctly, no errors
because I’m kind, I have created the comp textures for you
and removed all the unused ones

2 Likes

Thank you so much. Is there anyway I can support you. Thank you so much for the help.

May I ask how you have done the comp textures?

It’s working now but when i go into the simulator I get this pink texture and not the textures I applied to the model