taniwha / io_object_mu

Python .mu reader/writer and blender import/export addon
GNU General Public License v2.0
120 stars 51 forks source link

Model fails to import #40

Open blowfishpro opened 4 years ago

blowfishpro commented 4 years ago

https://github.com/CobaltWolf/Bluedog-Design-Bureau/blob/431472fe19703b47233dde4098b13a9c686f7a2d/Gamedata/Bluedog_DB/Parts/Titan/bluedog_LR87_11_Single.mu

Traceback (most recent call last):
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\operators.py", line 79, in execute
    return import_mu_op(self, context, **keywords)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\operators.py", line 37, in import_mu_op
    ret = import_mu(collection, filepath, create_colliders, force_armature, force_mesh)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\import_mu.py", line 203, in import_mu
    return process_mu(mu, os.path.dirname(filepath)), mu
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\import_mu.py", line 188, in process_mu
    create_armatures(mu)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\import_mu.py", line 182, in create_armatures
    scan_for_skins(mu, mu.obj)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\import_mu.py", line 178, in scan_for_skins
    scan_for_skins(mu, child)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\import_mu.py", line 178, in scan_for_skins
    scan_for_skins(mu, child)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\import_mu.py", line 176, in scan_for_skins
    process_skins(mu, skins, obj.children)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\armature.py", line 210, in process_skins
    bones, roots, parents = find_bones(mu, skins, siblings)
  File "C:\Program Files\Blender Foundation\Blender 2.83\2.83\scripts\addons\io_object_mu\import_mu\armature.py", line 147, in find_bones
    if b in siblings or b.parent in skins:
AttributeError: 'NoneType' object has no attribute 'parent'

location: <unknown location>:-1
Olympic1 commented 4 years ago

I'm getting the same error when trying to open the stock .mu file of 'Drill-O-Matic' Mining Excavator. Path: GameData\Squad\Parts\Resources\RadialDrill\TriBitDrill.mu

whyAREyouRUNNING-debug commented 3 years ago

If this is blowfishpro (creator of the b9 mods) saying an issue, it needs to be seen.

popos123 commented 1 month ago

I'm getting the same error when trying to open the stock .mu file of 'Drill-O-Matic' Mining Excavator. Path: GameData\Squad\Parts\Resources\RadialDrill\TriBitDrill.mu

YES, exactly, from all Stock and from DLC parts, this is only one part that doesn't work (TriBitDrill.mu) !!!!! I propose that author should resolve this problem and make 100% of openable / exportable parts 😊

popos123 commented 1 month ago

i was make an update, now all models from stock and popular mods are loaded correctly, only this piece of garbage TriBitDrill.mu have problem with animations: image maybe importing / exporting is ok but in this case the bones from armature is unconnected and is mess: image but, rest of parts is ok, for now i dont know how to fix this part, maybe @taniwha knows how to fix that