Skip to content

Fixed LobbyMetadata Overflowing and Causing Errors#79

Merged
Xilophor merged 7 commits into
masterfrom
lobby-metadata-"fix"
May 11, 2025

Hidden character warning

The head ref may contain hidden characters: "lobby-metadata-"fix""
Merged

Fixed LobbyMetadata Overflowing and Causing Errors#79
Xilophor merged 7 commits into
masterfrom
lobby-metadata-"fix"

Conversation

@Xilophor
Copy link
Copy Markdown
Collaborator

@Xilophor Xilophor commented Mar 8, 2025

Lobby Metadata has a maximum length of 8192 characters - for all metadata (not per entry). We were running into this limit when many mods were installed, so this should limit it to the maximum allowed.

I added sorting for it so that the stricter compatibility requirements are prioritized before other mods.

I also added a way for other mods to reduce the maximum allowed metadata length in case they need more metadata space than we allotted for.

Xilophor added 6 commits March 7, 2025 23:05
Added a sort to help make sure the Everyone requirement plugins are higher priority when converting to JSON. Also made a modifiable max lobby metadata string length for any mods that may require more metadata.
Copy link
Copy Markdown
Owner

@MaxWasUnavailable MaxWasUnavailable left a comment

Choose a reason for hiding this comment

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

Left two comments for review.

Comment thread LobbyCompatibility/Features/LobbyHelper.cs Outdated
Comment thread LobbyCompatibility/Patches/SteamMatchmakingOnLobbyCreatedPostfix.cs
@Xilophor Xilophor dismissed MaxWasUnavailable’s stale review May 11, 2025 16:37

Resolved in commit #e4990c3

@Xilophor Xilophor merged commit 0f73a3e into master May 11, 2025
1 check passed
@Xilophor Xilophor deleted the lobby-metadata-"fix" branch May 11, 2025 16:38
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.

2 participants