Hi,
Im trying to disconnect from a game and then re-join the game with the client but experience some problems:
to reproduce on the standard github version:
1 start server & start client and connect to server
2 leave game on the client
3 cmd: connect 127.0.0.1
4. observe the crash!
I keep running into this problem:
110: EXCEPTION Object reference not set to an instance of an object
at UpdatePlayerCameras.OnUpdate () [0x00037] in <0c6170e536444d1c810ce37a06c07abd>:0
at Unity.Entities.ComponentSystem.InternalUpdate () [0x0002b] in <39764f13ca3d40b9a8e13264e592969b>:0
at Unity.Entities.ScriptBehaviourManager.Update () [0x00000] in <39764f13ca3d40b9a8e13264e592969b>:0
at PlayerModuleClient.CameraUpdate () [0x00000] in <0c6170e536444d1c810ce37a06c07abd>:0
at ClientGameWorld.LateUpdate (ChatSystemClient chatSystem, System.Single frameDuration) [0x00127] in <0c6170e536444d1c810ce37a06c07abd>:0
at ClientGameLoop.LateUpdate () [0x00028] in <0c6170e536444d1c810ce37a06c07abd>:0
at Game.LateUpdate () [0x0001d] in <0c6170e536444d1c810ce37a06c07abd>:0
looks like the HandlePlayerCameraControlSpawn initialize is not happening properly on the second connect.
The initialize methods is called on client boot up and when a first connection to the server is made.
But after disconnecting and reconnecting its not executed.
PLease help me solve this crash so that i can leave a server and re-join