Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. 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 'Connected Games' started by csofranz, May 18, 2018.

  1. csofranz

    csofranz

    Joined:
    Apr 29, 2017
    Posts:
    98
    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
     
  2. razavidn

    razavidn

    Joined:
    Dec 23, 2017
    Posts:
    2
    Bumping this thread, because I'm experiencing the same problem, and can't for the life of me figure out why.