Export to NW.js problems - Breaks everything that works

Discussion and feedback on Construct 2

Post » Sun Apr 26, 2015 8:24 am

Hey guys,

I was wondering if someone could help me.

I'm currently exporting a large-ish Construct 2 project to NW.js (roughly 50-100 mb). Everything works fine in the debug-version/playable version from the engine, however when I export the game things that work fine, break. The main thing I appear to be having problems with is overlapping sprites and also overlapping sprites at offset (for example, if overlapping sprite, something happens).

I honestly have no idea how to fix it because the game works fine, there are no bugs, in the engine version, and I have no idea how to fix these export version bugs or what's even causing them. Once more, these bugs appear randomly. For example, on my friends computer he'll have a bug in the export version, however on my computer the bug won't exist in the export version.

I've also tried running it at different screen resolutions but once again it just appears random whenever these bugs occur.

Does anyone have any solutions? I think it's something to do with the exporting process, because the de-bug/engine version works really well.
B
5
S
1
Posts: 16
Reputation: 432

Post » Sun Apr 26, 2015 8:53 am

Hi there,

I just wanted to chime in and say that I have been experiencing a similar issue lately.
Everything works fine in debug mode but as soon as I export my project to NW.js it all goes south.
However, in my project, the overlay effects break.
B
43
S
24
G
20
Posts: 156
Reputation: 13,604

Post » Sun Apr 26, 2015 9:28 am

Right... well I'm not gonna lie, that's slightly worrying ><. Could it be the NW.js version? Should I try some previous versions of NW.js?
B
5
S
1
Posts: 16
Reputation: 432

Post » Sun Apr 26, 2015 9:53 am

What version of NW are you using?

Latest is here: https://www.scirra.com/nwjs

although some say v10.5 is better (more stable?).
If your vision so exceeds your ability, then look to something closer.
Moderator
B
137
S
31
G
87
Posts: 5,553
Reputation: 60,450

Post » Sun Apr 26, 2015 10:05 am

I'm using the latest version (9th March). Wouldn't the v10.5 have the Chromium 38 bugs in (with the frame stutter?)
B
5
S
1
Posts: 16
Reputation: 432

Post » Sun Apr 26, 2015 12:20 pm

NW v10.5 is only version that works decently with our game, but we also found that we need to use Construct 2 r192 (anything newer or older breaks our game)
Construct Classic - Examples Kit Dropbox is a pile of trash and if you need my old files PM me! :)
B
127
S
43
G
18
Posts: 2,240
Reputation: 20,592

Post » Sun Apr 26, 2015 1:26 pm

How would I revert my NW back to v10.5? I know how to revert back to C2 r192 (although do you think I'd get any errors?), but I'm not to sure how to go back to NW 10.5.
B
5
S
1
Posts: 16
Reputation: 432

Post » Sun Apr 26, 2015 1:39 pm

Download the older version from github here and substitute the nw.exe file in the win32 folder in C:\Program Files\NodeWebkitForC2 with the one from the one you downloaded.
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,285
Reputation: 47,554

Post » Sun Apr 26, 2015 2:55 pm

Okay I'll try that. Thanks. I'll give it a go and come back with any feedback. Hopefully it'll fix things ><.
B
5
S
1
Posts: 16
Reputation: 432

Post » Mon Apr 27, 2015 11:32 am

So I've been trying with NW.js v 10.5... and as far as I can tell, the same random issues seem to be occurring. I'm just sending the build off for testing, to clarify whether or not this is the case... but I don't expect the results to be positive.

Not to sure what to do. Will keep checking over the build to ensure there aren't any bugs in my code, but right now I'm feeling like I might even have to release this game (which I've spent 2 months on) for free and move onto my next game on a different engine. A desktop export which may or may not work just isn't good enough, and isn't something I can charge for.
B
5
S
1
Posts: 16
Reputation: 432

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests