Author Topic: unstable connection  (Read 1784 times)

GantZ_Yaka

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 21
    • View Profile
unstable connection
« on: February 13, 2014, 01:40:42 AM »
I use a WiFi router for LAN between players, and sometimes the connection is unstable. I have a network involved only one TCP-server, and when the connection is lost, computers automatically reconnect to it. At this point, every client will receive a new TNManager.playerID.
have any idea how to fix it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: unstable connection
« Reply #1 on: February 13, 2014, 03:30:40 AM »
That's intentional. New connection = new player ID. If you are trying to keep something belonging to a specific player, go by some custom value (like player name, or some in-game player ID). Don't rely on TNet's player ID. It should only be used to identify network players.