JohnnySheffield's Recent Forum Activity

  • Ashley

    Regarding this topic, what's the license on the official plugins?

    I think license info on the official plugins would answer most of these questions!

  • It's an interesting watch.

  • If you're into some kinky stuff with node-webkit, i would recommend going through nw wiki and node.js api.

    If that doesn't satisfy your needs, dig deeper into chromium.

    That's about everything you need to enjoy node-webkit fully.

  • Ashley, got a quick question for ya.

    Why are you using this:

    var slash = "\\";

    path = require("path");

    if (process["platform"] !== "win32")

       slash = "/";

    Wouldn't it be better/efficient/sexier/insert-adjective-of-choice to use path.sep instead?

  • If i try to connect to the test echo server (ws://echo.websocket.org)

    it still throws the same error.

    When i type anything in the "protocol(optional)" field and try to connect to the echo server, the error won't show up and the "On connection error" gets triggered.

  • There were some efforts building node-webkit for pi, but haven't heard were there any successes. You can find some info on the nw mailing list.

    Regarding pine, i was following their git few months ago, druring the ownership transfer between some guy that started pine and the current maintainer but haven't seen any updates in months. thehen did you hear some fresh news about the pine project?

    I have one pi for some time now, but i didn't really succeed in running an c2 app with decent results. I tried html5 export, with standard pi linux and chromium for pi. If anyone wants i run some test on pi, please contact me!

    Cheers!

  • Raspberry can have a lot of different types of Linux on them (and other OS types).

    One could try to export the project to html5 and then run it form a browser, just like on any device. However my test have shown that performance is not so good.

    I think that your best bet is to install Android OS on your raspberry and try to export through cooconjs, or try to go with Firefox OS.

    What Linux are you specifically talking about?

    Is Linux absolutely necessary for your project?

  • I would first see will the official websocket plugin suits your needs. if not, there's aceofpack mod, with possibility to send and recieve JSON, but with unstable 'onanyevent' triggers, or my mod, but without json and anyevent. your best bet is to use either version and adapt it to your needs!

    Cheers!

  • Sorry, misread.

    But, nevertheless, the "on event recieved" is possible thanks to the same function as on "any enevt".

    It seems that you need custom event triggers; i.e. 'on myEvent'. My current solution is tho manually add triggers for everycustom event directly in runtime.js. I use this version of the plugin github.com/JohnnySheffield/C2_Plugins/tree/master/Socket_io-mod_stable

    I add a newcondition to the edittime.js, somewherearound line 22:

    addcondition('on my trigger', ,mytrigger','blahblah', 'onMyTrigger')

    In theruntime.js i add a new eventlistener:

    socket["on"]

              (

                   'Mytrigerr',

                   function(event)

                   {

    //trigger the ondatacondition here if needed               runtime.trigger(pluginProto.cnds.OnMyTrigger,instance);

                   }

              );

    And finally i add the condition

    :

    Cnds.onMyTrigger= function(){return true;}

    It needs more planning ahead, and is time connsuming, but in my experience it provides muchmore stable code.

    Sorry for the formatting, writing on mobile;

    Cheers!

  • Hi!

    I've uploaded this version of the plugin here as a kind of a dev version, but i will maintain the stable version here and add stuff as we make decisions!

    Cheers!

    edit:

    thatjoshguy

    The "on any event" is a pretty hackish stuff, and i would recommend that you don't use it. The socket.io support on the wildcard event is something that is discussed, but there is no news on implementing it. Solution for "on any event" used in this version of the plugin is taken from stackoverflow, and it misbehaved!

  • You can make node-webkit apps with free version, but you have to do the package process manually, and respect the license terms of the free version.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ahh, i was wondering how do you create installer for a complex program like Construct 2! Thanks for the tip!

JohnnySheffield's avatar

JohnnySheffield

Member since 31 Jul, 2012

Twitter
JohnnySheffield has 1 followers

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies