ThePhotons's Forum Posts

  • Photon client api does not allows such thing.

    If you use Photon Server you can forcibly disconnect users in server-side code.

  • Region change in runtime is not supported currently. Added this feature to TODO list.

  • Please patch Photon plugin runtime.js file . Find ["EU", "US", "Asia", "JP"] array and add "AU" there.

    We will add the fix in next update.

    EDIT:

    Also "EU|US|Asia|JP" string in edittime.js needs to be changed to "EU|US|Asia|JP|AU";

  • We looked at your report but did not have much fresh ideas.

    checkNextState errors are probably because app calls api methods at wrong time (starting connection from ui while client is connecting e.g.).

    Aside that, everything looks like poor internet connection which causes disconnects.

    Can you try to run particle demo from Photon javascript sdk package to see if it fails as well? It has average data send rate. If your app sends more, it can work for high bandwidth and do not for lower.

    Btw, you did not fully answered my previous post on this topic

  • Can you explain why can't I use self hosted mode but only Photon Cloud?

    ostType and SelfHostedAddress are parameters of Photon object (same list where you set app-id).

  • Hi Daggio

    You did not provide any details on error itself.

    Please share application log from browser console.

    Do other secure websocket applications work for user?

    What if change region to eu or asia?

  • ThePhotons

    is there a way to access photon.time using the plugin? thinking about sending timestamps to compensate for latency

    Photon.time is not available in Photon Javascript SDK and therefore in Construct 2 Photon plugin.

    This is limitation of text-based protocol used when connecting via websockets.

  • Does this plugin support photon clouds Turn Based Asynchronus game modes too? Ie the CachingOption can be set for the room and it remains open even when all players have logged off (using "temporary" status)?

    Essential Turnbased features like rejoining with given actorId is not exposed in Photon plugin yet. These features available only in Photon Javascript SDK currently.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • ThePhotons please, does anyone know how to get the "room list" using Photon Cloud Plugin?

    "Connect" event sheet of demo-test project included in SDK shows how to work with room list. You need "On room list" and "On room list update" conditions to handle list changes.

    Photon.RoomCount and Photon.RoomNameAt expressions used to iterate current room list.

  • For the beginner who don't understand how photon work I made a Tutorial for a platformer with a chat here

    Great job, thanks. I added the link to initial post of this topic.

  • Sorry, matching properties are not supported currently by plugin.

    It's not easy to pass dictionary (js object) with required properties to joinRandomRoom method. Setting properties one by one with special method calls before joinRandomRoom call is the only way I can imagine. But of course this is neither convenient nor safe (it's not clear when and how to clear list of set properties).

    Same applies for other missing features. It's hard to express them by means of Construct 2.

  • We do not provide tutorial currently. Use pool demo as template for you project. Feel free to ask if something is not clear in the demo.

    If you are not familiar with Photon, check documentation http://doc.photonengine.com/en/realtime ... time-intro

    Photon workflow is the same, no matter which platform you use.

  • > Now plugin and demos available as Photon Scirra SDK: https://www.photonengine.com/en-US/Real ... construct2

    > It's the same plugin as before except that self-hosted servers support added (which is not very useful until Photon server v4 is available). So you most likely do not need to update.

    >

    ..."which is not very useful until Photon server v4 is available)" ... When will that be ThePhotons?

    orry, Photon server v4 has been available for about 2 weeks already. I did not check download page when wrote a message. Neither you did <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

  • Do you think small games will have connection limitations with the free plan?

    ll limitations are mentioned in plan description. You can have maximum 20 users online with free plan. This is most important limitation I think.

    Msg/sec/room is how much messages is sent by clients of one room within a second. You hardly can reach this limit in conventional game if it's designed properly.

    Check https://www.photonengine.com/en-US/Realtime/Pricing page for more details on plan parameters (below plan list).

  • Now plugin and demos available as Photon Scirra SDK: https://www.photonengine.com/en-US/Real ... construct2

    It's the same plugin as before except that self-hosted servers support added (which is not very useful until Photon server v4 is available). So you most likely do not need to update.