[PLUGIN] Zack0Wack0's Construct 2 Plugins

0 favourites
From the Asset Store
Casino? money? who knows? but the target is the same!
  • I have spent days trying to get this plugin (and the official web socket plugin) working, but they do nothing.

    I tried the echo test project, does nothing but create a blank page.

    I.e. something is seriously not working.

    Also, neither work at all with node.js.

    I am running node.js with socket.io on port 8080, using this very simple app:

    var io = require("socket.io").listen(8080);

    io.sockets.on('connection', function (socket) {

        console.log("connected");

        socket.emit('balls', { ball:42 });

        socket.on('daub', function (data) {

          console.log(data);

        });

    });

    If I just write a dumb HTML page, it works perfectly:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

    <html>

    <head>

    </head>

    <body>

    <script src="socket-io/socket.io.js"></script>

    <script>

    var socket = io.connect('http://localhost:8080');

    socket.on('balls', function (data) {

        console.log(data);

        socket.emit('daub', { my: 'data' });

    });

    </script>

    </body>

    </html>

    I get 42 logged in the console

    I have tried various plugins, (there are lot of versions floating round), none of them work at all, no error, nothing in console, no error events, no events what so ever.

    E.g. this 3 line socket.io plugin app doesn't do anything:

    <img src="https://www.dropbox.com/s/zh8dmd6ylxstkm0/sio.PNG" border="0" />

    Nor does this one using the official plugin:

    <img src="https://www.dropbox.com/s/mkommxixt23e1l2/WSProj.PNG" border="0" />

    I am trying on the latest chrome and FF. Neither work. using the developerconsole/firebug, they show no socket connections being made. Ill try using wireshark, but the impression I get is that the "connect to" method is simply not making any connection attempt.

    I have also tried exporting the projects as html5 sites, and running them from there. no joy.

  • Hi,

    I'm trying this but I cannot connect to the node server.

    This is the server code:

    var io = require("socket.io").listen(8080);
    
    io.sockets.on("connection", function (socket) {
    	console.log("connected");
    });
    [/code:3aeyssyz]
    and this is the only event in my project:
    
    [img="https://s10.postimg.org/vbropjzax/poject.png"]
    
    It simply does not connect.
    From this html page:
    [code:3aeyssyz]<script src="node_modules/socket.io/node_modules/socket.io-client/socket.io.js"></script>  
    <script>  
        var socket = io.connect("http://localhost:8080");
    </script>  [/code:3aeyssyz]
    it connects.
    
    Can someone help? Thank you!!!
  • hi

    links have been missed

    can you fix and post it again ?

    thank U

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Github is still here:

    https://github.com/jamessun/construct2-zack0wack0

    But it is not updated for 6 years, and the creator seems MIA for 5 years.

    Are you sure that you want to dive into this with no support ?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)