playerControllerId higher than expected

Hey Guys,

To know the basics: I spawn a player with AutoSpawn function of the NetworkManager. This player spawns a second player for the same connection with playercontrollerId 1 by calling NetworkServer.AddPlayerForConnection.

In fact it works, but it throws me a warning:

ClientScene::InternalAddPlayer: playerControllerId higher than expected: 1
UnityEngine.Networking.NetworkServer:AddPlayerForConnection(NetworkConnection, GameObject, Int16)

Is there any workaround or should I just ignore it?

Thanks! :slight_smile:

You can remove this warn by doing this just after doing this : ClientScene.ConnectLocalServer()

// DIRTY HACK - JUST TO REMOVE THE WARN : 
// ClientScene::InternalAddPlayer: playerControllerId higher than expected: 0
ClientScene.localPlayers.Add(null);