Character-Realism icon indicating copy to clipboard operation
Character-Realism copied to clipboard

Prevent realism from loading on the client if VR is enabled.

Open Thomasluigi07 opened this issue 3 years ago • 2 comments

Many games use custom VR scripts, and there is also a different camera in VR. If the game has Realism and it also has custom VR scripts it can break, depending on what the developer has added. This changes Realism to check if game.VRService.VREnabled is true, and if it is, then not do anything to prevent any issues. Some developers don't know how to do this as Roblox's documentation on VR is very limited, so this can help the people who are trying to figure this out and save some time wasted finding the fix. Realism works as intended normally in VR when there is no changes, but can break as soon as you change how VR works (especially the camera). This is a very small fix. I'm not sure how to stop scripts, so I just put the rest of the code after the starting comments in the "else" part of the If, therefore preventing it from running if it's true. If you have a better way of doing it, please do so. (This deletes the original Realism.rbxm and replaces it with the new version, since I cannot directly edit the file off github.)

Thomasluigi07 avatar Feb 04 '22 08:02 Thomasluigi07

FYI, you've got a merge conflict. Also you need to updates the .lua as well.

sasial-dev avatar Jul 10 '22 02:07 sasial-dev

@sasial-dev it seems that when i replace the RBXL it doesn't seem to let me merge easily, i'll remove the RBXM for now, hope max does the building of the rbxl for me

Thomasluigi07 avatar Jul 13 '22 15:07 Thomasluigi07

Sorry I ghosted this, had to overcome the hurdle of refactoring realism before I wanted to lay any fingers on it again. You‘ll need to reconstruct this pull request if you still want this change made.

MaximumADHD avatar Jul 17 '23 20:07 MaximumADHD

I don't really do Roblox development stuff anymore now, so I'm closing this PR.

Thomasluigi07 avatar Jul 24 '23 22:07 Thomasluigi07