cuddlyogre / ExportLDraw

LDraw Import and Exporter for Blender 2.82+
GNU General Public License v2.0
49 stars 12 forks source link

struct.unpack error importing some LDraw colors with Studio part library #33

Open ScanMountGoat opened 1 year ago

ScanMountGoat commented 1 year ago

Importing fails for files with unrecognized colors. You can find an LDraw file with every color that I used for testing at the link below. Importing works fine with the official LDraw library. https://github.com/ScanMountGoat/ldr_tools_blender/blob/main/models/colors.ldr

cuddlyogre commented 1 year ago

What is the color code that gives the error? I was able to import the file you linked to without issue.

Would you be able to share your LDCfgalt.ldr and LDConfig.ldr files? I've been working off of the most up to date LDraw library so you may have an older copy that I don't that has color codes that have been retired.

ScanMountGoat commented 1 year ago

This is just with the Bricklink Studio parts library. Their color config files are missing some of the colors. Opening that file in Studio results in a lot of colors defaulting to black, for example.

ScanMountGoat commented 1 year ago

Here's the config file if you don't want to download Studio. They don't seem to include an LDCfgalt.ldr in the Studio library. LDConfig Studio.zip