Add server-side support for slots in multiplayer rooms#513
Open
bdach wants to merge 7 commits into
Open
Conversation
peppy
pushed a commit
to ppy/osu
that referenced
this pull request
May 24, 2026
Fell out of full-stack testing with ppy/osu-server-spectator#513. - **Fix missing property copy in multiplayer client** Would cause the participant count limit to not update on the multiplayer match screen. - **Fix hard crash when user is kicked from a room with slots active** The kicked user is unsubscribed from receiving room state updates before their slot is vacated, which then would lead this code to attempt to look the local, kicked user via the unvacated slot and thus fail because `client.Room.Users` does *not* contain the user anymore. This is a bit of a dicey change but I think it's less dicey than to try to wiggle ordering server-side.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This includes:
The best specification for how the slots were intended to work is probably the test suite added here (
MaxParticipantsAndSlotsTest) so I'd rather recommend reading that instead than restate the tests here.