Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot import character into Blender KKBP 7.0.0 #602

Closed
Eidenz opened this issue Sep 20, 2024 · 1 comment
Closed

Cannot import character into Blender KKBP 7.0.0 #602

Eidenz opened this issue Sep 20, 2024 · 1 comment
Labels
importer bug Something isn't working with the Blender importer

Comments

@Eidenz
Copy link

Eidenz commented Sep 20, 2024

Hello, when try to import the character I get the following error after a while:

Traceback (most recent call last):
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 52, in execute
    self.replace_materials_for_body()
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 236, in replace_materials_for_body
    swap_body_material([self.body['SMR materials']['cf_O_tooth'][0] + '.001'],'KK Fangs (tooth.001)')
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: only strings are allowed as keys of ID properties

Error: Traceback (most recent call last):
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 52, in execute
    self.replace_materials_for_body()
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 236, in replace_materials_for_body
    swap_body_material([self.body['SMR materials']['cf_O_tooth'][0] + '.001'],'KK Fangs (tooth.001)')
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: only strings are allowed as keys of ID properties

Traceback (most recent call last):
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\importbuttons.py", line 112, in execute
    function()
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\importbuttons.py", line 86, in <lambda>
    lambda:bpy.ops.kkbp.modifymaterial('INVOKE_DEFAULT'),
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files (x86)\Steam\steamapps\common\Blender\4.2\scripts\modules\bpy\ops.py", line 107, in __call__
    ret = _op_call(self.idname_py(), kw, C_exec, C_undo)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Error: Traceback (most recent call last):
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 52, in execute
    self.replace_materials_for_body()
  File "C:\Users\eiden\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 236, in replace_materials_for_body
    swap_body_material([self.body['SMR materials']['cf_O_tooth'][0] + '.001'],'KK Fangs (tooth.001)')
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
TypeError: only strings are allowed as keys of ID properties

Problem is my character is an asset I'm not allowed to share, so hopefully the traceback is enough?

Running Blender 4.2.1 LTS.

@Eidenz Eidenz added the importer bug Something isn't working with the Blender importer label Sep 20, 2024
@FlailingFog
Copy link
Owner

FlailingFog commented Nov 4, 2024

I think you're running into the same issue as #618, where your headmod is missing one of the face materials, so I'm going to close this one in favor of that one. I added the checks mentions in #618, so if you want to try it again in KKBP 7.1.0 it might import without erroring out, but if not then I need to add more checks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
importer bug Something isn't working with the Blender importer
Projects
None yet
Development

No branches or pull requests

2 participants