Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question disconnection errors

Discussion in 'Netcode for GameObjects' started by liambilly, Jul 23, 2023.

  1. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    125
    i have neva been able to fix this error where when a client e.g with id 1 disconnects, then reconnects again he gets the id of 2, like his previous diconnection wasnt completelty cleaned up,, how do i fix this
     

    Attached Files:

  2. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    125
    open the image it will show logs that are called onclient joined and disconnected
     
  3. cerestorm

    cerestorm

    Joined:
    Apr 16, 2020
    Posts:
    638
  4. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    125
    so i see it has no solution
     
  5. cerestorm

    cerestorm

    Joined:
    Apr 16, 2020
    Posts:
    638
    Check out the link in that issue, it explains how to handle reconnections.
     
  6. liambilly

    liambilly

    Joined:
    May 13, 2022
    Posts:
    125
    impementing isessionplayerdata any place with a tutorial on how to implement ir?
     
  7. cerestorm

    cerestorm

    Joined:
    Apr 16, 2020
    Posts:
    638
    Take a look at Boss Room as it's implemented there.