Nw.js background procedures?

Discussion and feedback on Construct 2

Post » Thu Sep 29, 2016 2:53 am

Hello,

look at what a partner says about my game exported with nw.js.

"We wrap all of our games with a free trial timer, and when your game is launched, the timer expires at an unusually fast rate. We think we’ve discovered where the problem might be coming from, though. When the game is running, there are many instances(around 7 or 8) of the .exe process running in the background. Could you look into this issue?"

I've tried in my pc and indeed I have 3 background procedures. Is that normal? Should I tell them that this is how it works?

Thanks in advance,

Sergio
B
8
S
2
Posts: 42
Reputation: 649

Post » Thu Sep 29, 2016 2:58 am

Yes its normal.
If they don't believe you have them open open up Chrome, and check the task manager.
Nwjs use the same engine.
Image ImageImage
B
172
S
50
G
183
Posts: 8,443
Reputation: 115,605

Post » Thu Sep 29, 2016 3:19 am

One process is the actual browser, one is the graphics rendered and one is a crash handler.

IIRC you can try adding "--in-process-gpu" to make browser and graphics rendered a single process and it should fix most things.
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Thu Sep 29, 2016 10:28 am

Sounds like a bug in their timing code. Time passes at the same rate regardless of how many processes you have open :P
Scirra Founder
B
403
S
238
G
89
Posts: 24,653
Reputation: 196,143

Post » Thu Sep 29, 2016 2:41 pm

Thanks everyone! I'll let them know that Construct2 is not problem, I'll never doubt about it again I promise! xD
B
8
S
2
Posts: 42
Reputation: 649

Post » Thu Sep 29, 2016 4:24 pm

Does the timer problem happen with a blank/empty NWjs project?
A big fan of JavaScript.
B
76
S
20
G
76
Posts: 2,286
Reputation: 47,556

Post » Wed Oct 19, 2016 5:29 am

Hello,

Colludium I don't know but I suppose so...the problem of the timer is that nw.js has 3 processes...or that is what they told me.

I need your help once again. They are stuck in that I must solve THEIR problem with their DRM.
They've suggested to create a launcher.exd that opens the game itself. The launcher and the game must be hand by hand, if one is closed the other must be closed to.
Furthermore, we cannot use any .NET program as the launcher.

If I had known all this I wouldn't have done all the changes they ask me for the game....but now everything is done and I don't want to throw all the hardwork done.

I thought also that if somehow the 2 background processes could be named differently from main proces, that could do the trick.

Thanks in advance,
Sergio
B
8
S
2
Posts: 42
Reputation: 649

Post » Fri Oct 28, 2016 1:44 pm

Hello again,

after a lot of time of searching, trying error, we finally manage to deal with that problem.
Indeed with C# .NET you can create a winforms program that calls the nwjs.exe.

If any of you finds himself with the same problem send me a private message and I'll try to help.
B
8
S
2
Posts: 42
Reputation: 649

Post » Sat Oct 29, 2016 12:42 am

It's related to the multiple nw.exe process. Like the other bugs mentioned lately.

recording-gameplay-issue-nwjs-youtubers_t183440?start=20

This stems from the --single-process CMD/Arg no longer functional.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Thu Nov 03, 2016 8:58 pm

@jugger87 i've sent you a PM, we have EXACLY the same problem.

Can you point us in the right direction or help us out!


Cheers!
B
37
S
9
G
8
Posts: 541
Reputation: 8,554


Return to Construct 2 General

Who is online

Users browsing this forum: Jedjoud and 10 guests