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

blender to msfs2024 exports textures but no .xml files

Messages
168
Country
hungary
Can somebody pls help me? I exported all models with textures with no problems but with one it doesn't work... it exports textures and all necessary files for models but no xml in the texture folder...
1740239902179.png
 
Last edited:
Can somebody pls help me? I exported all models with textures with no problems but with one it doesn't work... it exports textures and all necessary files for models but no xml in the texture folder...
View attachment 95769
- Remove spaces from your paths and texture files names
- If your textures are embedded in the .blend, unpack them
- source textures should be in the same drive of destination ones (exported)
 
How to make your own .xml file? can you give me instructions pls?
This isn't going to help here, as your issue isn't a lack of XML for the textures, it's that the textures are not found. I'm not sure how to fix this, but I think that Mamu's suggestion of getting rid of the spaces in the paths would be a good idea to start with.
 
When I have a Blender project, I keep the .blend, and all textures in the same working folder. If I am making an onion, I would have an onion folder on my desktop. In that folder I would have all my textures to be used and the onion.blend I would make sure all the textures in the blender file referenced only those textures in the onion folder. Now both Blender and the MSFS 2024 exporter can find those textures. And I can just drag'n'drop the onion.blend file onto my Blender icon, and it loads with the textures.

For a project that searches all over the PC for textures, I would pack the textures to the blend file and save. Then reload the .blend file and unpack, then save. That should write (unpack) all the textures to the same folder as the .blend (onion folder on the desktop in this case).

As is usual for debugging, it's best to upload a zip file to the cloud that contains all the textures used and the .blend file, and link it here. Then someone can actually pinpoint the problem.
 
now this is what I get when I try to export:

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 36, in from_union

return f(x)

^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 850, in <lambda>

result["occlusionTexture"] = from_union([lambda x: to_class(MaterialOcclusionTextureInfoClass, x), from_none],

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 55, in to_class

assert isinstance(x, c)

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 36, in from_union

return f(x)

^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 28, in from_none

assert x is None

^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 36, in from_union

return f(x)

^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 1196, in <lambda>

result["materials"] = from_union([lambda x: from_list(lambda x: to_class(Material, x), x), from_none],

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 61, in from_list

return [f(y) for y in x]

^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 61, in <listcomp>

return [f(y) for y in x]

^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 1196, in <lambda>

result["materials"] = from_union([lambda x: from_list(lambda x: to_class(Material, x), x), from_none],

^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 56, in to_class

return x.to_dict()

^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 850, in to_dict

result["occlusionTexture"] = from_union([lambda x: to_class(MaterialOcclusionTextureInfoClass, x), from_none],

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 46, in from_union

assert False

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 36, in from_union

return f(x)

^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 28, in from_none

assert x is None

^^^^^^^^^

Read blend: "E:\NTTBV2\blender\173bc2c37b4d.blend"

scene set 0000022D1BAF2A00

scene set 0000022D1BAF2A00

Traceback (most recent call last):

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\__init__.py", line 1315, in execute

res = gltf2_blender_export.save(context, export_settings)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 37, in save

json, buffer = __export(export_settings)

^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 65, in __export

__detect_animated_extensions(exporter.glTF.to_dict(), export_settings)

^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 1196, in to_dict

result["materials"] = from_union([lambda x: from_list(lambda x: to_class(Material, x), x), from_none],

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 46, in from_union

assert False

AssertionError

Traceback (most recent call last):

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2_msfs_2024\io\exp\msfs_multi_export.py", line 323, in export

gltf = self.export_blender_4_2(context, file_path, self.msfs_export_settings)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2_msfs_2024\io\exp\msfs_multi_export.py", line 230, in export_blender_4_2

return bpy.ops.export_scene.gltf(

^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\modules\bpy\ops.py", line 109, in __call__

ret = _op_call(self.idname_py(), kw)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

RuntimeError: Error: Python: Traceback (most recent call last):

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\__init__.py", line 1315, in execute

res = gltf2_blender_export.save(context, export_settings)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 37, in save

json, buffer = __export(export_settings)

^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 65, in __export

__detect_animated_extensions(exporter.glTF.to_dict(), export_settings)

^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 1196, in to_dict

result["materials"] = from_union([lambda x: from_list(lambda x: to_class(Material, x), x), from_none],

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py", line 46, in from_union

assert False

AssertionError

Location: E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\modules\bpy\ops.py:109

ERROR An error occurred on line 36 in statement return f(x)

ERROR An error occurred on line 850 in statement result["occlusionTexture"] = from_union([lambda x: to_class(MaterialOcclusionTextureInfoClass, x), from_none],

ERROR An error occurred on line 55 in statement assert isinstance(x, c)

ERROR An error occurred on line 36 in statement return f(x)

ERROR An error occurred on line 28 in statement assert x is None

ERROR An error occurred on line 36 in statement return f(x)

ERROR An error occurred on line 1196 in statement result["materials"] = from_union([lambda x: from_list(lambda x: to_class(Material, x), x), from_none],

ERROR An error occurred on line 61 in statement return [f(y) for y in x]

ERROR An error occurred on line 61 in statement return [f(y) for y in x]

ERROR An error occurred on line 1196 in statement result["materials"] = from_union([lambda x: from_list(lambda x: to_class(Material, x), x), from_none],

ERROR An error occurred on line 56 in statement return x.to_dict()

ERROR An error occurred on line 850 in statement result["occlusionTexture"] = from_union([lambda x: to_class(MaterialOcclusionTextureInfoClass, x), from_none],

ERROR An error occurred on line 46 in statement assert False

ERROR An error occurred on line 36 in statement return f(x)

ERROR An error occurred on line 28 in statement assert x is None

Error: Python: Traceback (most recent call last):

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\__init__.py", line 1315, in execute

res = gltf2_blender_export.save(context, export_settings)

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 37, in save

json, buffer = __export(export_settings)

^^^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\blender\exp\gltf2_blender_export.py", line 65, in __export

__detect_animated_extensions(exporter.glTF.to_dict(), export_settings)

^^^^^^^^^^^^^^^^^^^^^^^

File "E:\MSFS2024 Scenery Creation Tools\blender-4.2.10-windows-x64\4.2\scripts\addons_core\io_scene_gltf2\io\com\gltf2_io.py... truncated

[TEXTURELIB] New TextureLib generation started at 2026-04-01 20:17:51.398552

[TEXTURELIB] Operation completed in 0.0

Export finished in 0:00:07.032768
Info: Export Completed
 
Back
Top