Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError: assert self.players[entity] == id #10

Closed
ckabalan opened this issue Oct 18, 2015 · 0 comments
Closed

AssertionError: assert self.players[entity] == id #10

ckabalan opened this issue Oct 18, 2015 · 0 comments

Comments

@ckabalan
Copy link

python3.4 /root/projects/HSReplay/python/main.py /root/projects/md5/9285997e3519b5cab46576799461acdd.log > /root/projects/xml/9285997e3519b5cab46576799461acdd.xml
Traceback (most recent call last):
  File "/root/projects/HSReplay/python/main.py", line 671, in <module>
    main()
  File "/root/projects/HSReplay/python/main.py", line 665, in main
    parser.read(f)
  File "/root/projects/HSReplay/python/main.py", line 331, in read
    self.add_data(*sre.groups())
  File "/root/projects/HSReplay/python/main.py", line 342, in add_data
    self.handle_data(ts, data)
  File "/root/projects/HSReplay/python/main.py", line 490, in handle_data
    self.game.update_current_player(entity, str(value))
  File "/root/projects/HSReplay/python/main.py", line 112, in update_current_player
    self.register_player_id(entity, self.first_player)
  File "/root/projects/HSReplay/python/main.py", line 102, in register_player_id
    assert self.players[entity] == id
AssertionError

Creates a blank 9285997e3519b5cab46576799461acdd.xml.

Input log: https://files.spectralcoding.com/files/projects/hscs/hsreplay/issue20151017/9285997e3519b5cab46576799461acdd.log
Log file from Oct 13th, 2015, probably HS 3.1.0.10357

jleclanche added a commit that referenced this issue May 17, 2018
This can happen with spectator mode. It's fairly harmless since the
name is usually obtained earlier and at worse player name is missing.

Fixes #10
jleclanche added a commit that referenced this issue May 17, 2018
This can happen with spectator mode. It's fairly harmless since the
name is usually obtained earlier and at worse player name is missing.

Fixes #10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant