beyond-all-reason / bar-lobby

BAR Lobby Client
https://beyond-all-reason.github.io/bar-lobby/
MIT License
33 stars 30 forks source link

Rank Icon in Multiplayer Lobby #190

Closed Baegll closed 1 year ago

Baegll commented 1 year ago

Issue #163

Worked with multiple users, and added in all the rank icons from Chobby, including moderator icons.

Baegll commented 1 year ago

We can also delay this for adding the check for moderator users

Jazcash commented 1 year ago

I've been looking at this some more, and I've figured how to fix the image for local and prod builds, but I'm still on the fence about the actual rank icon functionality itself.

The fundamental issue here is that this rank icon is now based on rating rather than play time, yet the server still sends it as part of the user response rather than the client response.

In my eyes, I think user and client responses should be the same object, but as it's implemented right now on the server, user responses hold more permanent information like username and client responses hold battle-specific information like isReady. Because this rank icon is now based on rating, and rating is different depending on the mode (duel, team, ffa), I think this rank icon data should be part of the client response, so it can update whenever the mode changes. I don't believe it currently has any way to change.

I'm not actually sure what mode the rank icon sent in the user response even relates to, and so I don't think we should implement it at this time. We can revisit this once the server response for rank and ratings is more sane.