istanto's Recent Forum Activity

  • istanto i think you still have the old version because the line that says

    jpt_splice(dataStack, 1);

    Uses a zero instead of a one in the new version, so it looks like this:

    jpt_splice(dataStack, 0);

    thanks

    I got it work juantar <img src="smileys/smiley9.gif" border="0" align="middle" /> the problem is i'm not install socket.io on "c:\node_modules" and my browser is not updated. Thank you for your help GBU.

    regards <img src="smileys/smiley12.gif" border="0" align="middle" />

  • istanto can you please open in notepad the following file in your construct2 folder:

    exporters\html5\plugins\socket-io\runtime.js

    At the end of the file there should be function called get_last_data at around line 179, can you please copy and paste those lines or take a screenshot of them?

    Thanks!

         function get_last_data(dataStack)

         {

              var dataLength = dataStack.length;

              

              var data = "";

              if (dataLength > 0) {

                  data = dataStack[0];

                  jpt_splice(dataStack, 1);

              }

              return data;

         }

    regards <img src="smileys/smiley12.gif" border="0" align="middle" />

  • istanto : It was a silly mistake, I was calling the my splice function with the wrong index in the plugin code *facepalm*. I tested it in my machine and it works. I put a new version out there, please download this latest version and let me know if it works for you.

    still not works... new player can't see old player, old player can see new player. I try on chrome, firefox and opera <img src="smileys/smiley19.gif" border="0" align="middle">

    regards   <img src="smileys/smiley12.gif" border="0" align="middle">

  • istanto did you get this error with the new version? I saw that problem and I though I fixed it in the latest release. It was a problem with the code in the example_server.js file (I was not using the broadcast method in the socket).

    Yes this error on your new version package, I download socket-io-mod.zip today from sites.google.com/site/jptarqu/downloads to learn the code inside it. I believe nothing wrong inside your code, it's not out from my logic.. if I'm not wrong socket.broadcast.emit mean packet sent to global except the sender, but it's strange.. why only old player can see new player.. any enlightenment will really help me, I need to fix this bug to start something very soon.

    Regards <img src="smileys/smiley12.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • good job this sample open my mind about possibilities html5 multiplayer game, but there is annoying bug in your code sample.. new player which just login can't see old player, but old player can see new player joined after him. can you tell me the problem or maybe you can fix the code and let me see it.

    Regards

istanto's avatar

istanto

Member since 4 Apr, 2012

None one is following istanto yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies