Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

How would you check client version ?

Discussion in 'Multiplayer' started by Tazadar66, Oct 18, 2017.

  1. Tazadar66

    Tazadar66

    Joined:
    Aug 27, 2013
    Posts:
    57
    Hello,

    I am working on my multiplayer game and I was wondering what would be the best way to be sure the user is using the correct version of the client.

    Let's say you have a v1 client which has some weaknesses which can be exploited for cheating.
    Now you fix the weaknesses and add an anticheat system to the v2 client.
    You deploy it and now you want te be sure that nobody is using your old v1 client in order to continue using exploits.

    How would you do ?
     
    Last edited: Oct 18, 2017
  2. mischa2k

    mischa2k

    Joined:
    Sep 4, 2015
    Posts:
    4,347
    You can hash all scripts and compare the hash in a login handshake packet.

    But keep in mind that hackers can circumvent this very easily and pretty much use any client that they want.
     
  3. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,296
    You can make sure that everybody has the same client via some sort of launcher. Though it won't save against hacking, it will ensure that legit users will have deployed most recent version of your client.

    Take a look at something like Patchkit (was free last time I checked). It's for PC/Mac/Linux.