RetroDECK icon indicating copy to clipboard operation
RetroDECK copied to clipboard

Yuzu: Browse Public Game Lobby - Don't work

Open Lazorne opened this issue 1 year ago • 6 comments

Yuzu:

User Report from Discord

Multiplayer - Browse Public Game Lobby

Function does not work.

Works in normal Yuzu outside of RD.

Maybe a permissions conflict in flatpak?

image

Lazorne avatar Jan 16 '24 19:01 Lazorne

Running with debug/logging to console and trying to refresh the public lobbies, I see:

WebService <Error> web_service/web_backend.cpp:GenericRequest:114: GET to https://api.yuzu-emu.org/lobby returned null (httplib Error: SSL server verification failed)

SSL, everyone's favorite. I'll look a little deeper.

josefwells avatar Jan 17 '24 21:01 josefwells

https://github.com/yuzu-emu/yuzu/issues/8897 The fix there works: SSL_CERT_FILE=/etc/ssl/cert.pem yuzu

Then I can see the multiplayer rooms. So interesting the ticket leads to another ticket: https://github.com/yuzu-emu/yuzu/pull/8871 (Closed) Which led to a merged PR: https://github.com/yuzu-emu/yuzu/pull/8933

This PR uses a sh script to launch images, and sets SSL_CERT_FILE based on a list of possible locations, the first of which I find from inside the flatpak debug being: /etc/pki/tls/certs/ca-bundle.crt Setting SSL_CERT_FILE to this also works.

This makes me think when retrodeck launches yuzu, it is not using this AppRun.sh https://raw.githubusercontent.com/yuzu-emu/AppImageKit-checkrt/old/AppRun.sh

But I haven't looked at the EmustationDE/Retrodeck side of launching yet.

josefwells avatar Jan 19 '24 04:01 josefwells

We do have "/app/yuzu/AppRun", which picks the right SSL, as well as a bunch of other stuff. /app/yuzu/AppRun yuzu

Also fixes the lobby issue (but who knows what it breaks)

josefwells avatar Jan 19 '24 04:01 josefwells

Good findings! @XargonWan have to look into it.

Lazorne avatar Jan 19 '24 05:01 Lazorne

We do have "/app/yuzu/AppRun", which picks the right SSL, as well as a bunch of other stuff. /app/yuzu/AppRun yuzu

Also fixes the lobby issue (but who knows what it breaks)

So maybe just running it from the wrapper may fix the issue?

XargonWan avatar Jan 19 '24 06:01 XargonWan

Ah, you can just replace yuzu with /app/yuzu/AppRun /app/yuzu/AppRun yuzu, eventually execs "yuzu yuzu" which makes an error about not being able to load the rom, (yuzu), so really AppRun is the yuzu replacement. This should also work for running from Retrodeck Configurator.

Seems like it, easy enough xml change in: es-configs) es-configs/es_systems.xml

On my Arch install I see this additional export: export QT_QPA_PLATFORM=xcb

Probably worth the beta-channel to ensure it (or something I've missed) doesn't hose some specific game, as I do see tinkering (but no actual exported env changes) with library version revealed by ldconfig.

Finally, access to the multiplayer menu is tricky ->general->fullscreen, but I see #624 addresses this longer term.

josefwells avatar Jan 19 '24 21:01 josefwells

As Yuzu is getting removed this will not be fixed

Lazorne avatar Mar 05 '24 17:03 Lazorne