JohnnySheffield's Recent Forum Activity

  • Nice plugin!

    One of the most fun an entertaining demos I've seen in a long time!

  • Good news; i sorted the loading time, it loads instantly now!

    Problem was in the index.html, i edited line 59 as follows:

         <script src='jquery-1.7.1.min.js'>\x3C/script>

    C2 was actually trying to get jquery form ajax.googleapis.com, once you say to construct to look for jquery locally everything is much, much smoother!

  • Thanks, you all made this place so nice, i feel i need to return something, and i really like node.js so this is really fun. And nights are calm, quiet and good for some hanging around with good ole' notepad++!

    Also good news; i sorted the loading time, it loads instantly now!

    Problem was in the index.html, i edited line 59 as follows:

         <script src='jquery-1.7.1.min.js'>\x3C/script>

    C2 was actually trying to get jquery form ajax.googleapis.com, once you say to construct to look for jquery locally everything is much, much smoother!

    Also, standby, i will release plugin to access to node.js OS module soon! (1-2hrs)

  • Yup i noticed that too, but haven't got time to check that, sometimes it won't quit, sometimes goes smoothly and quits instantly... not sure where's the problem

    i'll check it tomorrow or sometimes when i got time :D

  • Haven't tested but i believe it should work. There was no warnings in the wiki about cross-platform problems on the stuff i implemented, but here will probably be some problems, eg:

    bug # 154

    Menu icon has no effect on Ubuntu bug linux

    bug #142     

    Frameless app windows are not resizable on Linux bug linux

    and mac:

    bug #170

    etc.

  • Plugin "finished", you can download the plugin here

    and find more info on the plugin here

    Download demo with some of the functionality here

    This plugin is for the basic stuff, window size, title, clipboard, etc...

    Hopefully i'll get some time these days to dig in deeper and write some node.js module plugin for construct, i'm thingkin fs, to get access to local files, but maybe go for socket.io server side to get some multiplayer stuff rolling in the construct 2. It's nice to dream... :D

    Please test, post your ideas and anything that crosses your mind!

    Cheers! <img src="smileys/smiley41.gif" border="0" align="middle">

  • 12/12/2012

    edited the plugin; You can use it now in your html5 apps, it won't break the project, eg. if you are in a html5 app and try to call an node-webkit action, project won't break. (so it follows the "code once, export everywhere" mantra)

    Also, added the "IsOnNodeWebkit" condition so you can tell in what environment are you running on.

    Added the "open window" action so you can open additional windows. it accepts two parameters: URI and specs;

    URI can be either some url, eg "http://www.google.com", or it can be URI to another .html file in your app, so if you have an folder in your app package called "AnotherConstructProject", and in it another exported C2 project, you can open it in another window eg. "AnotherConstructProject/index.html". Just remember to add it to your package.json, so beneath the "main:'index.html'" line add another line "second: 'AnotherConstructProject/index.html'" , and you're set to go!

    specs are anything that goes in the "window" section of the package.json; eg. "screenX=0,screenY=0,width=100,height=100".

    re-download, add suggestions, and enjoy!

    7/12/2012

    Edited the plugin, you can use action "close window" and little red x, it won't break, but i had to put deprecated property on the "onClose" trigger because it caused problems. Also, bumped version to 1.1.

    Re-download plugin if you like!

    7/12/2012

    Edited the plugin, action "quit" now quits the app properly and instantly.

    BUT, when you try to close window either with a red X or action "close window" it doesn't work. It's just a problem with catching the "onClose" event and managing the closure properly, but i'll check into that tomorrow. For now, use the "quit" action to close the app.

    Re-download the plugin, uploaded a new version

    Exported a new demo with faster loading time

    Did some minor changes to .capx

    __________________

    Download the plugin here

    And the demo here

    And the .capx here

    Conversation about and more info on node-webkit here

    Plugin is still in development and heavy testing. Please test and be careful!

    I really don't want to copy and paste bunch of text so read about implemented stuff

    here (window related stuff)

    and

    here (App related stuff)

    and

    here (clipboard related stuff)

    and

    here(Shell related stuff)

    Final note: for succesfuly creating an .exe you'll have to play with package.json, it's nothing scary, just a bunch of variables you can set so that .exe knows how to run.

    Read about package.json for node-webkit here

    Cheers!

    EDIT: forgot to mention, plugin exports an example package.json file for you. After exporting your project, open package.json file in your favorite text editor and edit it as you need!

    For exporting to .exe check here

  • Fullscreen, no chrome [window borders] - i'll release a plugin in a few hours with this possibility sorted out

    Custom icon on windowed game [not the HTML5 logo] - edit the package.json to achieve this

    ----

    Leaner exe with separate data files

    Cruft removal from exe [unused icons and cursors]

    Mouse capture / hide / replace cursor

    ---- <img src="smileys/smiley35.gif" border="0"> me if i know :) ------

  • Joannesalfa

    Ok, i see what you mean but that's currently out of my league...

    We must consider that node-webkit is 0.3.5 version and little over a year old. I hope it will get better in time!

  • I don't think so, but for some graphic cards two dll's form direct x are needed. I believe if you can run chrome & webgl in it on your computer, this should work too!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Joannesalfa

    "is possible to make external data using node-webkit to load resource files?"

    I don't understand, could you explain? But if chromium or node.js can do what you want, in theory node-webkit should make it happen!

    As for the size, i think we cant get it under 48 mb beacuse the nw.exe, .dll's and .pak file are that size. If you add your own .nw file it can only go up! It's an issue, i know.

    But we can't expect for it to be small, it's an .exe with node and chromium included so it must be big. Also size is not an issue beacuse it's an .exe, not a mobile game!

  • Joannesalfa

    from wiki: "On Windows with some hardware and driver, WebGL won't work until you copy D3DCompiler_43.dll and d3dx9_43.dll to node-webkit's directory, or install DirectX redistributable. For license reasons we cannot ship those DLLs."

    So it actaully works out of the box, but not on all hardware. I haven't look at the licenses to see if we can distribute them freely, but of node-webkit can't ship them so i don't think it's an option.

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