Hi Everyone. I've built a prototype based on the C++ Third Person template to which I've added a custom PlayerController class. I've been using it multiplayer for some time now without problems, albeit with server and clients on the same machine. I've started testing it across multiple machines on a LAN today and having some strange issues.
On two identical laptops the client joins the server no problem and everything works fine but when my test desktop client tries to join the server laptop things go wrong:
* The client's player is locked in place and can't move. It can be seen to rotate on the spot on the client only (using a joypad) but can't move anywhere.
* I've added in a shooting action to the template. Despite not being able to move I can still shoot and the action is replicated and seen/heard on the server.
* The server can see the client's player on screen but the client can't see the server's player.
* Sometimes the client will be controlling a debug camera and can fly around the world.
After doing these tests I went back and tried an unmodified version of the Third Person template and it all works fine so I've broken something somewhere but I've no idea where to begin.
To add to the mystery if I use the laptop as the client and the desktop as the server all is fine.
Any and all thoughts welcome!
On two identical laptops the client joins the server no problem and everything works fine but when my test desktop client tries to join the server laptop things go wrong:
* The client's player is locked in place and can't move. It can be seen to rotate on the spot on the client only (using a joypad) but can't move anywhere.
* I've added in a shooting action to the template. Despite not being able to move I can still shoot and the action is replicated and seen/heard on the server.
* The server can see the client's player on screen but the client can't see the server's player.
* Sometimes the client will be controlling a debug camera and can fly around the world.
After doing these tests I went back and tried an unmodified version of the Third Person template and it all works fine so I've broken something somewhere but I've no idea where to begin.
To add to the mystery if I use the laptop as the client and the desktop as the server all is fine.
Any and all thoughts welcome!
Comment