Author Topic: orginal players not seeing new players...  (Read 2544 times)

nmorgan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
orginal players not seeing new players...
« on: March 26, 2013, 03:47:50 PM »
Hi, I'm new at using Tnet and I had not problem setting up the server, except that the players only see other players that were attached to the server before they joined.  So player 1 (the host) see only himself , Player 2 sees himself and Player 1, Player 3 sees himself and players 1 and 2, and so on.  Any suggestions?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: orginal players not seeing new players...
« Reply #1 on: March 26, 2013, 11:27:59 PM »
Unless all players connect to the same server and join the same channel, they won't see each other.

nmorgan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: orginal players not seeing new players...
« Reply #2 on: April 01, 2013, 12:21:30 PM »
The issue is the 2nd player can see everything the 1st player does but the 1st player cant see the second.  The third player sees the second and first but neither see him.  If they were not on the same server or channel no one would be able to anyone.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: orginal players not seeing new players...
« Reply #3 on: April 01, 2013, 04:15:17 PM »
Sounds like the issue is in how you're creating the player or sending RFCs. Have a script that calls TNManager.Create in its Start() function that creates a new instance of a player. On the script attached to this player prefab, in its Awake() or Start() function, check TNObject.isMine to see if you are the one who created it (it will only be true on the player who called TNManager.Create), and if so -- begin controlling this player.