- Home /
Question by
Sevinator280 · Oct 19, 2015 at 11:45 PM ·
multiplayerplayernetworkspawnwarning
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! :)
Comment
Answer by Tibaldo · Nov 19, 2015 at 11:18 PM
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);