I keep getting these errors with the bflim.py:
Error 1:
Traceback (most recent call last):
File "C:\Users\logzi\Desktop\Temporary Stuff\TFH\3dstools-master\bflim.py", line 834, in <module>
bflim.extract()
File "C:\Users\logzi\Desktop\Temporary Stuff\TFH\3dstools-master\bflim.py", line 208, in extract
writer.write(file_, png_data)
File "C:\Users\logzi\AppData\Local\Programs\Python\Python311\Lib\site-packages\png.py", line 670, in write
nrows = self.write_passes(outfile, check_rows(rows))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\logzi\AppData\Local\Programs\Python\Python311\Lib\site-packages\png.py", line 704, in write_passes
return self.write_packed(outfile, rows)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\logzi\AppData\Local\Programs\Python\Python311\Lib\site-packages\png.py", line 736, in write_packed
for i, row in enumerate(rows):
File "C:\Users\logzi\AppData\Local\Programs\Python\Python311\Lib\site-packages\png.py", line 660, in check_rows
raise ProtocolError(
png.ProtocolError: ProtocolError: Expected 128 values but got 256 value, in row 0
Error 2:
File "C:\Users\logzi\Desktop\Temporary Stuff\TFH\3dstools-master\bflim.py", line 829, in <module>
bflim.read(args.bflim_file, parse_image=args.extract)
File "C:\Users\logzi\Desktop\Temporary Stuff\TFH\3dstools-master\bflim.py", line 167, in read
self.bmp = self._parse_image_data(bmp_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\logzi\Desktop\Temporary Stuff\TFH\3dstools-master\bflim.py", line 627, in _parse_image_data
pixel = self._get_rgba_pixel(data, format_, data_pos)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\logzi\Desktop\Temporary Stuff\TFH\3dstools-master\bflim.py", line 706, in _get_rgba_pixel
l = struct.unpack('B', data[index / 2])[0]
~~~~^^^^^^^^^^^
TypeError: byte indices must be integers or slices, not float
I've only tried two files, but they both give the same error every time
In case you're wondering, these files are from triforce heroes