Search Unity

Question Use Matchmaking with fake users (same Auth token)

Discussion in 'Matchmaker' started by kjuanlu_aim2, Feb 13, 2023.

  1. kjuanlu_aim2

    kjuanlu_aim2

    Joined:
    Nov 29, 2021
    Posts:
    12
    Hello all.

    I would like to implement some kind of stress test to calculate and test the servers (regions, rooms, number of CPU cores used, etc...) with fake users.

    I don't have enough test-users, and the game is not finished yet to launch an open-beta or something similar. So I would like to create as many users as I need (for example, 10 instances of the same binary on the same computer).

    But, matchmaking needs the auth token, and my computer gives me the same token for all the instances, so, the fake user goes to a new room. ¿Any ideas on how to deal with this?

    Regards
     
  2. FlorianAtUnity

    FlorianAtUnity

    Unity Technologies

    Joined:
    Jun 16, 2021
    Posts:
    15
    You can try what is described here: ParrelSync compatibility fix no longer working.

    The flow could look like:
    1. Create a headless client that can take an argument on launch which sets their profile name
    2. Before you do the Auth
    Code (CSharp):
    1. var profileOptions = new InitializationOptions();
    2. profileOptions.SetProfile(profileName);
    3. await UnityServices.InitializeAsync(profileOptions);
    3. Do the anonymous login
    4. Go into matchmaking
     
  3. kjuanlu_aim2

    kjuanlu_aim2

    Joined:
    Nov 29, 2021
    Posts:
    12
    Thank you! I