Mirror not finding scene

I would like to ask if anyone has any clue why my game would break with the errors in the image after doing the following:

  • Hosting-client with one machine (A).
  • Joining (successfully) the scene as a client with another machine (B).
  • Exiting the match with B (and returning to the “main menu scene” successfully).
  • Joining again the same scene as before with B. → Then, the error appears.

All the errors appear in B, not in A

Errors in text so the search engines can lead to this thread:
Could not find scene object with sceneid:96FF6970F1CF5840
Spawn scene object not found for 96FF6970F1CF5840 SpawnableObjects.Count=2
Could not spawn assetId=00000000-0000-0000-0000-000000000000 scene=10880531158564558912 netId=1
Could not spawn assetId=00000000-0000-0000-0000-000000000000 scene=10880531158564558912 netId=1
Spawn scene object not found for 96FF697023E1E74F SpawnableObjects.Count=2
Could not spawn assetId=00000000-0000-0000-0000-000000000000 scene=10880531155109668687 netId=2

You can find all the code here: https://github.com/guplem/ALLiOLI/tree/FixesFromMeeting_27_05/ALLiOLI

Feel free to ask anything

Thanks for your time in advance!

It is saying scene objects are not found, so have you verified the client has actually loaded the correct scene? That might explain why it isn’t finding those scene objects it expects.

1 Like

Okay, it was it. 100% my fault. The name of the scene to load was misspelled…

I hate that there is no way to reference the Scene from the project structure and this things can happen easily…

1 Like

Hi,

I have the same problem, how exactly did you fix this?

I appreciate your help!

I just checked that the names were not wrongly written. I hope it helps

where? I have nowhere in my scripts the name of the scene. I also have 1 scene in use right now. But i still get that weird error.

And if I have to add the scene name to the scripts, how do I do that? I tried multiple ways to load scenes but I get an error every time.

I just got this issue with a single scene. After a lot of debugging I found out that it was caused by moving the scene from its original folder. For some reason that broke everything.
What fixed it for me was bringing the scene file to where it was originally.
If that is not possible for you, I suggest saving the scene with a new name and deleting the old one, see if that helps.

Heya, I think you actually can do this by using the [Scene] Attribute

[Scene]
public string[] _levelScenes;

Try opening and resaving all scenes once :slight_smile:

2 Likes

Hello there,

Thank you for your solutions, but nothing helps, any other solutions?

My problem was that I ran DontDestroyOnLoad in awake for a static object with a NetworkIdentity on it. This meant that the object was enabled before being connected. So for future people with the same problem, make sure that no NetworkIdentities are enabled before connecting.

1 Like