Search Unity

  1. Full schedule for #UniteBerlin is now available! Featuring talks on our roadmap, hands-on labs and much more! Check it out!
    Dismiss Notice
  2. Unity 2018.1 has arrived! Read about it here
    Dismiss Notice
  3. Scriptable Render Pipeline improvements, Texture Mipmap Streaming, and more! Check out what we have in store for you in the 2018.2 Beta.
    Dismiss Notice
  4. ARCore is out of developer preview! Read about it here.
    Dismiss Notice
  5. Magic Leap’s Lumin SDK Technical Preview for Unity lets you get started creating content for Magic Leap One™. Find more information on our blog!
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

LobbyManager: can't start new game after RETURNING to Lobby

Discussion in 'Multiplayer Networking' started by csofranz, May 18, 2018 at 2:02 PM.

  1. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    24
    I'm running into show-stopping, yet very strange and intermittent (2 out of 3 times roughly) network bug. I'm seeing this pattern:

    1. Enter Lobby scene, Instantiate Unity Lobby prefab (from Asset Store) to allow players to choose create or join a game. For this, we always create games
    2. choose 'create game' (one of 4 network scenes), start game, others join until complete and count-down runs to zero
    3. Enter game scene, game commences, eventually game is done
    4. Exit game scene
    5. Return to the lobby scene with original lobby manager still working (don't destroy on load active on lobby manager)
    6. Kill original lobby manager, shut down server, create a new lobby manager
    7. When I now try to create a new game, 2 out of 3 times I get the dreaded 'A connection has already been set as ready. There an be only one' error.

    Other that I'm really starting to hate 'Highlander', can anyone tell me where this comes from and how I can work around it? This is the last thing holding us up, and after two weeks of trying to get to the bottom of this, I'm starting to get desperate. Why isn't it happening every time? What is causing it? When is it caused? Why doesn't it trigger OnServerError? Why? WHY????

    Anyone?

    Thanks for any pointers.

    -ch