atacms / wot-model-converter

Converts World of Tanks models to wavefront obj and collada dae format
10 stars 3 forks source link

"AttributeError: 'NoneType' object has no attribute 'text'" when converting new models (WoT 1.22.1.0) #5

Open ClassicsWoTWorkshop opened 1 year ago

ClassicsWoTWorkshop commented 1 year ago

Running into an issue when attempting to convert the hull and turret models for the two new Mirny boss vehicles (A66_M103_Boss_HW23 and R205_Rozanov_Boss_HW23):

processing Hull.primitives_processed
Traceback (most recent call last):
  File "convert-primitive.py", line 181, in <module>
    tmp = model_reader.read(primitives_f, visual_f)
  File "C:\Github\atacms wot tools\wot-model-converter\wot\ModelReader.py", line 130, in read
    nodes['Scene Root'] = self.readNode(visual.find('node'))
  File "C:\Github\atacms wot tools\wot-model-converter\wot\ModelReader.py", line 504, in readNode
    node['children'][child.find('identifier').text.strip()] = self.readNode(child)
  File "C:\Github\atacms wot tools\wot-model-converter\wot\ModelReader.py", line 491, in readNode
    if element_transform.text.strip():
AttributeError: 'NoneType' object has no attribute 'text'

Occurs in both the obj and dae converters.