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

Client sends civilian as matchmaker faction #1852

Closed
Askaholic opened this issue Aug 5, 2020 · 4 comments
Closed

Client sends civilian as matchmaker faction #1852

Askaholic opened this issue Aug 5, 2020 · 4 comments
Labels

Comments

@Askaholic
Copy link
Collaborator

Some people trying to reproduce the rating bug on the test server and this happened:

TRACE    Aug 05  23:11:18 LobbyConnection                << Blodir: {'faction': 'civilian', 'mod': 'ladder1v1', 'state': 'start', 'command': 'game_matchmaking'}
ERROR    Aug 05  23:11:18 LobbyConnection                'civilian'
Traceback (most recent call last):
  File "/code/server/lobbyconnection.py", line 162, in on_message_received
    await handler(message)
  File "/code/server/lobbyconnection.py", line 849, in command_game_matchmaking
    self.player.faction = message['faction']
  File "/code/server/players.py", line 84, in faction
    self._faction = Faction.from_string(value)
  File "/code/server/factions.py", line 14, in from_string
    return Faction.__members__[value]
KeyError: 'civilian'
WARNING  Aug 05  23:11:18 LobbyConnection                Client Blodir dropped. Garbage command: {'faction': 'civilian', 'mod': 'ladder1v1', 'state': 'start', 'command': 'game_matchmaking'}

Somehow the client sent the string civilian, but it should only be sending one of uef, seraphim, cybran, aeon.

Wanna have the bug fixed quickly?
Visit Issue hunt...
Issue hunt

@Askaholic Askaholic added the bug label Aug 5, 2020
@1-alex98
Copy link
Member

1-alex98 commented Aug 6, 2020

That might be @FemtoZetta messing with the faction enum

@FemtoZetta
Copy link
Contributor

I doubt that, this was all I changed in the enum:
grafik

@1-alex98
Copy link
Member

1-alex98 commented Aug 7, 2020

ok cool, we will have to look into to it then

@Sheikah45
Copy link
Member

Sheikah45 commented Jun 5, 2021

Likely fixed with change to consistent java commons enum and matchmaker changes

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

No branches or pull requests

4 participants