FlailingFog / KK-Blender-Porter-Pack

Plugin pack for exporting Koikatsu characters to Blender.
310 stars 29 forks source link

V6.4.2 incorrect bone hierarchy (not sure if it's my card or universal) #397

Closed johnvo0918 closed 7 months ago

johnvo0918 commented 1 year ago

real bug this time i promise i'm really invested in this project and documenting my problems with it. When choosing Use KKBP Armature + Very Simple + Unity - VRM compatible. Your Upper legs (named Left Leg and Right Leg) are placed under the wrong bones

image

This will cause a problem the upper left and right leg to not be child of Hip, the model will not work and the fingers apparently is affecting the t pose.

image

(also unused bones are still not being deleted)

johnvo0918 commented 1 year ago

update: Pelvis is completely in the wrong position in the hierarchy, the skirt bones are under it and if you choose Hips instead of Pelvis your skirts wont follow you at all. (im too balls deep into making this model the only way to fix this bs is to restart the project)

FlailingFog commented 1 year ago

I'm not sure what's going on, but this is what I get after using KKBP Armature + Very Simple + Unity - VRM compatible. image

I also don't have a Pelvis bone or cf_j_waist02 bone after running the script. The prep script should delete the original HIps bone and rename the Pelvis bone to act as a new "Hips" bone

johnvo0918 commented 1 year ago

https://github.com/FlailingFog/KK-Blender-Porter-Pack/issues/394 The card is from here if you want to take a look.

johnvo0918 commented 1 year ago

Koikatu_F_20230302002219610_Kaiz 5_K actually here is the most updated card. nothing much changed. but the previous card was a little old. trying 6.5

FlailingFog commented 1 year ago

Okay yeah, I think the accessory in slot 19 is causing the issue. Right after import it has bone names that are Spine and Chest that cause the real Spine and Chest to get a .001 at the end of them: image

After using KKBP Armature + Very Simple + Unity - VRM compatible on your card (Gives an error about not finding a bone named "Spine", so this is probably why you're getting weird results): image

It's fixable though:

This gives the correct Unity compatible bone hierarchy: image

johnvo0918 commented 1 year ago

@FlailingFog Hey! sorry for the super late response. Since you said that accessory 19 was the problem, I went ahead and changed it to another item and reexported. So far so good It's working on 6.5. But I have a few questions

` Info: Applied modifier was not first, result may not be as expected (repeated infinite time for 4-5 hours...) Light None Camera None Armature POSE Body None Outfit 00 None Outfit 01 None Outfit 02 None Outfit 03 None Outfit 04 None Outfit 05 None Outfit 06 None Tears None Gag Eyes None Hair Outfit 00 None Hair Outfit 01 None Hair Outfit 04 None Hair Outfit 05 None Info: cats merge weights success Editing armature for VRM...

Error: Unknown python error occurred Traceback (most recent call last): File "C:\Users\KaizPC\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\KK-Blender-Porter-Pack-650\exporting\exportprep.py", line 251, in execute main(prep_type, simp_type) File "C:\Users\KaizPC\AppData\Roaming\Blender Foundation\Blender\3.5\scripts\addons\KK-Blender-Porter-Pack-650\exporting\exportprep.py", line 115, in main armature.data.edit_bones['Spine'].parent = armature.data.edit_bones['Pelvis'] KeyError: 'bpy_prop_collection[key]: key "Spine" not found'`

after running the prep script (immediately after importing and enabling only the outfit/hair pieces i want to keep), this error showed up. I will continue export to unity to see if the bone hierarchy is correct, I will assume it is correct since i can't find another Spine bone in the list despite it being named Spine.001

Most recent card if you want to take a look

Koikatu_F_20230507170323634_Kaiz 5_K

johnvo0918 commented 1 year ago

just found out that is the error. will try looking through again. yup even though changing item 19 to a whole different item. the slot 19 still causes problem when prepping. changing name fixed it.