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

KKBP 7.0.1 - Unable to Import Character #618

Open
JohnnyStar324 opened this issue Oct 23, 2024 · 4 comments
Open

KKBP 7.0.1 - Unable to Import Character #618

JohnnyStar324 opened this issue Oct 23, 2024 · 4 comments
Labels
importer bug Something isn't working with the Blender importer

Comments

@JohnnyStar324
Copy link

Hi, I'm running into a similar error that was claimed to have been fixed here #495 yet still persists in the latest version, in which the Blender import fails. Card linked below

`Error: Unknown python error occurred.
Make sure the default model imports correctly before troubleshooting on this model!

Traceback (most recent call last):
File "C:\Users\john\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\john\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\john\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\john\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\john\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\importbuttons.py", line 112, in execute
function()
File "C:\Users\john\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\importbuttons.py", line 86, in
lambda:bpy.ops.kkbp.modifymaterial('INVOKE_DEFAULT'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "F:\Blender Stuff\Blender Launcher\stable\blender-4.2.2-stable.c03d7d98a413\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\john\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\john\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`

23  初音 ミク_coolcoffee

@JohnnyStar324 JohnnyStar324 added the importer bug Something isn't working with the Blender importer label Oct 23, 2024
@MoriMorinya
Copy link

MoriMorinya commented Oct 23, 2024

Might be because there are mods that the addon doesn't recognize to export/import properly, considering the errors are all about teeth the headmod might be the problem
image

The other card that is in the issue that is fixed also had this
image

@JohnnyStar324
Copy link
Author

Might be because there are mods that the addon doesn't recognize to export/import properly, considering the errors are all about teeth the headmod might be the problem image

The other card that is in the issue that is fixed also had this image

Yeah, I can confirm that removing the headmods does allow for both cards to at least finish the import but strangely enough, even with the relevant zipmods installed, both the Ruby Rose card from earlier and the Miku card I'm using still spit out the same TypeError. I'm not certain if the issue was properly fixed as it was claimed to be, unless the issue lies on my end

@FlailingFog
Copy link
Owner

I closed that issue because the import finished without any errors, but I just realized that it only did that because I didn't have the zipmod for that headmod, so it fell back to the base game head.

I tried another headmod and got the same error. The headmod you're using is likely missing one of the face materials. I will put in a few checks to allow the import to finish without errors, but even after that it probably won't look correct until you manually fix it

@JohnnyStar324
Copy link
Author

Can confirm that the typeerror is still occurring on the latest 7.1 release. I've attached the relevant zipmods for the card I uploaded in the original post. They're all for Sunshine by the way.
zipmods.zip

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

3 participants