I get this, kind of, common message when developing:
However, i just can’t find the source for it. It comes ONLY when i add player #3.
I know what the prefabs are and am actively searching for the source of this bit cannot find it. I do not want to post the code as it is kind of complex and big but my question is if there is any good way of digging deeper into this to find where this is generated.
i Tried:
public void HandleLog(string logString, string stackTrace, LogType type) {
Cmd_Print("1) logString: " + logString + " type: " + type + " stacktrace: " + stackTrace);
Result:
"1) logString: Command for object without authority [netId=9] type: Warning stacktrace: UnityEngine.Networking.NetworkIdentity:UNetStaticUpdate()"
I also done prints in each module to try to identify where it is generated without being able to find the source.
Question is if there is any other way of digging deeper into this?
As it is “only” warnings and everything seems to work anyhow i guess i could just leave it but it annoys the hell out of me.
You are trying to send a Command from a object you do not have authority for. The object has NetID 9.
You probably forgot a if(isLocalPlayer) before the command. If you pastebin the code I could look into it.
i know that but for some reason i am not able identify where. I have searched for every single command and added hasAuthority but still get this message. …and it only show up with the third player of four??
The easiest way for me to debug such messages is to just to through all NetworkIdentity components and check their Id for matching with the one from the message. Note that you must do this in runtime, otherwise you won’t be able to tell which id is generated for which object.
NetId is usually displayed in preview window.
Check your scripts on that object, that’s the closest advice I can give.