Yellow-Dog-Man / Resonite-Issues

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

Open Session URL doesnt work since migration to Resonite #2260

Open cyberfrogg opened 5 months ago

cyberfrogg commented 5 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 5 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 5 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 1 month 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.

SlyTheFloof commented 2 weeks ago

Yea I also kinda had issues with the whole url thing also

troyBORG commented 2 weeks ago

Also make sure not assume that Resonite will be install in C:\\Program Files (x86)\\Steam\\steamapps\\common\\Resonite\\Resonite.exe Like mine is on my Games NVME drive.. G:\SteamLibrary\steamapps\common\Resonite\Resonite.exe

(This is referring to the stuff in Additional Context)

ProbablePrime commented 2 weeks ago

Yea I also kinda had issues with the whole url thing also

Please don't Upvote issues in this manner. Just 👍 the source post, unless you have something new to add.

Also make sure not assume that Resonite

We register this stuff based on the folder that the registration script runs in which is within your install. There's no guess work :)

ProbablePrime commented 1 week ago

New Info here: https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/1120#issuecomment-2480538170

And of course in dev log, so checkout go.resonite.com too :)