Need help with WebView2 export and Steamworks plugin

Not favoritedFavorited Favorited 0 favourites
  • 9 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • I have always exported my game using NW.js before. When I tried to add Steam Achievements, I found that the Steamworks plugin doesn't work with NW.js exports, and now I'm forced to use WebView2.

    I exported my game, and the achievements work. However, now it is impossible to use OBS to record with window capture, and taking a screenshot with F12 isn't working.

    Are there any ways to fix it?

  • OBS should work with WebView2 exports - last I checked it worked with some modes, but there were other modes that didn't work, so you have to get the right mode. From this post:

    I can successfully capture a WebView2 export with OBS using either the display capture (suitable for a fullscreen game) or window capture with capture method Windows 10. So there do appear to be working fullscreen and windowed capture methods in OBS. If some other mode that you want to use doesn't work, it would be best to report it to OBS - it's their software and it's OBS's job to be able to capture things no matter what the app does.

    The current state of overlay support (which I think might handle the screenshot feature too) is explained in the Steamworks plugin documentation. In short, we're stuck for the time being, but it's possible Valve could update Steam, or Microsoft could update WebView2, to fix it.

  • But is there any way to use the old Greenworks plugin for achievements and export the game using NW.js? I really need achievements and also overlay support.

  • Yeah, it's all still there and works the same as before, it's just currently marked deprecated. NW.js will be removed likely after the next stable release, but it will continue to be supported in the next LTS release until the end of 2026.

  • Thank you for the response! Is the lack of pop-up notifications about getting a new achievement also related to the lack of Steam Overlay?

  • With the WebView2 exporter? When the in-game overlay is not supported Steam switches to fallbacks, and that should mean the toast notifications that say an achievement was unlocked still work.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • The fallback does not seem to work for me, no steam achievement toast shows up

  • Stick with NWJS, it's the best exporting option we have at the moment.

  • The fallback does not seem to work for me, no steam achievement toast shows up

    Nor for me - it seems like any Steam feature that requires hooking into the game's rendering (screenshots, streaming, achievement toasts, the overlay) do not work with WebView2 due to its architecture (which I don't expect MS will be keen to change!). Looks like NW.js is the only option for now if we want these features.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)