megatronx's Forum Posts

  • For anyone who's suffering from NWK freezes after exporting, try reverting back to 0.8.0, as it is working for us.

    LINK:

    At this time it is on the front page under downloads and Prebuilt binaries

    https://github.com/rogerwang/node-webkit

    Remove your game.exe, extract the file to your node-webkit exported project (replace remaining files ), and that's it! You can rename the exe file.

    Ashley Katala Arima shinkan

    Katala Please place this post in your first post, to make it easier to find. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> You can replace link with latest working version!

  • Ah yeah of course I can post a link like that, doh. Thanks Yeah the physics and thus the pattern change a bit when there is a slowdown, that is also what I notice a lot during testing.

    1 hour of testing and still no freeze. Also testing on my tablet (Surface) now. I hope this is a proper fix

    Me too, for almost an hour. No freezing!

    So, you have solved that case! Congrats and thanks!

  • You will need to look for the Prebuilt binaries, it's about half way on the site. There is also a link there to older versions under 'Looking for older versions?'.

    I cant post a link sadly

    OK. I found 0.8.0. Running it for several minutes already, and straight away the performance is smoother! Previously your blocks would slow down and overall pattern would change, but now they constantly in the same pattern! wtf?

    btw, you can post links like that. https:// s3. amazonaws. com/ node-webkit/ v0.8.0/ node-webkit-v0.8.0-win-ia32.zip

  • I exported the game as I normally would do and downloaded node-webkit-v0.8.0-win-ia32. I used the package.nw from the export and dragged it to the nw.exe to get it running. After 40 minutes I have not experienced any freezing.

    Going to keep it running to see where it goes. After 12 hours of testing today I think I need to do something else soon..

    I downloaded 0.8.0 since I read a post with someone that had freeze problems with 0.8.1.

    I would like to report it to the node-webkit bugtracker but my technical knowledge of this stuff is very limited so I don't think I can provide them with much or usefull information sadly. Hope this will see a fix someday.

    will try

    Edit THere is 0.9.2 version but i still cant find where i can download the exe from?

  • I still have no idea what this could be. I think VRAM is ruled out by small projects doing it, and V8 garbage collection is ruled out by the fact Chrome has the same javascript engine, but doesn't reproduce the problem. I think export-mode only is probably not actually the case - the export-time optimisations usually help improve performance and there's really absolutely nothing in the export process that could cause long pauses, so I feel it is more likely it is a sporadic issue that has not been observed in preview mode only by chance (perhaps because people spend less time in preview and more time in exported games?). 4 seconds is also an extraordinarily long pause for any local activity: not even garbage collection covering hundreds of megabytes of memory, or very large disk accesses, would take that long. It might even possibly somehow be a blocking network request.

    I would guess the most likely cause is the node.js component of node-webkit, since node-webkit is more or less identical to Chrome apart from in that regard, but that is out of our control and something the node-webkit developers should look at. It's also totally impractical to debug a sporadic issue that only reproduces after ~20min - debugging often involves running and testing the issue 10, 20, 30 times or more, and hours of sitting around watching a game does not sound like it would get anywhere. I think the best approach is to report the issue to the node-webkit bug tracker with (as always) as much information as you can possibly provide, and see what their view on it is.

    Node-webkit is also now two versions behind Chrome; it may be the latest version of Chrome has performance improvements which node-webkit will also get when it catches up.

    It's not always after 20 mins, to be fair. Sometimes much quicker. For me it can stop for about 5 seconds too.

    But why it never happens on previews? I tend to run preview on second screen sometimes for an hour or so and no hiccups at all!

  • scaffa megatronx

    Did you tried to pack to node-webkit yourself? Export from C2 as a normal html5 and then download node-webkit from https://github.com/rogerwang/node-webkit and pack it yourself. It's very easy. Did that some time ago because I don't like how C2 exports to node-webkit - it saves a file package.nw which is basically zipped file with your project inside (all graphic files, sounds, source code etc..) But was doing that on very specific project, where speed or freezes doesn't really matter.

    But this could be a nice comparison if this is something that C2 is doing on export or node-webkit itself while packing the app.

    Yeah was thinking about that. I'm not really felling confident enough in trying this. But I guess I have no choice, ha!

    Any tip on how to do it aside from exporting as standard html5 app?

    EDIT@ I've just extracted the package with winrar, removed package.nw, and run the exe, and it's working. Will see if its still freezing.

    EDIT2@ Still Freezing

  • Ashley So we're did some tests, and we see that the freezing only appears on exported project, but in preview mode NWK works fine. Any thoughts?

    Also can anyone with Win32 can confirm they are experiencing same issue? It might be win64 only thing.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes, loading and saving with node-webkit.

    I'm testing the prototype on some different PCs but the result is the same:

    My game has one savegame (keeping the player status, the hiscore and the game stats) that loads on startup. When I export the project with node-webkit the game doesn't start (it freezes on the load page). If I export the game without the save/load actions, it works properly.

    Any solution?

    Don't know. Sorry :/

  • Normaly I don't use minified with exporting but also tested that out. Doesnt make any difference.

    The node-preview is still running and no freeze yet. Did you also use node-preview?

    Also trying something else at the moment on another machine. I copied the contents of the node-webkit folder in construct and copied the .pak file from a earlier export that froze and placed it in that folder. It works when I run it and see if that makes any difference. I don't have any knowledge how this stuff works so just messing around now since I don't know what else to do

    on preview was fine, but after export it did freeze.

  • > scaffa

    >

    > Do you get the freeze with node- preview or just the exported version ?

    >

    I was unaware you could do a node-preview, thanks for mentioning that. I have been running the node- preview for an hour now with my actual game project and had zero freezes so far. Will keep it running for a bit longer.

    One step closer to the problem.. So maybe it's a problem that occurs during the export proces with the windows version?

    Since my experience so far is that the mac version works without problems. And now the node- preview works without problems. Maybe a silly question but is it possible to retrieve that node-preview version somehow? Is it located someone temporary?

    megatronx Again thanks for your help and good to hear you are not experiencing the problem.

    Np. But I was running it in preview. I'll try exe now.

    EDIT@ Yes you can. Can't remember where it is located exactly but it is somewhere in you document files folder.

    EDIT2@ Not sure if that's possible with NWK but are you exporting script as minified ?

    EDIT3@ NVM, after exporting it did freeze after 20 mins!

    SHITE!

  • Hi everybody

    any chance to export a game with savegames using the node-webkit tool?

    thank you in advance

    What do you mean? I thought you can savegame in NK?

  • Running it for almost 2h now and no problem yet.

  • >

    > >

    > > I remember I had that issue a year ago. I can't recollect if I found out what was cause those freezes back then or not. But on current project nothing happened like that yet ( and I want it to stay that way ). If you could share your jumping boxes capx, or better exe with us, we will tru it out too.

    > >

    >

    > I spoke with someone else and he also mentioned he didnt have any problems with the node-webkit export. So maybe something goes wrong during the export? I have no clue.

    >

    > I uploaded the files to MEGA but I cant post a link here so I will send a pm if that is possible. Attacked the capx for the jumping box project right here. Testing this problem is kinda yeah not fun since it can take a while to happen if you are 'unlucky'.

    >

    > edit: Seems I cant send pm's at the moment and add links due to low reputation.

    >

    > [attachment=0:aoujq8hc][/attachment:aoujq8hc]

    >

    There's the attachment Running it now

    Edit@ Clean so far. Hmm, trying to remember what did I do to get rid of those freezes long time ago. Might have been one of the following: gpu drivers, dXdrivers, .net framework, or something was running in the background ( music or graphic software )

  • >

    > I remember I had that issue a year ago. I can't recollect if I found out what was cause those freezes back then or not. But on current project nothing happened like that yet ( and I want it to stay that way ). If you could share your jumping boxes capx, or better exe with us, we will tru it out too.

    >

    I spoke with someone else and he also mentioned he didnt have any problems with the node-webkit export. So maybe something goes wrong during the export? I have no clue.

    I uploaded the files to MEGA but I cant post a link here so I will send a pm if that is possible. Attacked the capx for the jumping box project right here. Testing this problem is kinda yeah not fun since it can take a while to happen if you are 'unlucky'.

    edit: Seems I cant send pm's at the moment and add links due to low reputation.

    [attachment=0:morfmucp][/attachment:morfmucp]

    There's the attachment Running it now

  • I will do another test with less programs running. But I have been testing this morning with my current pc and also with a surface tablet that doesnt run alot of programs at the moment. Both have this problem.

    Friday with another test on someone elses machine that had a clean windows install also showed this exact problem.

    If it's happing on each windows (7 and 8) machine that I play the game on then that doesnt bode well.

    I remember I had that issue a year ago. I can't recollect if I found out what was cause those freezes back then or not. But on current project nothing happened like that yet ( and I want it to stay that way ). If you could share your jumping boxes capx, or better exe with us, we will tru it out too.