Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbox WebView2 not working on my game #7823

Closed
Pedro1234-code opened this issue Feb 12, 2024 · 5 comments
Closed

Xbox WebView2 not working on my game #7823

Pedro1234-code opened this issue Feb 12, 2024 · 5 comments
Assignees

Comments

@Pedro1234-code
Copy link

Pedro1234-code commented Feb 12, 2024

Problem description

I've been working on this game for a school work since last year. My goal was to release on Xbox as soon as WebView2 was ported to this platform. The game was even initially meant to be played on Xbox because I full support for gamepad. Once Construct 3 beta officially added support for it, I exported. Works perfectly on PC. On Xbox the launch screen is just black with nothing appearing, only the "Play" button appear on the screen. However the background music plays.

Attach a .c3p

Viajante Espacial.zip

Steps to reproduce

  1. Export the game UWP WebView2/Xbox.
  2. Deploy it on Xbox using Windows Device Portal.
  3. Run it.

Observed result

Only sound plays in the launch screen and nothing appears except the Play button. The background image is just black.

Expected result

I expected the game to run and play normally with the same behaviour as WebView2 PC.

More details

Only happens on Xbox WebView2. PC WB2 works absiolutely normal.

Affected browsers/platforms:

WebView 2 on Xbox.

First affected release:

r378.

System details

Xbox Series S.

View details

PASTE HERE

@AshleyScirra AshleyScirra self-assigned this Feb 12, 2024
@AshleyScirra
Copy link
Member

See also: MicrosoftEdge/WebView2Feedback#4370

@AshleyScirra
Copy link
Member

It seems to work fine for me on my dev kit Xbox One. The game goes through the Construct 3 splash, then shows the title screen with everything appearing correctly and matching how it appears on Windows. If I press A then it proceeds to the game and shows some new content.

Maybe make sure your Xbox is up-to-date with any available software updates. It's possible there is some issue specific to the Xbox Series S, but I don't see any issue on the Xbox One, and if it works on Windows but doesn't work on Xbox then that usually is good evidence the problem is with the Xbox and not with Construct, in which case Microsoft will have to fix it. I see that you also filed MicrosoftEdge/WebView2Feedback#4370 so I'll post my findings there too and leave it up to Microsoft to review further.

@Pedro1234-code
Copy link
Author

Pedro1234-code commented Feb 13, 2024

The version that I provided here is a highly stripped down version of the original project. In comparison, the original one sizes approximately 108 mb.

I really don't think it's an specific issue to the WebView2 implementation on Series S but I think it could be related to some problem on loading the textures/sprites with their size or loading the game with its original size. I know someone in the group of people that is making the game that has a One S, I will ask him to try sideloading it for me to check, but I don't believe it's related to the console. I also think it's more likely to be an issue with WebView2 Xbox's implementation than Construct 3.

Edit: I just tried to run the striped down version and the same thing occurs. Also tried to do a lot of things on the full version, such as disable WebGPU, change image formats, but nothing worked.

@Pedro1234-code
Copy link
Author

Pedro1234-code commented Feb 14, 2024

@AshleyScirra I just published the game on the Microsoft Store for Xbox so more people could test without having to enable Developer mode. It's called "Viajante do Espaço", you can just search. Would be great to see if it reproduces or not on the full sized version on Xbox One.

Link here:

https://www.microsoft.com/store/productId/9MTCN09D44TL

@Pedro1234-code
Copy link
Author

@AshleyScirra Just to add, I'm also unable to play anything in the game preview on Edge on Xbox. The tab of the game just closes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants