ChesVCF's Recent Forum Activity

  • Problem Description

    Multiplayer plugin gives me a Javascript error when the event "On signalling disconnected" AND "Variable1=0" triggers, the peer's value of this variable is NOT equal to 1 and after that the peer tries to reconnect to the signalling server. You will probably see it better in the capx.

    Attach a Capx

    capx

    Description of Capx

    In the capx, you connect to the signalling server with the Multiplayer Plugin. When you are the host and you disconnect from the signalling server, peers get kicked. On kicked, peers disconnect from the signalling server and change the value of a variable from 0 to 1. Then, the event "On signalling disconnected" AND "Variable1=0" triggers and peers get a Javascript Error.

    Steps to Reproduce Bug

    • Run the capx on Chrome and duplicate the browser tab.
    • Make sure you're the host in one of the browser tabs and a peer in the other one.
    • Disconnect the host from the signalling server (click on the button in the host tab)
    • You will see a Javascript error

    Observed Result

    Javascript error (you can see it in the Browser log)

    Expected Result

    I expect peers to reconnect to signalling server, without any bug, and be able to resume their multiplayer activity although the host leaves the game/chat.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (DIDN'T TEST)
    • Internet Explorer: (DOESN'T SUPPORT MULTIPLAYER)
  • Anybody? Please, I think this is an important topic and I can't be the first one to have this problem :/

  • oosyrag

    Of course, this would be the "bad" solution. This is why I asked in the forum if there was any way to return the OSK's height value.

  • oosyrag

    From this page it works, but I think it's because it is run on the browser. In built apk it doesn't work.

    If it is just an overlay and doesn't change the viewport sizes it might not work...

    Yes, this is the problem. Neither ViewportBottom nor WindowHeight expressions change their values when the screen is covered by the OSK. This is why I'm looking for a way to get the OSK's height. Any clue?

  • oosyrag

    I'm 100% sure, I've exported a capx that gives me WindowHeight every 2 seconds and it doesn't change. Scroll To Behaviour didn't work either (I already tried).

  • Try Construct 3

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

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

    I've asked this some times but nobody replied When I run my game on Android and a text box is touched, the virtual keyboard pops up and overlaps almost 40% of the screen. I want my game to scroll up when the keyboard is on screen, but I need the keyboard's height. There is no system expression that can help (WindowHeight isn't affected).

    I had thought of getting this value with an XML input and storing it as a variable, but I don't know how to do it or if this is even possible. Can you please give me a hint? I really need it and I'm sure there is a way to do it.

    Thank you for your help

  • Hi!

    Is there any way to do a chat using the multiplayer plugin, that when the host leaves the conversation it connects all the other members again and resubmits the messages that had not been delivered?

    I found this similar topic and I tried to copy lennaert's events, but it didn't work.

    Thank you for your help.

  • Hi!

    Browser action "unlock orientation" doesn't work on built apk (exported with Intel XDK). The device orientation cordova plugin isn't added when I export my game, do you know if I have to setup anything before exporting to cordova?

    Also, if anyone could answer this topic I would really appreciate it, I'm struggling with it for a very long time.

    Thank you for your help.

  • Hi!

    I have some questions on how to do this with the Construct 2 engine:

    1.- Scale the game as if it was Letterbox Scale and resize it to fill the whole screen (I don't mind if the aspect ratio isn't kept):

    Example:

    2.- In Android, there is a floating notification bar on top of the screen with some basic information like hour and battery level. In my game, this bar appears at some points (for example when you write in a text box, both the keyboard and this bar pop up, overlapping many objects). Is there any way to implement this bar into the game, so that it is always there (it is more or less what WhatsApp does).

    Example:

    3.- Similar to question 2. When you write in a text box, the keyboard pops up and overlaps almost 40% of the screen. I want my game to scroll up when the keyboard is on screen, but I don't know any system expression to get the height of the virtual keyboard or to get the Y-coordinate of the bottom of the screen without keyboard (ViewportBottom doesn't change when the virtual keyboard is on screen).

    Please let me know if you have any clue. If there is anything that can't be done with C2, is there any alternative program where I can do this? (Maybe in the Intel XDK before exporting?)

    Thank you for your help, I truly appreciate it!

    EDIT: I thought this could be probably done with some code input, do you know what I have to code?

  • Try with "NoSleep();" huntjn

  • Wow, I'm a genius... I had an object with the "Scroll To" Behaviour...

    I already solved it, I consider this topic closed.

  • Hi rexrainbow

    I love this plugin But I have a question: on the built apk characters have a very low quality, they are pixelated (font is Arial). Do I have to setup anything?

    PS: I also posted this comment on the BB Code Discussion Thread, but this was a confusion, sorry ^^'

ChesVCF's avatar

ChesVCF

Member since 15 Aug, 2016

None one is following ChesVCF yet!

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies