Quit/Exit Game for node-webkit exe export

Get help using Construct 2

Post » Sun Feb 17, 2013 1:19 am

Im looking to do a node-webkit export of my game and would like to ad a button for exiting the program. I know there isnt a "exit application" system function. All I've found on the forums is the "quite to splash/title layout" method.. which I'm using for all other exports of the game. Does any know how to do this?

Thanks in advance.
B
5
Posts: 9
Reputation: 883

Post » Sun Feb 17, 2013 2:02 am

There no way to solve it. You only can close app was cliking "X" icon on top-right from window.

I told to Scirra to add Oficial Node-Webkit plugin to access Node-Webkit API, but i got no official response.


However, if you really need faster, you should download this plugin

http://www.scirra.com/forum/topic60647.html

It's old, but still working, there a problem you shouldn't use export node-webkit because it won't work, otherwise you should export HTML5 version and you could compile with node-webkit SDK following this tutorial

https://www.scirra.com/tutorials/417/exporting-to-exe-using-node-webkit
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sun Feb 17, 2013 2:20 am

Thanks Joannesalfa,

I'll give that a try.

Crazy that they didn't add that function when they added the export option for node-webkit.
B
5
Posts: 9
Reputation: 883

Post » Sun Feb 17, 2013 2:26 am

Your welcome.

Node-Webkit exporter in C2 needs to be tweaked and customized, currently exporter... i wouldn't use it for my game in public release.

So don't try to use "Browser" plugin and add action "Close" it will appear an error window tells you no respond and press "End task" button.Joannesalfa2013-02-17 02:26:48
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sun Feb 17, 2013 6:21 am

If you use the Browser > Close action, it should work.

*edit*

Just saw Joannesalfa's post about this - I have it on my game and it seems to work okay. ome6a17172013-02-17 06:22:37
B
22
S
3
Posts: 451
Reputation: 2,135

Post » Sun Feb 17, 2013 6:28 am

[QUOTE=ome6a1717] If you use the Browser > Close action, it should work.

*edit*

Just saw Joannesalfa's post about this - I have it on my game and it seems to work okay. [/QUOTE]


In node-webkit? it keeps pop up error window and leave a button "Close Program"
B
96
S
25
G
20
Posts: 3,055
Reputation: 22,644

Post » Sun Feb 17, 2013 8:31 am

Actually I just tested it again, and you are right. That seems a little silly...
B
22
S
3
Posts: 451
Reputation: 2,135

Post » Sun Feb 17, 2013 8:48 am

I don't have any problems exiting my game. I have set a "quit" button and Browser>Close call for it. I use fullscreen so maybe that's why it's working for me...nemo2013-02-17 08:49:09
B
40
S
5
G
5
Posts: 405
Reputation: 5,657

Post » Sun Feb 17, 2013 9:12 am

As do I - but I know I've had it work before, it might just be inconsistent?
B
22
S
3
Posts: 451
Reputation: 2,135

Post » Sun Feb 17, 2013 11:50 am

Just tested on my side and the application crashes outright with the message "game.exe has stopped working". Windows 8.

This happens with or without fullscreen requests.

Kind of a pity, really - the browser object seems to work pretty well with some functions (vibration and fullscreen) but not at all with others.

@Ashley, is there any chance we could get a node-webkit object with support for fullscreen and closing, now that it's part of the stable releases? GeometriX2013-02-17 11:52:48
B
56
S
15
G
10
Posts: 910
Reputation: 11,972

Next

Return to How do I....?

Who is online

Users browsing this forum: linkman2004, Renfd, supreme676 and 16 guests