RichysHub / MagicaVoxel-VOX-importer

Blender import script for MagicaVoxel .vox format as cube primitives.
MIT License
225 stars 56 forks source link

Blender 3.0.0 Error, MagicaVoxel-0.99.7.0-win64 #22

Open Gosha-say opened 2 years ago

Gosha-say commented 2 years ago

Python: Traceback (most recent call last): File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scene_vox.py", line 126, in execute import_vox(path, **keywords) File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\3.0\scripts\addons\io_scene_vox.py", line 180, in import_vox assert (struct.unpack('<4ci', vox.read(8)) == (b'V', b'O', b'X', b' ', 150)) AssertionError

location: :-1

dustinspace commented 2 years ago

for me the same :-(

If you can tell me how to debug the Blender Pyton files I would be glad to help correcting the errors. I have some python background but I have no knowledge on which tools/methods are better suited for debugging, in case of Blender scripts.

thanks.

dustinspace commented 2 years ago

the error occurs because there is a newer version of the VOX files, and the importer is not up-to-date. I did create a PullReq, which solves (partially) the problem. You could be able to read the first model in the project correctly.