Sarah-C / BlenderImportLDD

Blender Lego Digital Designer importer.
MIT License
0 stars 1 forks source link

improve error reporting #2

Open Cornerback24 opened 1 month ago

Cornerback24 commented 1 month ago

Suggest changes to improve error reporting to hopefully make troubleshooting easier. Also change EN/localizedStrings.loc to not be hard requirement. Do whatever you want with this, merge it or just copy from it or whatever :)

Jackpedleham commented 1 month ago

I get this error using yours:

Found db.lif C:\Users\Jack\AppData\Roaming\LEGO Company\LEGO Digital Designer\db.lif. Will use this. File does not exist: C:\MaterialNames\EN\localizedStrings.loc DB Version: 777 Database OK. Traceback (most recent call last): File "C:\Users\Jack\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\BlenderImportLDD.py", line 1513, in execute return convertldd_data(context, self.filepath, self.lddLIFPath, self.useLogoStuds, self.useLDDCamera, self) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Jack\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\BlenderImportLDD.py", line 1442, in convertldd_data if converter.LoadScene(filename=filepath): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Jack\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\BlenderImportLDD.py", line 964, in LoadScene self.scene = Scene(file=filename) ^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Jack\AppData\Roaming\Blender Foundation\Blender\4.1\scripts\addons\BlenderImportLDD.py", line 292, in init print('Scene "'+ self.Name + '" Brickversion: ' + str(self.Version)) ^^^^^^^^^^^^ AttributeError: 'Scene' object has no attribute 'Version'

Cornerback24 commented 1 month ago

Hmm can you add a file that fails to import to a zip and attach the zip to a comment here or on the other thread? (If you're ok with the file being public here.) That error seems to me like the plugin is not finding data it expects the file. Maybe there's something slightly different about how whatever version of LEGO Digital Designer you're using makes the file.