Alirezamohanadi's Forum Posts

  • Can i import cordova project(that get from construct3) to android studio and get export apk?

    Is it need to edit files?

    Tagged:

  • I want to edit apk file that exported from construct3,

    I decompiled it by apk tools, but i can not find mainActivity.java in it.

    Where is it's location and directory?

    Tagged:

  • I took an android export and decompiled it with an apk editor, replacing the construct3 index.html file with a simple

    My index.html file (in the www folder).

    And I compiled it. But when running it on android device, my html file doesn't run and only a white or black page appears. I need to do this for a university project please guide me

    Tagged:

  • It depends entirely on the network configuration. If two devices are able to message each other directly over a LAN, then WebRTC should be able to as well. But if my experience of writing multiplayer code has taught me anything, it's that you can't really assume anything about networking. There could be unusual configurations, firewalls and other security software, buggy routers, and a bunch of other stuff that could prevent any two devices from being able to directly message each other, regardless of the network type.

    Thank you for your reply.

    And what should we do in order to make sure that the players are 100% connected?

    And another question, in general, if the game is designed in such a way that only people who are nearby need to join the game, is there a solution other than multiplayer? For example, using Bluetooth, or share it, etc., to exchange information without the need for a server. Does construct have an alternative way?

  • I have heard that people who are next to each other (connected to a same wifi) can find each other in 100% of cases and the game runs without problems, and the problems with NAT etc. are only for clients that connect to distant networks. are connected is it right ?

    Tagged:

  • Is the Singling server address of the Sierra site only for construct use?

    Or if someone writes a websocket html client program by himself, he can use that signalling server?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • My question is not about the construct.

    I want to make a simple and (independent of the construct) web chat using websocket (by which two devices connected to the same Wi-Fi can communicate locally)

    I searched on Google.

    I made a local server named server.js.

    And also an html file for the client.

    Through the cmd window and the command:

    node server.js,

    I ran app server and I was able to successfully connect the client to it.

    But I plan to also run the server.js file in the browser (html file).

    But when I run its codes by html.

    gives an error that:

    require ws(web socket) undefined

    I think the requier doesn't run in the browser. How do I solve it?

  • I visited your links. They were useful.

    But I still don't get it right

    For example, if I have an html page with text input and other things like construct layouts, how can I connect it directly to multiplayer scripts without needing construct layouts?

  • Thank you very much. Can I have an email or another way to contact you?

  • I mean, I want to design my own custom html page and use the multiplayer construct feature. (that is, there is no specific canvas for the construct) Is such a thing possible?

    I don't know if I was able to express my meaning correctly or not

  • Thankful. Can you help me if I send you the folder containing both games? It is not heavy size

  • But I run the games locally without the need for a server (with Webvivo)

  • I want to combine two html games, both running on the same page at the same time. But whatever I try, only the canvas of a one game appears on the screen (I tried ways like iframe, open local html, etc., but it didn't work)

    I think I need to edit the html codes to allow another html game to run inside them. How do I do this?

    (One game is made by construct, another game is made with another software)

    Tagged:

  • Thankful. I just wanted to use that site as an example. My main goal is to run another html game locally inside an iframe. I tried it but it didn't work. can you guide me

  • Only a website url (w3school)