[UPDATED: 27.03.2018] The Big NW.js Roundup - Tips & Tricks

Discussion and feedback on Construct 2

Post » Wed Feb 14, 2018 2:00 am

Thanks for this amazing thread @therealdannyyy ! Here's a new tip - adding "--in-process-gpu" to the package.json allows your game to be streamed in OBS, using the "game capture" option. However, the recording will freeze if the user changes the window size in runtime, so be warned.

Without it, if you try to capture your game it will only show a black screen.
B
131
S
45
G
41
Posts: 860
Reputation: 28,641

Post » Wed Feb 14, 2018 2:18 am

andreyin wrote:Thanks for this amazing thread @therealdannyyy ! Here's a new tip - adding "--in-process-gpu" to the package.json allows your game to be streamed in OBS, using the "game capture" option. However, the recording will freeze if the user changes the window size in runtime, so be warned.

Without it, if you try to capture your game it will only show a black screen.

Thanks for the feedback!

I've actually planned to create another topic dedicated to recording issues with NWjs.
No release date for it yet but it would basically be a huge list containing information about:
  • The best game recording software for NWjs
  • Possible workarounds for recording software that has issues with NWjs
  • Template that can be shared to inform users (e.g. in Steam Discussions)
ImageImageImage
B
81
S
30
G
78
Posts: 752
Reputation: 46,393

Post » Mon Mar 19, 2018 9:40 pm

I was wondering if any one is having a similar problem I'm having with NWJS v0.29.0 in which Effects are no longer working and using the fallback. NWJS v0.28.0 works fine though. Running C2 r250. (Could that be it?)

EDIT: Just to add some images illustrating the problem.

This is the base image.
Image

There's a green background (TiledBackground) that goes over this with an Effect: Multiply. In v0.28.0 Chromium 64, it works as expected, and this is how it looks:
Image

In v0.28.0 Chromium 65 it looks like this:
Image

Also other effects don't seem to work as well. They simply don't show up.

I'm not knowledgeable enough to know if this is related to Chromium itself -- I tried looking for instances of rendering errors using WebGL effects, etc but couldn't find anything relevant -- so I'm not sure where the 'bug' lies. Any hints? Thanks!

[EDIT]
I've upgraded to C2 r255, but no, that doesn't seem to change anything.
B
56
S
20
G
1
Posts: 119
Reputation: 4,393

Post » Tue Mar 20, 2018 6:58 am

faulknermano wrote:I was wondering if any one is having a similar problem I'm having with NWJS v0.29.0 in which Effects are no longer working and using the fallback. NWJS v0.28.0 works fine though. Running C2 r250. (Could that be it?)

EDIT: Just to add some images illustrating the problem.

This is the base image.
<img>

There's a green background (TiledBackground) that goes over this with an Effect: Multiply. In v0.28.0 Chromium 64, it works as expected, and this is how it looks:
<img>

In v0.28.0 Chromium 65 it looks like this:
<img>

Also other effects don't seem to work as well. They simply don't show up.

I'm not knowledgeable enough to know if this is related to Chromium itself -- I tried looking for instances of rendering errors using WebGL effects, etc but couldn't find anything relevant -- so I'm not sure where the 'bug' lies. Any hints? Thanks!

[EDIT]
I've upgraded to C2 r255, but no, that doesn't seem to change anything.

That is a known issue and effects are not working because WebGL isn't running as it's supposed to. This has already been fixed in all versions after NWjs v0.29.0 but I guess Ashley is waiting for a main release (v0.30.0) before uploading the most recent working version. Currently the only options we have is to use versions before v0.29.0 or manually install the subversion from HERE.
ImageImageImage
B
81
S
30
G
78
Posts: 752
Reputation: 46,393

Post » Tue Mar 20, 2018 7:08 am

@TheRealDannyyy, many thanks for your info. Helpful as always. :-)
B
56
S
20
G
1
Posts: 119
Reputation: 4,393

Post » Tue Mar 20, 2018 7:18 am

Can anyone tell me which NWjs version is the most stable and functional to use at this time?

I'm still using 0.24.0, every time I'm thinking of upgrading I'm seeing posts about things that got broken, I don't have any issues with 0.24.0, but I do want to keep it as up-to-date as possible.

Should I even upgrade or wait for 0.30.0 to come around?
Image
B
87
S
32
G
12
Posts: 525
Reputation: 13,109

Post » Tue Mar 20, 2018 7:26 am

Lof wrote:Can anyone tell me which NWjs version is the most stable and functional to use at this time?

I'm still using 0.24.0, every time I'm thinking of upgrading I'm seeing posts about things that got broken, I don't have any issues with 0.24.0, but I do want to keep it as up-to-date as possible.

Should I even upgrade or wait for 0.30.0 to come around?

By default I would always go with the most recent version, in this case v0.30.0, however currently it would be v0.28.0 judging based on bugfixes.
I'd just wait for v0.30.0 because that's going to be a good release with some beefy new features (spoiler: experimental gamepad rumble support).
ImageImageImage
B
81
S
30
G
78
Posts: 752
Reputation: 46,393

Post » Tue Mar 20, 2018 7:46 am

Thanks, I'll wait.
Image
B
87
S
32
G
12
Posts: 525
Reputation: 13,109

Post » Thu Mar 22, 2018 6:12 am

It should now be possible to use v0.29.0 without any issues if you have Construct 2 R256.
Please note that this beta update will wipe your package.json files clean, so I'd recommend doing a backup of those 3 files.
ImageImageImage
B
81
S
30
G
78
Posts: 752
Reputation: 46,393

Post » Thu Mar 22, 2018 12:10 pm

@TheRealDannyyy I noticed that when I use v0.29.0 and C2 R256 adding this arg

--disable-software-rasterizer

Causes rendering problems and the steam overlay is not loading, I actually don't remember why I added this arg, it was from something I probably read here before, but I can't locate any reference to it in your original post.

Do I need this for something?
Image
B
87
S
32
G
12
Posts: 525
Reputation: 13,109

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests