JohnnySheffield's Forum Posts

  • Yup, it's possible; you can do it multiple ways;

    One route is to use official websocket plugin, and write-up a server in python, node, or whatever suits your need.

    Other is to use socket.io plugin, there are several versions available on the forum, latest stuff was added by aceofspades, i think. The route is the same, you'll need a server in some language that has bindings for socket.io.

    Other libraries you can use are now.js, sock.js, even pubnub.com.

    For this application, i would probably use official websocket plugin, it's most stable one, and i think you can do everything with pushing text messages around connected clients!

    Cheers!

    Edit: Actually, for a quiz there's no need for websockets, you can do it with Ajax!

  • From the mailing list:

    "node-webkit requires at least OS X 10.7, 10.6 will also work after

    fixing this bug:

    https://github.com/rogerwang/node-webkit/issues/97"

    Also this, regarding minimum spec for node-webkit mac export:

    "Currently we require 10.7.x, after fixing this bug we will only

    require 10.6.x, and Chrome requires 10.6 as minimum which means we

    would never support 10.4.x."

    For osx 10.6, one must build node-webkit on it's own; a prebuild package can be found here:

    github.com/toxygen/10.6-node-webkit

    Not sure is this the issue here, but i haven't seen any info on the osx version this bug occurs on.

    Cheers!

  • Did you try macgap for mac export?

  • It's pretty readable.

    Did you try to tick off the "minify script" tick on the export dialog?

    Cheers!

  • Ahh, i forgot, regarding full screen and node-webkit...

    Not sure, but i think it's safe to presume that it uses the same method of "fullscreening" as chromium.

    If anybody wants a detailed answer, your safest bet is to ask on the node-webkit mailing list, guys are pretty active so you'll probably get an response!

    Cheers!

  • sqiddster

    exe

    Here's a really rudimentary demo of the set window width/height function in node-webkit. Just type some values in the texboxes and hit ok. (You can even try with 1/1, for the ultimate fun.)

    To try it yourself you'll need my node-webkit gui plugin from here.

    Cheers!

  • Nope, no preview for node-webkit...

    I'll whip a demo up tommorow or monday, so i'll reply here!

    Cheers!

  • I agree, but i don't see how to do it, except for scirra team to implement an official node-webkit plugin.

    Currently, all node-webkit functionalities are dispersed on all others plugins, where they can fit (some in browser plugin, some in others).

    I would like to see an official node-webkit plugin in the "platform specific" section of the plugins, with additional stuff that node-webkit provides, but i don't see it as something that is crucial.

    I would prefer that scirra team works on more important stuff, get/set window functionality is easy to implement in a third party plugin, if somebody needs it!

    Cheers!

  • Node-webkit does support changing window width/height:

    window width/height // get/set

    I implemented it in my unofficial node-webkit plugin.

    You can even change the position of the window on the screen, etc... It's documented pretty well. Check out node-webkit github page.

    Even though i'm not sure will the changing the size of the window help performance issues.

    Cheers!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yup, spent few minutes investigating and found a bug in some old plugin. Weird how it didn't show any error on older version of Construct...

    Well, it's all good now, thanks for the quick response!

  • Please move to the closed bug section.

    Re-installed a clean version without third-party plugins, now works properly.

  • Link to .capx file (required!):

    None. The error shows up when i start C2.

    Steps to reproduce:

    1. Start C2.

    Observed result:

    Check failure appears:

    ---------------------------

    Construct 2 Check failure

    ---------------------------

    Check failure! This is probably a bug:

    ACE table: Expression ID duplicated in ACE table

    Condition: exp_ids.find(id) == exp_ids.end()

    File: c:\c2\source\exporters\html5\..\..\common\ERAHelpers.h

    Line: 254

    Function: void __cdecl era::ACETable::AddExpression(int,int,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,const class std::basic_string<wchar_t,struct std::char_traits<wchar_t>,class std::allocator<wchar_t> > &,void (__cdecl *)(const class era::StaticResult **,int,class era::StaticEvaluation *))

    Build: release 124 (64-bit) checked

    Component: HTML5 exporter

    (Last Win32 error: 0)

    You are using a 'checked' release of Construct 2, intended for testing, which causes certain errors to be reported this way. Hit Ctrl+C to copy this messagebox - it's useful information for the developers, so please include it with any bug reports! Click 'Abort' to quit (unsaved data will be lost!),'Retry' to turn off messages for this session and continue, or 'Ignore' to continue normally.

    ---------------------------

    Abort   Retry   Ignore   

    ---------------------------

    If i hit "Retry" or "Ignore", C2 loads and works normal.

    Expected result:

    C2 loads without check error.

    Browsers affected:

    None.

    Operating system & service pack:

    Windows 7 Ultimate, 64bit, Intel i7-2600K 3.40GHz

    Construct 2 version:

    r124

    EDIT: I've just installed r124, graphic driver is up to date, according to the graphic driver check-tool.

  • That's good. When you set it up, please notify me, so i can start contributing to the project!

  • Nice progress with this plugin!

    You've made some nice additions to the whole socket.io plugin.

    I see that you're using the "unstable" version of the plugin that has the "On any event" condition.

    Although it is crucial to have that kind of condition for making something useful without editing the runtime.js everytime you need a trigger for a custom event, it uses some pretty hackish solution to achieve this. Socket.io doesn't have the Socket.on("*"){} or some other wildcard event that will catch all received events as for now, altough there is some talk about it; see here.

    I had some problems with current implementation with "On Any event" and sometimes it caused problems (non triggered events, although i sent them to client).

    Another issue with this plugin is received data handling. Currently, data is stacked in the LastData array, then extracted from it with some dubious(?) methods. Official websocket plugin has a much more tidy way of handling this, but i'm not sure is that solution suitable for this kind of plugin.

    Also, this plugin became really dispersed on a bunch of variants across the forum. Can we find something like github or sourceforge to track changes and sum our efforts to have one great plugin, instead of 5 different ones? Any suggestions?

    Cheers!

  • I played a bit with the capx; i'm in a hurry so it's not perfect but hopefully it will point you in some direction:

    Platforms will start apearing beneath you, but you'll have to tweak the code more to make it smooth!

    Here's the .capx

    Cheers!