x


Network problem, moving the wrong player.

Can someone help me with this problem? I've followed the network tutorial ( http://www.youtube.com/watch?v=qp_rBK-ZD5g&feature=related ) about this network asset: http://unity3d.com/support/resources/example-projects/networking-example. But not everything is working well. I can connect but when I'm in-game, I'm controlling both players on both pc's. (tested on 2 different pc's).

Someone knows what the problem is?

Thank you

more ▼

asked Jul 23 '12 at 07:13 PM

geennaam gravatar image

geennaam
4 1 5 7

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

i also did this mistake a long time ago 8)....

  • have you disable input controller on remote player at local PC?
more ▼

answered Jul 23 '12 at 07:16 PM

ScroodgeM gravatar image

ScroodgeM
7.6k 2 6

local PC is the host? But that is not working, if I'm moving on the client, the host player is moving with me. I can't control the host and the client from the host anymore.

I wanna create a masterserver, the masterserver doesn't have to play on the server.

Jul 24 '12 at 04:50 PM geennaam

you have a player instance (char?), it has an input controller (component that takes inputs of user and applies some actions to char). this component i think attached to char and stored as prefab. so if user creates char, it has controller and user controls char using this controller. when other player creates char, this char also created on all remote PCs. so on your PC it's a second char that is ALSO has controller and takes YOURS inputs and controls char, who's owner is remote user. are you?

Jul 24 '12 at 06:59 PM ScroodgeM

Yes, but the problem is that it's not working wenn I'm connecting the second client on the server. (So 1 pc with server, 1st pc with client, and second pc with client is not working).

Sorry for my bad English :(, I hope you understand.

Jul 24 '12 at 07:20 PM geennaam

i lost an issue 8)

you have server, PC1, PC2

server running server

PC1 and PC2 connected to server (PC1 connects first)

so...

who can control char1? who can control char2? other info?

Jul 24 '12 at 07:43 PM ScroodgeM

I want that the server create automaticly new charachter, so if my connection and pc is good enough, I can have lots of players on my server without in need of slots, or isn't that possible?

Jul 24 '12 at 08:00 PM geennaam
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x733
x324
x15

asked: Jul 23 '12 at 07:13 PM

Seen: 406 times

Last Updated: Jul 27 '12 at 08:05 AM