ExportLDraw icon indicating copy to clipboard operation
ExportLDraw copied to clipboard

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

Open ScanMountGoat opened this issue 2 years ago • 3 comments

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

ScanMountGoat avatar Apr 22 '23 14:04 ScanMountGoat

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.

cuddlyogre avatar Apr 24 '23 06:04 cuddlyogre

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 avatar Apr 24 '23 13:04 ScanMountGoat

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

ScanMountGoat avatar Apr 24 '23 15:04 ScanMountGoat