You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where others look fine:
ability_name = 'TrainProbe'
This is with a fresh copy of sc2reader from GitHub and
import sc2reader
replay = sc2reader.load_replay('Radhuset Station LE (85) ZvP chrono.SC2Replay')
a = [e for e in replay.game_events if hasattr(e, 'ability_name') and '\r' in e.ability_name]
print(a) # 137 results
I could work around it with my own engine plugin but would be nice if this is fixed since it also breaks downstream apps like SpawningTool.
class EventAbilityNameCorrector(BasePlugin):
name = "EventAbilityCorrector"
def handleEvent(self, e: Event, replay: RawReplay):
if hasattr(e, "ability_name") and "\r" in e.ability_name:
e.ability_name = e.ability_name.replace("\r", "")