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

Reported series winner sometimes incorrect after overtime. #5

Closed
dechristopher opened this issue Feb 12, 2016 · 9 comments
Closed

Reported series winner sometimes incorrect after overtime. #5

dechristopher opened this issue Feb 12, 2016 · 9 comments

Comments

@dechristopher
Copy link

No idea how this can be replicated, but in numerous matches played with this plugin, the reported winner of the series in chat has been the wrong team. This usually happened to us after an overtime win but additionally happened a single time after a normal length game with no overtime.

@splewis
Copy link
Owner

splewis commented Feb 12, 2016

Are you seeing this in single-map matches or multiple-map matches?

If it's the 1st it should be much easier to debug.

@dechristopher
Copy link
Author

It's happening on single-map matches. No idea what the results of a multi-map series would be because we haven't tested them.

@splewis
Copy link
Owner

splewis commented Feb 13, 2016

I was unable to reproduce it, but I've made some changes that may fix this.

My suspicion is that the round_end event could have been firing after cs_win_panel_match, meaning if:

  • team 1 wins a round, score becomes 10-15 from 9-15
  • team 2 wins the last round, score becomes 10-16

the "last round winner" would be the wrong team, which is how the cs_win_panel_match callback determined the winner before.

I would imagine this could happen in anywhere up to 50% of cases. Since there is some degree of momentum to the game, it was more likely around 25%.

@splewis splewis closed this as completed Mar 12, 2016
@techlover1
Copy link

This issue is still present http://i.imgur.com/dy2G6oD.jpg

@splewis splewis reopened this Mar 26, 2016
@splewis
Copy link
Owner

splewis commented Mar 26, 2016

@techlover1 can you give a version or commit that the servers was running in that screenshot?

@techlover1
Copy link

@splewis version 0.0.1-dev+79

@splewis
Copy link
Owner

splewis commented Mar 26, 2016

I believe I've fixed this issue in 00e87bb now.

The issue was overtime-halftime side swaps not being done, which should work now.

@dechristopher
Copy link
Author

@splewis that's great to hear. Thanks for looking deeper into this.

@techlover1
Copy link

@splewis awesome! I'll be updating everything tomorrow

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

No branches or pull requests

3 participants