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

Incorrect number of placement games #74

Open
BlackYps opened this issue Jul 13, 2024 · 2 comments
Open

Incorrect number of placement games #74

BlackYps opened this issue Jul 13, 2024 · 2 comments

Comments

@BlackYps
Copy link
Collaborator

Some people have to play 10 placement games instead of 3 even though they were ranked in the season before. This is apparently consistent behaviour for some people while others are not affected by this bug at all.

@BlackYps
Copy link
Collaborator Author

BlackYps commented Jan 12, 2025

My first guess is that the database fetch here doesn't find the player for some reason. A player that is affected by this is Dorset. https://forum.faforever.com/topic/8624/ladder-rant-because-i-am-noob/5

@BlackYps
Copy link
Collaborator Author

Further investigation showed that the database fetch works as intended, but the function itself is wrong. It should check if the player was ranked in any of the previous seasons. I.e. if the subdivision_id is not null in any of the returned rows.
But instead the function only grabs the first row and checks there. Normally this first row will be the first season where the player has ever played a game. This explains why it happens consistently for some players and not for others. It depends on if you were ranked in the first season where you played.

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

No branches or pull requests

1 participant