Opened 7 years ago
Closed 10 months ago
#4621 closed defect (fixed)
EcheLoN doesn't broadcast rating after a rated 1v1
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 27 |
Component: | Multiplayer lobby | Keywords: | |
Cc: | Patch: |
Description
After having finished a rated 1v1 and returning to the lobby, the rating of the current player is still the old one cached somewhere.
So if the player joins a game with that outdated rating, then crashes / disconnects / restarts the game and joins the lobby again, the new rating will be loaded and thus the player won't get it's assigned playerID again.
We should really remove the rating from the nick.
Change History (6)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Milestone: | Backlog → Work In Progress |
---|
It's because both bots have Phab:D206 applied with a bug noticed by user1: https://code.wildfiregames.com/D206#inline-7802
comment:3 by , 7 years ago
Presumed by scythetwirler that was.
The rating bots both have that typo fixed and were restarted, but the bug persists.
comment:4 by , 5 years ago
Milestone: | Work In Progress → Backlog |
---|
comment:5 by , 4 years ago
Summary: | Rating not reloaded when returning to the lobby after a rated 1v1 → EcheLoN doesn't broadcast rating after a rated 1v1 |
---|
The root cause for the error seems to be that EcheLOn.py
only sends the ratinglist update after the gamereport only to one of the players, but every participant in the muc room needs to know the update in fact.
The "cant rejoin due to outdated cached rating" issue had been addressed in r19828 / #3686.
comment:6 by , 10 months ago
Milestone: | Backlog → Alpha 27 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
I'm not sure when this got fixed, but this issue isn't reproducible anymore. When a rated game finishes all online players get informed about the updated ratings and those new ratings show up correctly.
The relevant method call to broadcast the updated ratings once a rated game finished can be found here: https://github.com/0ad/lobby-bots/blob/e49af1853bd93cb754cb35bf2b1407b035de23a4/xpartamupp/echelon.py#L687
As this isn't an issue anymore, I'm closing this ticket now.
(This also occurs for the current a21 bot and fixes itself after some time (next player lobby join?).)