Yellow-Dog-Man / Resonite-Issues

Issue repository for Resonite.
https://resonite.com
137 stars 2 forks source link

Open Session URL doesnt work since migration to Resonite #2260

Open cyberfrogg opened 4 months ago

cyberfrogg commented 4 months ago

Describe the bug?

URLs such as https://api.resonite.com/open/session/S-U-cyberfrogg:protogenia are not opening Resontie and not joining sessions.

To Reproduce

Open URL https://api.resonite.com/open/session/S-U-cyberfrogg:protogenia

Expected behavior

Resonite should launch and Protogenia Headless (or other) should be opened

Screenshots

image

Resonite Version Number

2024.6.5.1084

What Platforms does this occur on?

Windows

What headset if any do you use?

Desktop

Log Files

No logs needed

Additional Context

How you can fix it locally for yourself on windows:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\resonite]
@="URI:Resonite Link"
"URL Protocol"="resonite:?world=%Identifier%"

[HKEY_CLASSES_ROOT\resonite\DefaultIcon]
@="\"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Resonite\\Resonite.exe\",0"

[HKEY_CLASSES_ROOT\resonite\shell]
@="Resonite Link"

[HKEY_CLASSES_ROOT\resonite\shell\open]

[HKEY_CLASSES_ROOT\resonite\shell\open\command]
@="cmd /c start /d \"C:\\Program Files (x86)\\Steam\\steamapps\\common\\Resonite\\\" cmd /c \"set myvar=%Identifier% && call Resonite.exe -Join Auto -Open %%myvar:~16%%\""

Thanks to The_R4K for providing this script

Reporters

cyberfrogg

shiftyscales commented 4 months ago

This seem like it might be related to (or possibly a duplicate) of other open issues like #1295 / #1033 / #1120.

Seeking input from @Frooxius or @ProbablePrime - we should probably consolidate some of these issues down as I feel like there is a lot of overlap between them- all covering the same underlying problem- it is difficult to join a Resonite session from an external link, which negatively impacts access to sessions off-platform.

ProbablePrime commented 3 months ago

On first run, we need to populate the registry with this stuff, we used to have this code in the big launcher thing.

Should be easy to put into the first run.

phil-flip commented 2 weeks ago

As a workaround I built a little script that does it through the Steam URI, so we don't lose out on existing start arguments. It focuses on opening existing sessions tho.

Example: https://go.fur.earthers.net/S-U-h33tology:fitness Repo: https://github.com/FlippedCodes/open-resonite-world

For the record, I did plan to do it with GitHub Pages, and it is possible with a single HTML file and no Server middleware for the API. But I'm a noob with CORS on browsers, so while prototyping I quickly gave up on that idea to save time and nerves. Feel free to adjust the HTML code and send me a PR to make it more privacy focused.