REDxEYE / SourceIO

SourceIO is an Blender(3.4+) addon for importing source engine textures/models/maps
https://discord.gg/XJvhzaXZf3
MIT License
644 stars 59 forks source link

IndexError: list index out of range #302

Closed MelonHell closed 5 months ago

MelonHell commented 5 months ago

Steps to reproduce:

Other:

I was able to load the map by replacing this line https://github.com/REDxEYE/SourceIO/blob/c6809932a31d7ca01816dc9aa1b30e9b07fd82fb/blender_bindings/source1/bsp/import_bsp.py#L131 with this:

                try:
                    model_name = static_prop_lump.model_names[prop.prop_type]
                except Exception as e:
                    continue
REDxEYE commented 5 months ago

Make sure to set steam app id override to CSGO, otherwise, sourceio have no idea what version of BSP it is

MelonHell commented 5 months ago

This seems to solve the problem. I feel stupid