Linux version generated with the NW.js it's not working

Discussion and feedback on Construct 2

Post » Fri Aug 19, 2016 2:22 pm

I have exported the linux versions (32/64) through the NW.js but I cannot execute this file. I need to know if this executable really should work or not.

Thanks in advance.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Aug 19, 2016 3:14 pm

Have you set the executable-flag (of the file, after you exported it)?
B
77
S
28
G
32
Posts: 481
Reputation: 19,763

Post » Fri Aug 19, 2016 3:25 pm

Hi @Eisenhans

No. Could you explain me how I can do it?

Thanks
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Aug 19, 2016 3:28 pm

Here's a tutorial explaining NWjs export.
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Fri Aug 19, 2016 3:40 pm

Colludium wrote:Here's a tutorial explaining NWjs export.



Thanks @Colludium,

I have read this tutorial. So I need to use this command (chmod a+x my game) to set the executable-flag, right? I don't have Linux here, but I will ask a friend to do it. Do you know if it is necessary to write the whole path or just use the file name ("nw" in this case)? If I will distribute this file, it will be always necessary to do this procedures on all the machines? If so, I can create a kind of batch file to automate this process?
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Aug 19, 2016 3:59 pm

I suggest you run a linux distro using Oracle Virtualbox as shown in this how to geeks article, if you don't want to run a dual-boot windows computer. If you change the flag inside your linux distro then the exported game should run (right click on the exported file). I'm not a linux user but I have tinkered with this a bit in the past. You could also try out some of the compile options for NWjs that are available on Github like nw-builder (which I have not used but it looks very useful).
Last edited by Colludium on Sun Aug 21, 2016 1:57 pm, edited 1 time in total.
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Fri Aug 19, 2016 4:18 pm

I forgot to say that I'm a mac user. Do you know any mac version of this program? You suggested the nw-builder and in this case I have to export to HTML5 instead the NW.js, right? I have no idea about how to use it (by the terminal I presume). I need to show the game to a possible client. Can I ask him to apply the command ((chmod a+x my game) just to enable the app in Linux.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Aug 19, 2016 4:25 pm

Sorry - I don't know the answers to those questions.... The c2 export will work in linux, all you have to do is right click on the exported executable to enable the permissions. If you want to have a game-icon instead of the default then I think you need to use nw-builder - but I have not used that and I wouldn't know where to start to help you use it on a mac...
A big fan of JavaScript.
B
74
S
20
G
71
Posts: 2,230
Reputation: 44,892

Post » Fri Aug 19, 2016 4:35 pm

Colludium wrote:Sorry - I don't know the answers to those questions.... The c2 export will work in linux, all you have to do is right click on the exported executable to enable the permissions. If you want to have a game-icon instead of the default then I think you need to use nw-builder - but I have not used that and I wouldn't know where to start to help you use it on a mac...


Ok. Thank you.
B
74
S
13
G
4
Posts: 1,005
Reputation: 8,058

Post » Fri Aug 19, 2016 7:42 pm

how would you execute the file in the first place without having linux? xD
And why would you try to under mac?
B
40
S
15
G
4
Posts: 426
Reputation: 5,843

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 19 guests