Cant see players which are already joined.
I am making a multi player game and now I'm testing it with the Angry Bots Photon demo stripped down to the player model. I already made a login screen, a lobby and a level. When I host a game I join the level and run around and shoot into oblivion and I can see other players who join later then me. But every player who joins next cant see the players already connected before him.
Unity gives the error about Photon id's that are 1000 and over and that such PhotonVIew dont even exist. Is this the cause of the problem or is it something else. And how do I make this work?
Help is really appreciated and thanks in advance!
Unity gives the error about Photon id's that are 1000 and over and that such PhotonVIew dont even exist. Is this the cause of the problem or is it something else. And how do I make this work?
Help is really appreciated and thanks in advance!
0
Comments
Most likely you modified some prefab or gameobject which had a script or PhotonView somewhere.
You should probably take a look at the Viking Demo or at the Worker Demo. Both have just the essentials in and comparing those with your project might help you identify the broken spot.
Sorry to be a pain in the ass, but where can I find these bufferings. I tried to look for myself but its kind of hard for me to understand it all. It's really important for me to get this fixed so that's why i'm asking so much. :?
Thanks for your reply tough!
Then the views are not created on all clients and you don't see others.
Buffering of instantiations is done for you. I just wanted to explain the background.
I checked it and its PhotonNetwork.Instantiate Sorry for not answering your reply.
Could you provide a minimized package which shows the issue or attach the important code?
Hope this helps!
My recent solution was to use a GUI.Button to instantiate the playerprefab. I waited untill both players where in the game scene, then clicked the button and both where instantiated in both the players scene's.
Thanks for all your help!
public override void OnPlayerEnteredRoom(Photon.Realtime.Player newPlayer)
God bless and happy coding!
I know this thread is very old but maybe some newer viewers who are also having the sample problem could stumble upon this thread, so I'll just leave my answer here.
I know it's a dumb thing but it worked in my case.
Perhaps someone else will be in the same situation so remember to check for this.
Happy coding!
I guess you'll never see this but just in case I wanted to tell you that you just made my day. I was soo frustrated.
Thank you so much, you're awesome!