mauserzjeh / cod-asset-importer

Blender addon for importing Call of Duty assets
GNU General Public License v3.0
29 stars 7 forks source link

Import fail Cod2 solo map #5

Closed GoldenBlack4 closed 2 years ago

GoldenBlack4 commented 2 years ago

Hello there. I have the same problem right now with some maps on Cod2:

Traceback (most recent call last):
  File "C:\Users\cedri\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\cod_asset_importer\assets\ibsp.py", line 367, in load
    self.entities = self._read_entities(file, self.version, lumps) # entities
  File "C:\Users\cedri\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\cod_asset_importer\assets\ibsp.py", line 322, in _read_entities
    angles.x = float(a[0])
ValueError: could not convert string to float: ''
[ERROR] ibsp.py:394 None
[ERROR] importer.py:40 Error loading map: C:\Users\cedri\Desktop\COD2Master\assets\maps\duhoc_assault.d3dbsp

Great improvement btw, thanks!

mauserzjeh commented 2 years ago

Hi!

I will try to look at it this weekend. Seems like not all entities have the same angle formats, thus the conversion is failing for some. I will try to get back to you asap.

Thanks for reporting the bug.

GoldenBlack4 commented 2 years ago

Thank you !

mauserzjeh commented 2 years ago

Should be fixed now. Check the latest release