Author Topic: How to tell if client build is most up-to-date build using LobbyServer?  (Read 1939 times)

gg67

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 66
    • View Profile
Hey Aren,

What would be the best way to check if a user has the most up to date client build? I was thinking about adding a check on the TCPLobbyServer since that's the first thing my client will hit, but I wasn't sure how to relay information from the client to the server since I've just been using the built in server executable. Can you point me in the right direction?

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to tell if client build is most up-to-date build using LobbyServer?
« Reply #1 on: January 14, 2014, 06:58:09 PM »
Simply increment the TNet.Player version number. You will need to re-build the server as well.

TNet will actively reject players whos version # doesn't match.

pyscho2day

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 74
    • View Profile
Re: How to tell if client build is most up-to-date build using LobbyServer?
« Reply #2 on: January 14, 2014, 11:43:08 PM »
I add a game version # to the server name separated by a | then when checking game servers i parse the server name and check the version #.