forked from ggtracker/sc2reader
-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
From this replay of Puck in a PvZ for the new LotV beta
http://lotv.spawningtool.com/4/download/
Python 3.4.0 (default, Apr 11 2014, 13:05:18)
[GCC 4.8.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sc2reader
>>> replay = sc2reader.load_replay('replays/lotv.SC2Replay')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kevin/sc2reader/sc2reader/factories/sc2factory.py", line 85, in load_replay
return self.load(Replay, source, options, **new_options)
File "/home/kevin/sc2reader/sc2reader/factories/sc2factory.py", line 137, in load
return self._load(cls, resource, filename=filename, options=options)
File "/home/kevin/sc2reader/sc2reader/factories/sc2factory.py", line 146, in _load
obj = cls(resource, filename=filename, factory=self, **options)
File "/home/kevin/sc2reader/sc2reader/resources.py", line 271, in __init__
self._read_data(data_file, self._get_reader(data_file))
File "/home/kevin/sc2reader/sc2reader/resources.py", line 601, in _read_data
self.raw_data[data_file] = reader(data, self)
File "/home/kevin/sc2reader/sc2reader/readers.py", line 33, in __call__
) for i in range(data.read_bits(5))],
File "/home/kevin/sc2reader/sc2reader/readers.py", line 33, in <listcomp>
) for i in range(data.read_bits(5))],
File "/home/kevin/sc2reader/sc2reader/decoders.py", line 252, in read_aligned_string
return self._buffer.read_string(count, encoding)
File "/home/kevin/sc2reader/sc2reader/decoders.py", line 108, in read_string
return self.read_bytes(count).decode(encoding)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xfc in position 33: invalid start byte
Currently working on fixing it, and I'll try to post a fix if I can figure things out (probably not). Just thought I would share so we could work on these things together
Metadata
Metadata
Assignees
Labels
No labels