ajbdev / phpsc2replay

Automatically exported from code.google.com/p/phpsc2replay
0 stars 1 forks source link

game events are not being parsed #34

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. upload attached file
2. see how it's parsed

What is the expected output? What do you see instead?
game events are not being parsed

What version of the product are you using? On what operating system?
1.3

Please provide any additional information below.
team size is 2v2, but the real team size is 1v1, tried to parse it on v1.2 as 
well and game events were parsed correctly, but the teams were messed up

Original issue reported on code.google.com by karol.ch...@gmail.com on 29 Nov 2010 at 5:51

Attachments:

GoogleCodeExporter commented 8 years ago
Some overly zealous error checking was added in 1.3. I've added a fixed version 
to the repository. If you don't have mercurial, you can simply change line 442 
in sc2replay.php

from:
if ($playerId > count($this->players) || ($globalEventFlag > 0 && $playerId > 
0))
to:
if ($globalEventFlag > 0 && $playerId > 0)

Sorry for the slow response time.

Original comment by lauri.vi...@gmail.com on 25 Dec 2010 at 5:32