KILLTUBE / corvid

Source Engine level converter for Call of Duty.
GNU Lesser General Public License v2.1
55 stars 12 forks source link

convertLight error when _light doesn't have a fourth color property #2

Closed selimnahimi closed 3 years ago

selimnahimi commented 3 years ago

in MapExporter.py, around line 274, rarely there's a case when an entity's _light property has 3 numbers. I've encountered this with the maps cs_italy (Counter-Strike: Source version) and gm_bigcity. An example is shown in the attached picture: image

The program throws an error when in convertLight in MapExporter.py tries to set the "radius" property to _color[3], which in this case is out of bounds.

I managed to overcome this issue in a rough way, by setting the fourth property to a constant number in such cases.

myuce commented 3 years ago

Should be fixed after bfed2192316057ec3f8ffa282f2edb7029a21f3d. Thanks for letting me know.