Facepunch / sbox-issues

173 stars 11 forks source link

Implement a VR simulator for testing multiplayer #5816

Open ShadowBrian opened 1 month ago

ShadowBrian commented 1 month ago

For?

S&Box

What can't you do?

I want to be able to join my VR server as a non-VR instance on the same machine, since VR can't drive two game instances at the same time it's impossible to test VR multiplayer stuff at the moment.

How would you like it to work?

Probably just make "Join via new instance" join without VR enabled.

What have you tried?

Tried joining via new instance but it creates a VR network player despite Game.IsRunningInVR supposedly gating what player prefab is spawned on the network.

Additional context

No response

xezno commented 1 month ago

We could also maybe do something like have emulated VR for the second instance if that's helpful?

ShadowBrian commented 1 month ago

Hmm might be, ideally we'd be able to check the join-flow of either flat or VR

xezno commented 1 month ago

Yeah

ShadowBrian commented 1 month ago

Turns out the default behavior IS ALREADY non-VR, I was just checking it wrong before.

Now using GetUserData("vr") to check if they're in VR or not, so the original request is wrong but getting a VR simulator instead would still be good, should I change the title of the issue or make a new one?