Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Third Party Self-Hosted Photon Server: How to separate players by game version or AppId?

Discussion in 'Multiplayer' started by ZacG, Oct 9, 2017.

  1. ZacG

    ZacG

    Joined:
    Oct 9, 2017
    Posts:
    4
    Game version works when using Photon Cloud, but not by self-hosted server. Are there any methods to solve this problem? How to separate players if using one photon instance?
     
  2. shvez

    shvez

    Joined:
    Oct 22, 2015
    Posts:
    2
  3. ZacG

    ZacG

    Joined:
    Oct 9, 2017
    Posts:
    4
    It's not exactly solving my problems, but thanks anyway. I'm trying to separate players by "GameVersions". It works in photon cloud but not in self hosted server...
     
    Last edited: Oct 12, 2017
  4. xVergilx

    xVergilx

    Joined:
    Dec 22, 2014
    Posts:
    3,294
    I don't know how Photon works, but you can try generating two different sequences for game version when building your application. Take a look at Build Pipeline scripts.
    Then, you can exchange those sequences with the server to determine what version client runs. If it's not the same as specified -> do what you want to do.
     
  5. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,021
    What @shvez forgot to say is that the split of players by GameVersion is not built in to Photon OnPremise (the Server SDK).
    Actually, this was left out of the SDK, as it makes things a lot more complicated (everything has to be a virtual app, etc). Head over to our forum and poke Ilya, to continue the discussion and get more help please.