TheCrazyT / BlenderMhwModelImporter

Plugin for blender to import mod3 files
15 stars 5 forks source link

Vertex Base 0 error when exporting with imported model on latest version of 1.4 #6

Closed UberGrainy closed 5 years ago

UberGrainy commented 5 years ago

Agnaraptor got this error: https://cdn.discordapp.com/attachments/426494287086092298/525706320716890113/Screenshot_133.png

I got the same error when I updated and tried to export with an imported mesh (the same file previously worked on earlier versions). When I switched back to older versions I was able to export without problem.

TheCrazyT commented 5 years ago

Do you have any example file? I thought that it should never get to that exception line on normal/non-corrupted files. Guess i was wrong.

UberGrainy commented 5 years ago

Here you go. base04.zip I'm guessing it may be because "Modifications" has a typo in it?

Traceback (most recent call last): File "Blender Foundation\Blender\2.79\scripts\addons\BlenderMhwModelImporter\operators\mhw_model.py", line 558, in execute checkMeshesForModifiactions(self,i) File "Blender Foundation\Blender\2.79\scripts\addons\BlenderMhwModelImporter\operators\mhw_model.py", line 470, in checkMeshesForModifiactions reserveVerticesAndFaces(export,headerref,parts,p,len(bm.vertices),faceCount) File "Blender Foundation\Blender\2.79\scripts\addons\BlenderMhwModelImporter\operators\mhw_model.py", line 416, in reserveVerticesAndFaces p.modifyVertexCount(parts,newVertexCount) File "Blender Foundation\Blender\2.79\scripts\addons\BlenderMhwModelImporter\operators\mhw_model.py", line 244, in modifyVertexCount raise Exception("No clue how to handle case where VertexBase=0") Exception: No clue how to handle case where VertexBase=0

location: :-1

TheCrazyT commented 5 years ago

I think i fixed it (and also fixed the typo).

UberGrainy commented 5 years ago

It seems to export without error now, thanks. Haven't tried the export in-game yet though.