Scirra / Construct-bugs

Public bug report submissions for Construct 3 and Construct Animate. Please read the guidelines then click the 'Issues' tab to get started.
https://www.construct.net
107 stars 83 forks source link

Steamworks addon & example project: showing overlay does nothing and freezes the app window #8328

Open OverboyDev opened 2 days ago

OverboyDev commented 2 days ago

Problem description

Steamworks addon & example project: after exporting the project to Webview 2, showing overlay does nothing and freezes the app window

(the other features such as displaying steam account infos are working)

Attach a .c3p

steam-test-project_.zip

this is just the exact example project you provided here: https://www.construct.net/en/make-games/addons/1105/steamworks

Steps to reproduce

  1. Open the Steamworks example project without changing anything
  2. Export to Windows Webview 2
  3. Open the export
  4. Press Show Overlay button

image

Observed result

Nothing happens (the overlay isn't shown) The window is frozen (impossible to move or close, unless force closing using Task manager) No error are showed in the console

Expected result

The steam overlay is shown The window isn't frozen

More details

Tried on last stable r416, on Windows 10, with worker mode set to on and off

MORE INFOS: I asked about it on the Discord: it looks like it never works on some system (like mine), and on other computers, it seem to work but not every time, they still get the same freeze sometimes

AshleyScirra commented 1 day ago

It works fine for me. Are you definitely using the latest addon version v1.2?

I have no idea what could be wrong on other systems. Unfortunately this makes it infeasible to investigate unless we can identify a way to reliably reproduce it. Can you identify any information about affected systems, or find anything to change on a system that does work that causes it to stop working? Does it work if you uncheck the 'Enable overlay' property?

F3der1co commented 1 day ago

I can reproduce a broken state with the following steps, it is not frozen though:

Note the window cannot be closed via the "X" button if the steam overlay is open regardless of the steps (but can be closed once the steam overlay was closed again)

OverboyDev commented 1 day ago

Yes i'm using last addon version 1.2: I'm on Win10, with a Nvidia 1070 gtx, 60Hz display

With "Enable Overlay = true" : as i describe in the report, it "freezes" the app window. By that I mean it's impossible to move or close the window. However it doesn't freeze the running C3 game, i can still press the achievement buttons for example. But the window is frozen

With "Enable Overlay = false" : it pop ups seperate Steam windows, but it doesn't freeze the game window

OverboyDev commented 1 day ago

The report from Federico is interesting, it looks like there is 2 issues (edit: maybe 3 issues):

Issue 1 affecting everyone : when the Steam Overlay is shown or supposed to be shown it's impossible to move and close the Game Window (with the "x" button")

Issue 2 affecting only some windows users: the overlay isn't shown at all, but it's still impossible to move and close the Game Window. The additional issue here is that as there aren't any way to "close" the invisible Steam Overlay, it's also impossible to close the game window, It makes issue 1 even worse

(Edit: in fact there is maybe even a Issue 3 according the Federico report: focus/refocusing the game window while overlay is open breaks the steam overlay : it is visible on top but is not clickable)