FlailingFog / KK-Blender-Porter-Pack

Plugin pack for exporting Koikatsu characters to Blender.
Other
373 stars 30 forks source link

KKBP importer "list index out of range" not completing male import #592

Closed prime15n16 closed 3 months ago

prime15n16 commented 3 months ago

Trying to import this male, but it isn't finalizing and allowing me to import animations, it worked for my female character. I'm using KKBP 7.0.0 in Blender 4.2, with 3.6.9 as the older dependency, as well as the Koikatsu Sunshine Better Repack updated to include the T-Pose.

KoikatsuSun_M_20240609200349950_Connor Mason_prime15

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\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 74, in execute self.load_json_colors() File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 1020, in load_json_colors self.update_shaders(json_color_data, self.lut_selection, self.lut_light, light = True) # Set light colors ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 1471, in update_shaders shader_inputs['Skin color'].default_value = body_colors[0] if light else body_colors[5]


IndexError: list index out of range

Error: Traceback (most recent call last):
  File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 74, in execute
    self.load_json_colors()
  File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 1020, in load_json_colors
    self.update_shaders(json_color_data, self.lut_selection, self.lut_light, light = True) # Set light colors
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 1471, in update_shaders
    shader_inputs['Skin color'].default_value = body_colors[0] if light else body_colors[5]
                                                ~~~~~~~~~~~^^^
IndexError: list index out of range

Traceback (most recent call last):
  File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\importbuttons.py", line 97, in execute
    function()
  File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\importbuttons.py", line 71, in <lambda>
    lambda:bpy.ops.kkbp.modifymaterial('INVOKE_DEFAULT'),
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Program Files\Blender Foundation\Blender 4.2\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\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 74, in execute
    self.load_json_colors()
  File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 1020, in load_json_colors
    self.update_shaders(json_color_data, self.lut_selection, self.lut_light, light = True) # Set light colors
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\prime\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\kkbp\importing\modifymaterial.py", line 1471, in update_shaders
    shader_inputs['Skin color'].default_value = body_colors[0] if light else body_colors[5]
                                                ~~~~~~~~~~~^^^
IndexError: list index out of range
prime15n16 commented 3 months ago

the import single animations and create animation library buttons are also faded out and don't work

FlailingFog commented 3 months ago

The animation buttons will only work if you import with the KKBP rigify armature and have the rokoko studio live addon installed. And I'm not sure why it isn't working because that card imports correctly for me.

Could you make sure you're using the KKBP_exporter.dll from this release? https://github.com/FlailingFog/KK-Blender-Porter-Pack/releases/tag/V7.0.0_release_preview

prime15n16 commented 3 months ago

Whack, I'm sure I have the right version of the exporter cuz it worked with a female card, Rokoko and rigify are enabled too. I'm gonna try redownloading the exporter and go from there, I wonder if BepinEx version might be a factor?

prime15n16 commented 3 months ago

Welp, after trying that, it works! I don't know what was wrong with my initial character exports, but redownloading the KKBP exporter worked, and it ran the rigify script!