REDxEYE / SourceIO

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

IndexError: list index out of range #302

Closed MelonHell closed 3 weeks ago

MelonHell commented 3 weeks 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 3 weeks ago

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

MelonHell commented 3 weeks ago

This seems to solve the problem. I feel stupid