hengineer / CaptainsMess

A local multiplayer networking library for making games like Spaceteam in Unity
MIT License
184 stars 20 forks source link

Errors opening project in Unity 2020.1.7f1 #16

Closed YanaArtis closed 3 years ago

YanaArtis commented 3 years ago

I am trying to open the project with the specified Unity3D version. But a seria of popup windows with error message appearing: "Failed to load window layout. This can happen if layout contains custom windows and there are compile errors in the project, Load default layout / Revert Factory Settings / Quit" image

YanaArtis commented 3 years ago

It seems, this is Unity bug. I had 2020.3.11f1 installed. I have installed 2020.1.7f1 especially for CaptainsMess. And 2020.1.7f1 shows this error even if I create new project.

2020.3.11f1 works fine but there are runtime errors. I run CaptainsMess in IDE, choose "Host". When another client connecting via "AutoConnect" there are 2 errors appearing:

Found no receiver for incoming [-2021941446] on ExamplePlayer(Clone) (UnityEngine.GameObject), the server and client should have the same NetworkBehaviour instances [netId=3]. UnityEngine.Networking.NetworkCallbacks:LateUpdate () (at Library/PackageCache/com.unity.multiplayer-hlapi@1.0.6/Runtime/NetworkCallbacks.cs:11)

Found no receiver for incoming [1494345068] on ExamplePlayer(Clone) (UnityEngine.GameObject), the server and client should have the same NetworkBehaviour instances [netId=3]. UnityEngine.Networking.NetworkCallbacks:LateUpdate () (at Library/PackageCache/com.unity.multiplayer-hlapi@1.0.6/Runtime/NetworkCallbacks.cs:11)