How to use the cloud feature?

Options
So I registered my cloud application and downloaded PUN 2 Free from asset store. But when I open up the PhotonServerSettings, there's no option for Cloud? It seems like the options are only for a self hosted server? I'd like to switch to Cloud but I'm not quite sure how to?
These are the settings that show up



Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @ritolika,

    Thank you for choosing Photon!

    By default, you connect to Photon Cloud, that's what the AppId is for.
    Read more here.
  • ritolika
    Options
    JohnTube said:

    Hi @ritolika,

    Thank you for choosing Photon!

    By default, you connect to Photon Cloud, that's what the AppId is for.
    Read more here.

    Okay but I've tried connecting in every different way, when I try ConnectToRegion I get: OperationResponse 230: ReturnCode: 32767 (Invalid application id). Parameters: {} Server: NameServer Address: ns.exitgames.com:5058

    And I've tried connecting different ways too but none seem to work
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    You must be using a wrong Application Id:

    - you did not copy/paste it from Photon Dashboard
    - wrong type: probably Chat
    - or issue in copy/paste
  • ritolika
    Options
    JohnTube said:

    You must be using a wrong Application Id:

    - you did not copy/paste it from Photon Dashboard
    - wrong type: probably Chat
    - or issue in copy/paste

    I double checked that it's the correct type and I copied the App ID directly from the dashboard

  • JohnTube
    JohnTube ✭✭✭✭✭
    edited November 2018
    Options
    You should call ConnectUsingSettings and not ConnectToRegion. See here.
  • ritolika
    Options
    JohnTube said:

    You should call ConnectUsingSettings and not ConnectToRegion. See here.

    Seems like I successfully connected using ConnectUsingSettings, but what event do I use to know when the connection was successful, I've tried OnConnectedToServer().
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    hi @ritolika,

    There is no callback OnConnectedToServer.
    Maybe you mean OnConnectedToMaster and I think you missed a very important change in PUN2 where callbacks are methods from implemented interfaces and not Unity messages like PUN1. Read more here and here.