We switched to names as the keys rather than the ids to solve an issue with games when users are added after bots. Currently we are using the username to uniquely identify the user but on top of that being untrue, it has some issues when people disconnect and reconnect. Attatched is a file that demonstrates that issue.
dissconnect-bug.txt
The result of parsing that is GoodKn1ght ends up with a score of 2 when technically since he disconnected, he only has a score of one.
I think the easiest thing may be to set everyones score to 0 when the client begin message is parsed.
We switched to names as the keys rather than the ids to solve an issue with games when users are added after bots. Currently we are using the username to uniquely identify the user but on top of that being untrue, it has some issues when people disconnect and reconnect. Attatched is a file that demonstrates that issue.
dissconnect-bug.txt
The result of parsing that is GoodKn1ght ends up with a score of 2 when technically since he disconnected, he only has a score of one.
I think the easiest thing may be to set everyones score to 0 when the client begin message is parsed.