A-Metaphysical-Drama / LoL-Linux-Tools

A small tool to edit League of Legends files in linux
http://metaphysical.zz.mu/
GNU General Public License v2.0
36 stars 26 forks source link

fails with current LoL version #17

Closed wookietreiber closed 8 years ago

wookietreiber commented 10 years ago
Extracted DATA/Spells/Icons2D/20.dds
Extracted DATA/Spells/Icons2D/2009_Mini_Pot.dds
Traceback (most recent call last):
  File "lol_linux.py", line 255, in <module>
    extract('temp/texture_patch', 'Spells/Icons2D')
  File "lol_linux.py", line 214, in extract
    raf_archives[i.version].data_file.extract_file(f.offset, f.size, os.path.join(base_path, i.path))
AttributeError: 'NoneType' object has no attribute 'offset'
xwavex commented 9 years ago

The error occurs in this particular line:

raf_archives[i.version].data_file.extract_file(f.offset, f.size, os.path.join(base_path, i.path))

As far as I can see, this is due to f being None

f = raf_archives[i.version].find_file(i.path)

So the fix mentioned by Soulsuke issue #14 omits the files, which could not be found. For me it seems to work properly though.