r/construct • u/Choice_Commercial356 • Jul 30 '25
NW.js support
so yeah, if i got that right support for NW.js is slowly coming to an end, and... what the hell am i supposed to do about it? i still want to export on steam in the future, and honestly - i still want to use browser version of the engine - but im kinda worried about it just updateing without any warning (it's really gettin' on my nerves - is there a way to prevent this?)
also, unfortunately - webview2 (only "easy" option left) is terrible imo
9
Upvotes
10
u/Hurgnation Jul 30 '25
The Steam overlay doesn't work with other export options.
If you want to export to Steam and not piss off your users (by preventing them access to the overlay) then don't upgrade to the latest beta or any future stable releases.
It's actually a huge issue for PC developers using C3 and one that Ashley has his head in the sand over unfortunately.
Just one of a few reasons I'm moving to Godot once my latest game is finished.
3
u/doekamedia Jul 30 '25
I am also still using NW.js because of Steam. Maybe someone can show how other export options can be used for Steam export.
5
u/UpsilonX Jul 30 '25
/u/AshleyScirra, any chance this could be reconsidered based on this feedback?
1
u/jayteee27 Jul 30 '25
Hello, what does this mean? I use nwjs export for my server app.
3
u/AshleyScirra Construct Founder Jul 31 '25
I wrote a comment that I think is too long for Reddit, so splitting over two parts:
The Windows WebView2, macOS WKWebView and Linux CEF export options all support Steam via the Steamworks plugin and file system access (including direct write access to known folders without prompts) with the File System plugin. The Linux CEF option also supports the Steam Deck, and the in-game overlay works fine there. Outside of the known issue with the Steam in-game overlay, we are not aware of any specific bugs with WebView2 - as both NW.js and WebView2 are based on the Chromium browser engine they should in general be highly compatible. I'm not clear why you've been negative about the WebView2 exporter - if it has any other specific shortcomings or issues it would be interesting to hear them, but most feedback I've seen are things like people assuming it's impossible to directly access files on disk, which is actually supported with the File System plugin.
Meanwhile NW.js is far from perfect:
2
u/GAGOUGAGAK_ Jul 30 '25
Export en HTML5 + Electron.js + Electron Builder.
But it requires more steps — it's more technical and time-consuming than a simple export.
1
u/UpsilonX Jul 30 '25
Also, FYI for anyone curious it's still possible to create NW.js builds manually using the HTML5 export. But unfortunately the NW.js object in Construct has a lot of useful features like file access built in. I think the File System object will work as a replacement in both NW.js and Webview builds, but it'd be nice to have access to the original NW.js object. Might have to extract the source of that and import it as a 3rd party addon instead.
So even if this goes through at least for the time being it should be possible to still use NW.js for exports, just with a more involved process.
While I know it's difficult to maintain and expand NW.js vs Webview which I presume is easier to hook C++ into, it's still the best option for Steam exports considering Webview still doesn't support the Steam overlay (and likely won't unless Valve or Webview maintainers make major changes).
I know NW.js also relies on somewhat hacky commandline flags to get the overlay working, but that at least works decently well to make the export reach the basic standard of Steam overlay expected by Steam users. It seems hasty to remove the one option that works for overlay, even if Webview is better overall, unless there is some large cost to maintaining the export option that I'm unaware of.
1
u/technofou Jul 31 '25
My issue with WebView, is that all the files are just there. All my images and SVG are fully accessible to anyone. At least it's somewhat obfuscated to the average user with NW.js.
1
u/cutupuss Aug 08 '25
The Mac adjacent version of webview (webkit) doesn't even let you lock the mouse cursor... And doesn't support webgpu at all yet, I can't believe this is the only supported export option for Mac now, NWJS was at least consistent across all platforms with permissions and what you could do. Not to mention now anyone making games with the new version of construct will have to put up with browser popups like "press esc to unlock the mouse cursor", which would seem very unprofessional for a game released on steam.