iPhone multiplayer issues. Client can't see server side model, vice versa

Hi all.

So I tried to learn about iPhone networking by playing with the multiplayer startrooper package from the Unity website. After upgrading the project to 3.0 and removing the UDP code (I don’t have pro yet) everything works except for the fact that when a client connects to a server, the client cannot see the server side player model and the server side player can see itself but not the client side model.

All instantiated missiles can be seen on both sides and so they can actually hit/kill one another because both players have control over the rigid bodies apparently. I don’t see how this is possible since the rigid body and mesh renderer were on the same game object.

When a client connects to the server, I also noticed that the player’s models SpaceCraft (Clone) and SpaceCraft (Clone) Remote were being created in the scene but effectively “dead” at the spawn point. It’s as if each player has control of some kind of “ghost” that they can pilot.

If I am not making any sense, I will try to clarify further. I am still new to networking so if anyone has any tips or tricks to solve this problem, please let me know.

Thank you.

Hi,

I was developing this multiplayer for startrooper and I was testing project few weeks ago and everything seems to be okay. Is this issue happens with both connections (DirectConnect and MasterServer)? I’ll look into this project today or tomorrow. What exact unity version you are using?

Thanks,
Andrius Kuznecovas
QA Engineer

Profas,

Thank you for responding. Awesome tutorial by the way. I am still trying to figure everything out so I appreciate your patience in the matter.

This issue occurs using DirectConnect and MasterServer. (I just checked again.) I basically just replaced all deprecated methods/variables (useNat, etc) and removed all code that used UDP. I also removed the UDP script and scene entirely from the project.

Like I said before, the client can see itself but not server side spacecraft model and vice versa. Instantiated missiles are visible to both and instantiated from positions of the client and server correctly.

I am using version 3.2.0f4 (61061) with the standard iPhone license.

Hi,

Could you please create a bug report with your project and paste case number here. Thanks!

Andrius Kuznecovas
QA Engineer