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

Issue/#687 Fix coop leaderboards again #718

Merged
merged 4 commits into from
Feb 21, 2021

Conversation

Askaholic
Copy link
Collaborator

@Askaholic Askaholic commented Feb 6, 2021

Seems like these two things were broken:

  • FA reports Expansion values as 'true' or 'false' now instead of 1 or 0
  • Game ending code triggers before OperationComplete, and since coop games don't report any results they were getting marked as UNKNOWN_RESULT. This wasn't an issue before because they used to be marked as unknown only after having been inserted into the leaderboard.

If you have better ideas for how to solve point 2, let me hear them. Right now I'm overriding on_game_end in CoopGame, to remove the game result checking, but that leaves a bunch of other code duplicated.

Closes #687

server/games/coop.py Outdated Show resolved Hide resolved
server/games/coop.py Outdated Show resolved Hide resolved
@Askaholic Askaholic force-pushed the issue/#687-coop-leaderboards branch 2 times, most recently from 2e9a1ed to dc1a09a Compare February 19, 2021 05:57
@@ -614,11 +618,11 @@ async def validate_game_settings(self):
await self.mark_invalid(ValidityState.FFA_NOT_RANKED)
return
valid_options = {
"AIReplacement": ("Off", ValidityState.HAS_AI_PLAYERS),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow I didn't realize that there were even more words for true/false used already 😅

@Askaholic Askaholic merged commit 31168aa into FAForever:develop Feb 21, 2021
@Askaholic Askaholic deleted the issue/#687-coop-leaderboards branch February 21, 2021 23:56
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

Successfully merging this pull request may close these issues.

Coop leaderboards are not updated anymore
2 participants