Search Unity

Resolved Can I Make The Join Code Shorter?

Discussion in 'Lobby' started by LongAndHappy, Jun 9, 2022.

  1. LongAndHappy

    LongAndHappy

    Joined:
    May 10, 2019
    Posts:
    6
    I find the 6 character share code to be too long (especially for debugging purposes). It looks like the backend for the relay server doesn't allow for modifications/customizations, but is there a way to make the Join Code shorter, or only use letters?
     
  2. veleek_unity

    veleek_unity

    Ben Randall Unity Technologies

    Joined:
    Aug 25, 2021
    Posts:
    59
    Just in case anybody ends up here looking for the same question for Lobby:

    Currently you can't change the join code length or pattern for Lobby, but it's something that we've considered and we have it on our backlog to look at in the future. If this is important to you too, please let us know!
     
  3. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    90
    It would be nice for users to be able to create their own lobby code, like a "password" they create and give their friends, instead of having to use an auto generated one
     
  4. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    would be good to have a numbers only code so I don't need to display a full keyboard
     
  5. spinaljack

    spinaljack

    Joined:
    Mar 18, 2010
    Posts:
    992
    You can sort of do this with the search filters by adding a filter for password = something in your lobby query and don't let any one join without typing out the password.

    You just add lobby data called "password" when you create it.

    Obviously the "password" would be "visible" to everyone but in practice it works fine. I used this method in previous games.
     
  6. veleek_unity

    veleek_unity

    Ben Randall Unity Technologies

    Joined:
    Aug 25, 2021
    Posts:
    59
    Cameron: We would want to implement passwords on Lobby differently. A password does not uniquely identify a lobby like a Lobby code, so you would need to have the LobbyId AND the Password. Is that what you're looking for? Being able to set the LobbyCode would be slightly different, because it needs to be unique across all lobbies in the title. It could be odd to create a lobby and specify a JoinCode and get the error saying "an existing lobby already uses that JoinCode". Then you could join that lobby even if it's private.
     
  7. veleek_unity

    veleek_unity

    Ben Randall Unity Technologies

    Joined:
    Aug 25, 2021
    Posts:
    59
    SpinalJack: Yes, one of the potential adjustments we're looking at is enabling the developer to specify the alphabet to be used to generate the room code.
     
  8. eman826

    eman826

    Joined:
    Apr 28, 2020
    Posts:
    7
    Hi I'm wondering if any more work has been done concerning shortening the lobby code?
    It would be more convenient, and since my game only has a handful of players at the moment, wouldn't cause any issues.
    Thanks :)
     
  9. mcanfield_unity

    mcanfield_unity

    Unity Technologies

    Joined:
    Mar 1, 2022
    Posts:
    13
    Unfortunately, no, not at this point in time. We are working on a number of multiplayer quality of life features in 2024, including how sessions are allocated and joined, but shorter codes has not come up. I'll add this as a feature request for review and point back to the conversation. Thanks for checking in.
     
  10. eman826

    eman826

    Joined:
    Apr 28, 2020
    Posts:
    7
    Ok good to know. Thank you for the reply! :)
     
  11. MiTschMR

    MiTschMR

    Joined:
    Aug 28, 2018
    Posts:
    488
    On the public roadmap custom join codes are a feature proposed there. Is this also planned? Maybe it could be "solved" with this feature?
     
  12. zackblack

    zackblack

    Joined:
    May 17, 2015
    Posts:
    76
    Custom join codes is an absolute must have for our development team to consider Unity relay. So many games these days just let you specify your own room like "ChicagoFriends" that your buddies can always connect to without having to share some random code back and forth. It's the only way to fly.