-
Notifications
You must be signed in to change notification settings - Fork 63
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/#824 support for GameOptions in matchmaker queues #825
Issue/#824 support for GameOptions in matchmaker queues #825
Conversation
I'm having a hard time figuring out how the server actually sends the game launch options to the client. i think mainly because my IDE can't find the declaration of this call: server/server/ladder_service.py Lines 456 to 458 in 2b84b87
|
Your reliance on IDE’s has been your downfall! Just grep for server/server/lobbyconnection.py Lines 1030 to 1046 in 152242a
|
Codecov Report
|
|
||
# If the players did not match, this will fail due to a timeout error | ||
await asyncio.gather(*[ | ||
read_until_command(proto, "match_found", timeout=30) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This integration test fails sometimes on my machine. I saw in the log that it took many matchmaker iterations until the logged in players finally were queued up for searching. They basically matched immediatly, but that was in the teardown log already, so I believe it was after the timeout aborted the test. Maybe increasing the timeout limit would help?
read_until_command(proto, "match_found", timeout=30) | |
read_until_command(proto, "match_found", timeout=60) |
On the other hand I couldn't get it to reliably fail with a 10s timeout either, so I don't really know what exactly is happening. Other Integration tests also fail sometimes, but that is unrelated to this PR. It seems like it sometimes takes a lot of time for a command to take effect, for no apparent reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea I think it has to do with the fast forwarding somehow. Is it really timing out here though? This should only start waiting once all of the players have successfully queued, because queue_player_for_matchmaking
waits for the search_info
start message before returning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I haven't gotten these to fail, so I'm just going to leave it as is for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll just keep an eye out on this. Maybe it has to do with the local configuration on my machine...
e0fc423
to
d927888
Compare
d927888
to
4f49935
Compare
4647a2f
to
091f631
Compare
091f631
to
1b85db8
Compare
1b85db8
to
bf9c5e7
Compare
Loads additional params from the database and parses out game options to send in the game_launch message. My goal is for the
params
column to closely resemble thegameInfo
table in the lua code. So something like this:But it could always be expanded in the future.
Requires FAForever/db#285
Closes #824