can not join a room

hi, i am following the basic workflow to try making a small demo by Photon client c++ API. But it seem that i cannot join a room
here is some info:

I used default LoadBalancing server

I created a instance of LitePeer, inherit PhotonListener.
I tried to connect server , stated code was statecode::connect

than i tried to join or create a room like: peer->opJoin("MyRoom");
the Returncode was -2 , what's wrong with it

Comments

  • By the way, the testclient(LoadBalancing) also cannot joingame, here is the info

    C:\Users\xianjun.wu\Downloads\Photon-OnPremise-Server-SDK_v4-0-29-11263\deploy\b
    in_tools\stardust.client\
    Test case: Master
    Settings: 5 games per process, 3 players per game, game server at 127.0.0.1:5055

    Sending reliable operation every 100 ms

    Starting 5 games with 3 players
    [18088] Press Return to End
    Connecting to 192.168.90.246:5056
    [18088] Started game UNISDEV01-PC(18088)1 with 3 clients
    Connecting to 192.168.90.246:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [18088] Started game UNISDEV01-PC(18088)2 with 3 clientsConnecting to 192.168.90.246:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [18088] Started game UNISDEV01-PC(18088)3 with 3 clients
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    Connecting to 192.168.90.246:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [18088] Started game UNISDEV01-PC(18088)4 with 3 clients
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [18088] Started game UNISDEV01-PC(18088)5 with 3 clients
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    Connecting to 192.168.90.246:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
  • Hi @Fish.

    Please be aware that the default application of Photon 4 is LoadBalancing. This is not compatible with LitePeer, which is used for the Lite application. The Lite application was part of Photon 3, but is not iincluded in Photon 4 anymore, as it is not scalable and has no real advantage over the scalable LoadBalancing application. LitePeer is just still included in the Client for backwards compatibility to Photon 3 servers, but we do not ship any Lite demos with the Client SDKs anymore to discourage new users from using LitePeer.

    Please use LoadBalancing instead.
    I recommend to look at demo_loadBalancing for an example of the usage flow.
  • Hello, I'm using Photon Server v4-0-29-11263 and launching LoadBalancing with local IP and it didnt work, I get the same errors as @Fish

    ---
    Test case: Master
    Settings: 5 games per process, 3 players per game, game server at 127.0.0.1:5055
    Sending reliable operation every 100 ms

    Starting 5 games with 3 players
    [2788] Press Return to End
    [2788] Started game EC2AMAZ-V2VPJ6M(2788)1 with 3 clients
    [2788] Started game EC2AMAZ-V2VPJ6M(2788)2 with 3 clients
    [2788] Started game EC2AMAZ-V2VPJ6M(2788)3 with 3 clients
    [2788] Started game EC2AMAZ-V2VPJ6M(2788)4 with 3 clients
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    Connecting to 172.31.9.81:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [2788] Started game EC2AMAZ-V2VPJ6M(2788)5 with 3 clients
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    Connecting to 172.31.9.81:5056
    Connecting to 172.31.9.81:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    Connecting to 172.31.9.81:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    Connecting to 172.31.9.81:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    Connecting to 172.31.9.81:5056
    ---

    so, what can i do?
  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @jbelonstark,

    Thank you for choosing Photon!

    There is a known issue with the TestClient.
    Read here (yellow warning).
  • jbelonstark
    edited August 2019
    JohnTube said:

    Hi @jbelonstark,

    Thank you for choosing Photon!

    There is a known issue with the TestClient.
    Read here (yellow warning).

    Thanks, that worked out :)

    What i did was change this value to 1500:

    add key="StartupInterval" value="1500"/


    in deploy\bin_tools\stardust.client\Photon.StarDust.Client.exe.config

    Thanks

  • mahmoud93p
    edited January 2020
    JohnTube wrote: »
    Hi @jbelonstark,

    Thank you for choosing Photon!

    There is a known issue with the TestClient.
    Read here (yellow warning).

    Hi, i am trying to connect public iP but not work for me, i am tried to change this Photon.StarDust.Client.exe.config -> StartupInterval to 480 not work and i tried to 1500 not work!
    Also i disable WebHooksPlugin1 in tow Photon.LoadBalancing.dll.config and not work


    this is issue
    C:\Users\devma\Downloads\pp\Photon-OnPremise-Server-Plugin-SDK_v4-0-29-11263\deploy\bin_tools\stardust.client\
    Test case: Master
    Settings: 5 games per process, 3 players per game, game server at 127.0.0.1:5055
    Sending reliable operation every 100 ms
    
    Starting 5 games with 3 players
    [9716] Press Return to End
    Connecting to 37.43.82.61:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [9716] Started game LAPTOP-2S03984V(9716)1 with 3 clients
    Connecting to 37.43.82.61:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [9716] Started game LAPTOP-2S03984V(9716)2 with 3 clients
    Connecting to 37.43.82.61:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [9716] Started game LAPTOP-2S03984V(9716)3 with 3 clients
    Connecting to 37.43.82.61:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [9716] Started game LAPTOP-2S03984V(9716)4 with 3 clients
    Connecting to 37.43.82.61:5056
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    OnOperationReturn: JoinGame failed: ReturnCode: 32758 (Game does not exists). Disconnecting...
    [9716] Started game LAPTOP-2S03984V(9716)5 with 3 clients
    



    And this log Photon-LoadBalancing i upload the log file there
    https://textuploader.com/165me



    Note : i am tried to run Public IP from laptop and i tired in VM Microsoft Azure but same issue



  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @mahmoud93p,

    The startdust test client is old and have this known race-condition issue.
    Which is not a big deal.
    You can skip the startdust test client altogether if you want.

    Anyways, if you want to fix it:

    Try to increase to a value higher than 1500.
    Try a huge value first (15000) then decrease step by step.

    Also, make sure to wait enough time for the server to finish startup before launching the test client.

    Also try the test client on the same machine/VM first then from another remote one.