bestdani / msfs2blend

Import Microsoft Flight Simulator (FS2020) Models in Blender
Apache License 2.0
147 stars 20 forks source link

Trackback errors | Sim Update 5 #16

Open azgoodaz opened 3 years ago

azgoodaz commented 3 years ago

Blender not opening up models anymore? I've been on 2.83 Stable LTS of Blender for over a year now and never had issues opening models now. But I tried to open up a few aircraft models now and I just get Trackback errors now when opening up a model.

Traceback (most recent call last):
  File "C:\Users\Azgoodaz\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_msfs_gltf.py", line 283, in execute
    return import_msfs_gltf(context, self.filepath, self.report)
  File "C:\Users\Azgoodaz\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_msfs_gltf.py", line 255, in import_msfs_gltf
    objects = create_objects(gltf, meshes)
  File "C:\Users\Azgoodaz\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\io_msfs_gltf.py", line 221, in create_objects
    obj.scale = node['scale']
KeyError: 'scale'

location: <unknown location>:-1
bestdani commented 3 years ago

Can someone with the latest MSFS update maybe veryify the issue? Would be deleting / just ignoring the missing scale node in this case just work? Unfortunately I have no MSFS subscription currently due to lack of time for this hobby and cannot investigate what has been changed in the latest update.

azgoodaz commented 3 years ago

Can someone with the latest MSFS update maybe veryify the issue? Would be deleting / just ignoring the missing scale node in this case just work? Unfortunately I have no MSFS subscription currently due to lack of time for this hobby and cannot investigate what has been changed in the latest update.

A non-developer fixed the issue. Maybe you can push this update? https://forums.flightsimulator.com/t/3d-livery-painting-on-the-msfs-models/257637/128

RoscoHead commented 3 years ago

I can confirm the problem, and that the linked version fixes it :)

RoscoHead commented 3 years ago

However, I notice the UV map for the prop on the 152 is massively out of scale - might this be related? https://www.fsdeveloper.com/forum/threads/prop-texture-in-c152.453243/

bestdani commented 3 years ago

Since the issue seems to be caused by some missing scale node information that had been used before and now is simply ignored when they are "missing", this would explain the out of scale UV map in this case if it didn't happen before.

Maybe Microsoft / Asobo changed the file format as part of the optimizaion process or so? Unfortunately there's nothing really left from the Khronos glTF standard anymore in these MS / Asobo "glTF" files anyway.

timothyj6767 commented 3 years ago

Cannot import aircraft traceback error ..Newest update blender and the sim.. Python: Traceback (most recent call last): File "C:\Users\t_han\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_msfs_gltf.py", line 327, in execute return import_msfs_gltf(context, self.filepath, self.report) File "C:\Users\t_han\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_msfs_gltf.py", line 302, in import_msfs_gltf objects = create_objects(gltf['nodes'], meshes) File "C:\Users\t_han\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\io_msfs_gltf.py", line 238, in create_objects scale = node['scale'] KeyError: 'scale'

location: :-1

I have the sim installed on a different drive than C if that matters?

timothyj6767 commented 3 years ago

I get this error using the latest version of blender and the latest update ..please fix.. import_error

JackMcLeanGSY commented 3 years ago

Do you get this error on every aircraft?

Slowe09 commented 9 months ago

I get this error using the latest version of blender and the latest update ..please fix.. import_error

Hey, I want to do my own livery too but have the same problem. I just wanted to ask if you found the solution.