ThePhotons's Recent Forum Activity

  • I have no insight what Construct is sending.

    I guess it sends 5..20 updates per second and does some smoothing which fits your case well.

    You can send x,y at least 10 times a second. At least, when the position changes. You can also send a direction/speed vector to allow smoothing should some update get lost or delayed (then the client can calculate where the object is going, based on this info).

    For 50 objects, it might make sense to send just changed values. If the direction and speed does not change, you don't need to send position updates (e.g.), because the object moves in a predictable way.

  • : Cool to read you made it! Tutorials are always very welcome. Let us know if you need more input.

  • Hey Tobias , thanks for the response but Im not sure its something I'm doing seeing as Construct 2 bascially doesnt allow you to "fuckup" writing syntax [...] I,only have yes or no as my choices [...]

    so heres how it goes down : the Host can shut the room. this breaks all the clients in the room except the host . the host is fine. If any client leaves , he can not make a game until he toggles the IsOpen boolen , ( doesnt even matter if hes in a room or not ) and that fixes the error and hes free to create games again .. i think whatever the host sends the clients to tell them to shut the room has a bug in it

    I was not entirely aware that you don't write any code in Construct 2. Good to understand that.

    That means there is a bug in our plugin, because the server does get a wrong kind of value where it should get bool (true/false). That much is clear from the error you posted above.

    Closing a room means that no players can join anymore (once the server got your close command). The server updates the other clients in a room that this room is now closed but that does not mean clients should use this value when creating a new room.

    Thanks to your analysis, I would say: Somehow the clients do use that value and this makes "Create Room" fail.

    I created a task for Vadim to check this out when he's back. Because there's a workaround, I hope the wait-time will be bearable.

    We don't have a "Marco Polo"-alike tutorial for Construct so far, sorry. To get some amount of docs done, we write almost all in C# and hope it's easy enough to read and "port".

    https://doc.photonengine.com/en/realtim ... time-intro

    Maybe someone from the community can do a tutorial? We're happy to post and credit any tutorials the community creates.

  • Hi everyone! Here's Tobias writing. Vadim (who's our Contruct Master) is on vacation for two weeks. I will try to help where I can

    if I join a room , then toggle IsOpen or isVisible , then leave the room and try to create a new room... I get this error and the room creation fails

    The image tells me that the value of IsVisible somehow turns into a "double" instead of the expected "boolean" (being true or false). Can't say what's happening here. Maybe you check which value you assign to IsVisible, when you do?

    andykenobi: The region code is "sa". How do you set the other regions? Maybe we have to edit "sa" into a list of regions (there was no update since we added the region).

    I'll try to figure out. Maybe someone else can help right away?

    Badmiracle: I will take a note and have to ask Vadim when he's back. This requires some knowledge about the versions since 4.0.0.1.

    Can you work with 4.0.0.1 for a while longer?

  • Photon server does not send room list on demand. Only when client connects or list is changed.

    Cache what you receive in "on room list" and use cached value each time you want to manually retrieve room list.

  • I asked for browser log which may have more info than error popup you posted before.

    Most likely you are trying to create a room while joined to a room (error states that client is not connected to master server required for room creation).

    Leave room first.

  • Hi,

    What error exactly? Please provide browser log content.

  • Photon Scirra C2 SDK updated: https://www.photonengine.com/en-US/Real ... construct2

    Changes:

    New Photon Chat Plugin (photon-chat.c2addon) added

    Photon Realtime Plugin (photon.c2addon) features added:

    • joinRandomRoom matchmaking options (mode, lobby parameters, optional usage of max players and properties of local room)
    • joinRoom rejoin actorNr, createIfNotExists and lobby parameters (current room properties used for create operation)
    • createRoom lobby parameters
    • setPropsListedInLobby action
    • RoomProperty expression (for getting property of room in lobby)
    • LogLevel setting in Photon object
    • webRpc, findFriends, requestLobbyStats actions and conditions
    • onAppStats condition
    • isConnectedToMaster, isInLobby, isJoinedToRoom conditions
    • setRegion action
    • room and actor setProperty: WebForward and CheckAndSwap/ExpectedValue parameters
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • what will the update contain ThePhotons And can you please implement so its possible to send multiple data with an event and not just 1? That would make things much more easier

    What "multiple data" looks like?

    Photon can send arbitrary js data (basic types, objects and arrays) but Construct2 does not support anything aside strings and numbers as far as I know.

    You may send any data as string using json encoding.

  • Hey, there is a problem. It's not possible to create a room by clicking a button. It also won't work in your demo... the error: http://prntscr.com/bk7e93

    I get the same error, when trying to join a random room: http://prntscr.com/bk7tus

    But I found a workaround for my problem. What exactly is the InterestGroup? Photon.Property, Photon.ActorNrAt() etc..is there an explanation for all these?

    Hi,

    The plugin wraps Photon javascript library. So you may find js SDK documentation useful: http://doc-api.photonengine.com/en/javascript/current/

    Different Photon concepts available in all SDKs described in general documentation https://doc.photonengine.com/

    Also plugin has short descriptions of js lib methods and parameters it exposes.

    Interest groups allow send events to group of players only instead of all. Player should add this group first to receive such events.

  • We are going to release Photon plugin update and new Photon chat plugin next week.

  • How do I sync bullets to other players? Let's say I want a player to press SPACE to spawn a bullet.

    What do you want to sync exactly? if bullet visuals, send event to others about bullet starting point and velocity. If bullet hit then send position of hit for visualization and/or hit result (damage e.g.)

ThePhotons's avatar

ThePhotons

Member since 13 Feb, 2015

Twitter
ThePhotons has 7 followers

Connect with ThePhotons