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

Generate random room names from spell+perk lists #7

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

myndzi
Copy link
Collaborator

@myndzi myndzi commented Apr 27, 2024

The backend was rejecting rooms created by users with display names that didn't validate. This switches up the unprivileged room creation behavior to create room names randomly instead.

If the combinations are exhausted (e.g. small word lists, many rooms), it falls back to generating rooms like "Room #1" with the lowest available number from 1-1000.

Privileged users can still create custom room names, but their room names now go through the same flow and may no longer be duplicates, must be valid, etc.

Fixes Noita-Together/noita-together#164

The backend was rejecting rooms created by users with display names
that didn't validate. This switches up the unprivileged room creation
behavior to create room names randomly instead.

If the combinations are exhausted (e.g. small word lists, many rooms),
it falls back to generating rooms like "Room #1" with the lowest
available number from 1-1000.

Privileged users can still create custom room names, but their room
names now go through the same flow and may no longer be duplicates,
must be valid, etc.
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.

Issues with room creation with some usernames
1 participant