Constant777's Forum Posts

  • Hi!

    I downloaded an example of a multiplayer chat.

    Added 1 Button: "Leave room"

    Added 3 text fields to it that display the connection status:

    1. is connected to the server (is NOT connected to the server)

    2. is logged in (is NOT logged in)

    3. is in room (is NOT in room)

    I made an output to the android file.

    Started the chat.

    The text became like this:

    1. is connected to the server

    2. is logged in

    3. is in room

    Turn off WiFi.

    The text became like this:

    1. is NOT connected to the server

    2. is NOT logged in

    3. is in room

    Why doesn't the chat leave the room?

    It is not possible to re-enter the chat.

    When I click "Leave room" button, the server writes:

    Error: not in the room.

    But the system thinks I'm in the room and informs me about it:

    3. is in room

    How do I make the correct exit from the chat so that it does not stay in the room when the connection is lost?

    The problem is that if the Internet connection lost, the program shows that there is no connection to the server, but I am in the room. How is this possible?

    Because of this error, it is impossible to create a room since I am supposedly already in it.

    And when I try to say to SERVER leave the room, the server reports that I am NOT IN the room but the PROGRAM says that I am IN the room.

    And all this happens on the example of a multiplayer chat without any changes in signalling.

    I need help!

  • Not too clear from your description, but issues like this usually result from misunderstanding and getting the signaling connection and the room connection mixed up. The can be disconnected from separately, make sure you're using the right one. Also note that disconnection is an asynchronous action, it doesn't happen in one tick so make sure to use the 'on disconnected' and 'on left room' triggers to log and diagnose.

    The problem is that if the Internet connection disappears, the program shows that there is no connection to the server, but I am in the room. How is this possible?

    Because of this error, it is impossible to create a room since I am supposedly already in it.

    And when I try to say to SERVER leave the room, the server reports that I am NOT IN the room but the PROGRAM says that I am IN the room.

    And all this happens on the example of a multiplayer chat without any changes.

  • Hi!

    I downloaded an example of a multiplayer chat.

    Added 1 Button: "Leave room"

    Added 3 text fields to it that display the connection status:

    1. is connected to the server (is NOT connected to the server)

    2. is logged in (is NOT logged in)

    3. is in room (is NOT in room)

    I made an output to the android file.

    Started the chat.

    The text became like this:

    1. is connected to the server

    2. is logged in

    3. is in room

    Turn off WiFi.

    The text became like this:

    1. is NOT connected to the server

    2. is NOT logged in

    3. is in room

    Why doesn't the chat leave the room?

    It is not possible to re-enter the chat.

    When I click "Leave room" button, the server writes:

    Error: not in the room.

    But the system thinks I'm in the room and informs me about it:

    3. is in room

    How do I make the correct exit from the chat so that it does not stay in the room when the connection is lost?

    Ashley, I need help!

    Tagged:

  • I think only Ashley can answer me...

  • Hi!

    I took the chat template from the Construct examples.

    Added a button to exit the chat and 3 text forms in which the multiplayer states are displayed:

    Then I export poject to Android, run it, push button "JOIN"

    Then I collapsed the chat and waited 10 minutes.

    During this time, the server apparently disconnected me.

    I clicked the exit chat button, it is clear that there is no connection with the server, but the system shows that I did not leave the room.

    And I can't go into the room again.

    How to log out of the chat correctly?

  • What platform?

    If you have a log in server, that can be used to verify the game version at the same time. What authentication method are you using?

    I need to check for updates on android.

    the game itself, but not the android system.

    because for some players, the update may be disabled.

    there are games that you go into and they show you a message that you need to update the game.

  • Hi!

    I need to check for game updates and show the user that it is necessary to update it or automatically update the game.

    It may be forbidden to log in before the update.

    How do I check for an updated version of the game and update it automatically?

    Tagged:

  • Hi!

    I want to output the value through the text 10^30=1 000 000 000 000 000 000 000 000 000 000

    but I can see only 10^30=1e+30.

    I need help :)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi!

    I have an online chat with rooms. I need to create a password for an online rooms.

    If the password for the room matches the password of the host, then the user enters the room.

    Do you have any idea?

    I need help :)

  • You don't need to download/upload anything. You can do this:

    > Set myVar to Array.AsJSON
    Array clear 
    Wait 2 seconds
    Array Load from myVar
    

    Run project in Debug Mode and see what's happening with the array.

    I've never used Array.AsJSON.

    I'll try it now.

    Thank you very much! )))

  • You can use Array.AsJSON expression to get it as string. And "Array Load" action to load it back into the array.

    Thanks, but Array.AsJSON assumes that you need to download the file and then upload it. But I need it to be done in the program itself without additional file downloads.

    For example, I have a one-line array and I need to turn it into a string variable: 1;2;3;4;..... and then when it is necessary load it from the string variable into a single-line array

  • Hi!

    I need to convert array to string and then in some case convert back string to array.

    Please help me :)

  • Use a function on the action. On the function add a parameter for the variable and send through the function the hero.ID (it picks the overlapping one automatically). Then in the function, if param=left pick hero where ID= right and set variable, if param=right pick hero where ID=left and set variable.

    Thanks a lot! It works! :)))

  • Hi!

    On start of layout I create two the same sprites "Hero" (with DragDrop bahavior)

    with different instance variables:

    HeroID="Left" and HeroID="Right"

    Sprites "Hero" has one more instance variable: "Check"

    I need to change instance variable "Check" from the sprite "Hero" with instance variable HeroID="Left" when sprite "Hero" with instance variable

    HeroID="Right" is overlaping "SpriteOverlaping".

    If shorter...

    When "Hero" with HeroID="Right" is overlaping "SpriteOverlaping"

    I need to change instance variable "Check" from "Hero" with HeroID="Left"

    I can't solve this problem :) Need help :)

  • the scirra signalling server might have locked you out for having too many connection attempts, it does that to me too sometimes when i test my game, i think the default is like 200 per hour from the same ip ? around that ballpark

    it doesn't look like the problem of blocking from the number of attempts. because when I can not connect to the server and after 10 seconds I connected, then again the same problem can be ...