Skip to content

struct.error: unpack requires a buffer of 8 bytes #3

Description

@LizLazem

I receive this error when importing this killer7 model:

Traceback (most recent call last):
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\__init__.py", line 76, in execute
    status = import_hsd.load(self, context, path, self.offset, self.section, self.data_type, self.import_animation, self.ik_hack, self.max_frame, self.use_max_frame)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 2851, in load
    return load_hsd(filepath, context, offset, scene_name, data_type, import_animation)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 121, in load_hsd
    load_scene(data, scene_info, info[0:], filepath, import_animation)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 142, in load_scene
    mesh_dict, material_dict = init_geometry()
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 706, in init_geometry
    ob = make_mesh(pobj, mesh_dict)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 1822, in make_mesh
    ob = make_mesh_object(pobj, name)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 1990, in make_mesh_object
    sources, facelists, normdicts = read_geometry(vtxdesclist, displist, displistsize)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 2575, in read_geometry
    vertices = read_vertex_data(vtxdesc, indices)
  File "C:\Users\user\AppData\Roaming\Blender Foundation\Blender\2.83\scripts\addons\Blender-Addon-Gamecube-Models-main\import_hsd.py", line 2609, in read_vertex_data
    value = struct.unpack(descfmt, base_ptr[pos:pos + descsize])
struct.error: unpack requires a buffer of 8 bytes

location: <unknown location>:-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions