Skip to content

OOT DL importer: DL import from models with skeletons frequently fails with "list index out of range" #15

@raknaar

Description

@raknaar

Blender 3.3.5
oot_model_classes.py", line 425, in setCurrentTransform
self.currentTransformName = self.getLimbName(self.dlList[int(int(name[4:], 16) / MTX_SIZE)].limbIndex)
IndexError: list index out of range

Traceback (most recent call last):
File "Blender\3.3\scripts\addons\fast64-main\fast64_internal\oot\oot_f3d_writer.py", line 541, in execute
obj = importMeshC(
File "Blender\3.3\scripts\addons\fast64-main\fast64_internal\f3d\f3d_parser.py", line 2166, in importMeshC
parseF3D(data, name, transformMatrix, name, name, "oot", drawLayer, f3dContext, True)
File "Blender\3.3\scripts\addons\fast64-main\fast64_internal\f3d\f3d_parser.py", line 1838, in parseF3D
f3dContext.processCommands(dlData, processedDLName, dlCommands)
File "Blender\3.3\scripts\addons\fast64-main\fast64_internal\f3d\f3d_parser.py", line 1502, in processCommands
self.setCurrentTransform(command.params[0])
File "Blender\3.3\scripts\addons\fast64-main\fast64_internal\oot\oot_model_classes.py", line 425, in setCurrentTransform
self.currentTransformName = self.getLimbName(self.dlList[int(int(name[4:], 16) / MTX_SIZE)].limbIndex)
IndexError: list index out of range

Examples of affected displaylist:

Object_skj: gSkullKidRightUpperLegDL gSkullKidRightLowerLegDL gSkullKidLeftFootDL

object_ge1: gGerudoWhiteRightUpperArmDL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions