#I want to reload the scene when the host leaves (whole game is one scene) to essentially start fresh

6 messages · Page 1 of 1 (latest)

crystal drift
#

My code and the errors I keep getting are attached. The scene reloads properly but I get hundreds of these errors. Even before I start a game. Right now this function is in its own network behavior script. What am I doing wrong? Thanks!

#
    {
        if(IsClientOnly)
        {
            LocalConnection.Disconnect(false);
        }
        else
        {
            _networkManager.ServerManager.StopConnection(true);
        }
        
        UnityEngine.SceneManagement.SceneManager.LoadScene(UnityEngine.SceneManagement.SceneManager.GetActiveScene().buildIndex);
    }```
#

for clarity^

crystal drift
#

Ive tried creating a emtpy scene and switching to it as a middle man, deleting the network manager entriely, setting the DNDOL to off, and so much more. I cannot for the life figure it out. I origionally thought this would take be 5 minute haha

crystal drift
#

Got it fixed. Sorry if forgot to mention I was on 3.11.12R. The issue resolved itself once I updated to fishnet 4.2.2R. I believe it was a bug.

manic mauve
#

Ah, gotcha. Glad it was resolved though 💯