shashankthebest's Recent Forum Activity

  • Did you find any solution to this ?

    I am having same problem.

    I have made a multiplayer card game. The peer never joins if the whole game is loaded from a different network.

    What is hamachi ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just an update, using Firefox I enabled the web developer console and saw the following message:

    ICE failed, see about:webrtc for more details

  • So basically I have made a multiplayer card game, everything following the chat tutorial.

    I have exported the project and hosted it on my computer and have setup appropriate routing on my modem.

    To test the working, when I run two instances of the multiplayer game through a different computer on same LAN, everything works perfect.

    Here is a workflow :

    1. Host connects and joins a room, waits for peer

    2. Peer connects, joins the same room

    3. Soon after joining, peer and host both receive a notification (opponent arrived) via "On Peer connected"

    4. Peer requests host to deal cards and goes on

    When I use a different WAN (say from Uni or work), and login to the website. the "On Peer connected" never seems to occur. Both host and peer keep waiting forever, but they never receive "ON Peer connected" message

  • Ok let me simplify.

    From within one plugin, how can I get reference to another plugin object, and call one of its actions ?

    Also how do I pass parameters for that action ?

    Thanks

  • I am developing a JWebsocket plugin that I intend to use for a multiplayer game.

    The plugin receives a list of users who are online.

    My aim is to take this list of users and put these users into a "constructs 2 list".

    Now i dont know how to set the elements of the list from within my plugin.

    here's what I want to do:

    Acts.prototype.PopulateUserList = function ()

         {

              this.userarray = [];

              if (!this.websocketClient)

                   return;

              console.log("Got user list into constructs runtime")

              

              

              this.userList = this.websocketClient.fetchUserList();

              for (var i=0;i<this.userList.length;i++)

              {

                   array.add(this.userList.uname);

              }

              

                     // Now I want to access the list which i have created

                     // and populate it with userarray

                     

                     // Basically something like this.runtime.list ?

         };

    Any suggestions or help is highly appreciated.

  • I want to add on to this.

    I am also developing a plugin for JWebSockets.

    I have the same problem.

    When I minify the script during export, I get errors.

    I have also investigated this in detail, and I found that by minifying, some of the JavaScript identifiers were changed.

    For example, one of the identifer was "usersList" and it was changed to "-"

    At present I am developing the plugin so testing without minify is ok. But it will be a problem when I want to actually deploy it.

shashankthebest's avatar

shashankthebest

Member since 30 Jul, 2013

None one is following shashankthebest yet!

Trophy Case

  • 11-Year Club
  • Email Verified

Progress

12/44
How to earn trophies