My process for exporting to windows/osx/linux

Discussion and feedback on Construct 2

Post » Thu Dec 25, 2014 4:49 am

First of all, I used the technique in this thread:
https://www.scirra.com/forum/update-guide-fix-jank-in-r190-node-webkit-export_t119896
so that my game would use node-webkit version 10.5, which avoids the jittering experienced in newer versions.

The post only describes how to replace the win32 files, so I'll share details on how to replace the osx32 and linux32 files. The process is exactly the same.. Although I'm unsure if you could replace the 64 bit versions for osx and linux.. I assume you could. Now that I think of it, you probably should (unless someone else has a good reason against it?).

You download them from
http://dl.node-webkit.org/v0.10.5/

http://dl.node-webkit.org/v0.10.5/node-webkit-v0.10.5-osx-ia32.zip for the osx32
http://dl.node-webkit.org/v0.10.5/node-webkit-v0.10.5-linux-ia32.tar.gz for linux32

and if you want to dl the 64 bit versions, you can do that too. You can't dl 64bit for windows since that is a recent development, and as explained in the other thread will continue to jank.

So once downloaded..
I copy all the files in the zips to their respective locations in nodewebkitforc2 folder
I find the Contents folder in the osx zip and copy that over the Contents folder in C:\Program Files\NodeWebkitForC2\osx32
for linux I copy libffmpegsumo.so , nw , and nw.pak over the three files in C:\Program Files\NodeWebkitForC2\linux32

Then I start up Construct 2 and export my project for node-webkit, which will create a folder with builds for windows/osx/linux..
windows and osx are done and can be ran, but linux requires an extra step if you want it to run on newer distributions of linux. The issue about a dependency: https://github.com/rogerwang/node-webkit/wiki/The-solution-of-lacking-libudev.so.0

What I did was download HexEdit from hexedit.com, and opened the largest file in your linux folder with it.
Then I searched for libudev.so.0 and changed the 0 to a 1.
A box might pop up that says if you want to disable readonly mode, and something else.. Do that..
Make sure it is a 1 now rather than a 0.
Go File > Save
Now it is ready to run on linux.
If I understand correctly, you may need to provide the libudev.so.0 version to users if they have older distribution of linux, so might be good to copy the file before editing it so that you have both versions..

Last thing that you have to do in order to run it on linux once those files are on linux is right click the file and go to properties, then permissions and enable execute permission..
I assume that is some common task users of linux perform? so I don't know how obvious that last step is since I'm not a linux user.

Anyways, that's all I know

:P
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Thu Dec 25, 2014 6:57 am

Thanks for sharing!
B
150
S
27
G
17
Posts: 909
Reputation: 32,330

Post » Thu Dec 25, 2014 8:25 am

Thanks for the write-up.

Looks like we're stuck with NW 10.5 for a long time.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,609

Post » Thu Dec 25, 2014 10:58 am

For testing this is fine. But I wouldn't dare release a finished product this way. The reason that node hasn't switched over to the newer lib is that it isn't fully compatible with the old one. Editing the configuration to work with the wrong library will work, but could easily induce glitches and bugs.

If it was an easy fix, it would have been fixed. Sadly, we just have to continue to wait on reliable linux deployment.
Don't lose your work. Backup your game with Dropbox.
B
44
S
10
G
10
Posts: 1,106
Reputation: 9,187

Post » Thu Dec 25, 2014 6:33 pm

Apparently there is a fix that will be in chromium 41, allowing dynamic loading of libudev on linux.
based on this page: http://www.chromium.org/developers/calendar
Seems chromium 41 is set to release Jan. 12th..
Node-webkit currently uses chromium 38, and I'm unsure when node-webkit will be updated to use chromium 41. Hopefully the sooner the better, for linux users at least.
B
41
S
19
G
65
Posts: 1,085
Reputation: 37,842

Post » Thu Dec 25, 2014 8:42 pm

@Prominent Thanks a lot for taking the time to write this tutorial!
Very, very useful, and will help me a lot. (I'll have to run some linux tests very soon)
Do we already know which method is better for SteamOS?
Image | @AurelRegard on twitter
B
19
S
6
G
1
Posts: 307
Reputation: 2,500

Post » Tue Jan 06, 2015 3:09 am

Yeah mate, i ve been waiting for a Linux fix for a while. Thanks @Prominent gona do some tests.
Image
B
30
S
5
G
1
Posts: 125
Reputation: 3,220

Post » Tue Jan 06, 2015 8:16 am

Brilliant, I will need to look again at the windows desktop exporter soon, and I read here and there there were issues with the node webkit package ; these instructions will surely prove useful ! Thanks for sharing your process.
Image
B
23
S
9
Posts: 237
Reputation: 2,207


Return to Construct 2 General

Who is online

Users browsing this forum: jakezinis and 3 guests