Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import fail Cod2 solo map #5

Closed
GoldenBlack4 opened this issue Sep 15, 2022 · 3 comments
Closed

Import fail Cod2 solo map #5

GoldenBlack4 opened this issue Sep 15, 2022 · 3 comments

Comments

@GoldenBlack4
Copy link

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
Copy link
Owner

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
Copy link
Author

Thank you !

@mauserzjeh
Copy link
Owner

Should be fixed now. Check the latest release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants