Garry's Mod

Garry's Mod

TTT VR - VRMod Support
TTT2 Compatibility Thread
Regular TTT works amazingly out of the box!

To try and help estimate how complicated and time-consuming it would be to add support for TTT2 as well, and help with troubleshooting, I'm going to post the compatibility errors I encounter in here.
Last edited by Dead Planets and Live TV; Aug 9, 2020 @ 2:41am
< >
Showing 1-9 of 9 comments
Currently, VRMod displays the menu as normal on my TTT2 server, but clicking the "Start VR" button leads to the following error:

VR View
Just black surroundings, with the VR boundary cage displaying as normal.

Client View
Black screen with blue text:
"Incompatible player model. Missing bone ValveBiped.Bip01_L_Clavicle

Client Console
[VRMod - Experimental Virtual Reality] lua/autorun/vrmod_character.lua:564: bad argument #1 to 'ManipulateBoneScale' (number expected, got nil) 1. ManipulateBoneScale - [C]:-1 2. StopCharacterSystem - lua/autorun/vrmod_character.lua:564 3. CharacterInit - lua/autorun/vrmod_character.lua:371 4. StartCharacterSystem - lua/autorun/vrmod_character.lua:541 5. v - lua/autorun/vrmod_character.lua:579 6. Run - lua/includes/modules/hook.lua:84 7. func - lua/autorun/vrmod_network.lua:438 8. unknown - lua/includes/extensions/net.lua:32

Server Console
[Dead Planets and Live TV|2|STEAM_0:1:31919129] Lua Error: [VRMod - Experimental Virtual Reality] lua/autorun/vrmod_character.lua:564: bad argument #1 to 'ManipulateBoneScale' (number expected, got nil) 1. ManipulateBoneScale - [C]:-1 2. StopCharacterSystem - lua/autorun/vrmod_character.lua:564 3. CharacterInit - lua/autorun/vrmod_character.lua:371 4. StartCharacterSystem - lua/autorun/vrmod_character.lua:541 5. v - lua/autorun/vrmod_character.lua:579 6. Run - lua/includes/modules/hook.lua:84 7. func - lua/autorun/vrmod_network.lua:438 8. unknown - lua/includes/extensions/net.lua:32
Last edited by Dead Planets and Live TV; Aug 9, 2020 @ 2:40am
Beverly  [developer] Aug 10, 2020 @ 12:08pm 
Originally posted by Dead Planets and Live TV:
Currently, VRMod displays the menu as normal on my TTT2 server, but clicking the "Start VR" button leads to the following error:

VR View
Just black surroundings, with the VR boundary cage displaying as normal.

Client View
Black screen with blue text:
"Incompatible player model. Missing bone ValveBiped.Bip01_L_Clavicle

Client Console
[VRMod - Experimental Virtual Reality] lua/autorun/vrmod_character.lua:564: bad argument #1 to 'ManipulateBoneScale' (number expected, got nil) 1. ManipulateBoneScale - [C]:-1 2. StopCharacterSystem - lua/autorun/vrmod_character.lua:564 3. CharacterInit - lua/autorun/vrmod_character.lua:371 4. StartCharacterSystem - lua/autorun/vrmod_character.lua:541 5. v - lua/autorun/vrmod_character.lua:579 6. Run - lua/includes/modules/hook.lua:84 7. func - lua/autorun/vrmod_network.lua:438 8. unknown - lua/includes/extensions/net.lua:32

Server Console
[Dead Planets and Live TV|2|STEAM_0:1:31919129] Lua Error: [VRMod - Experimental Virtual Reality] lua/autorun/vrmod_character.lua:564: bad argument #1 to 'ManipulateBoneScale' (number expected, got nil) 1. ManipulateBoneScale - [C]:-1 2. StopCharacterSystem - lua/autorun/vrmod_character.lua:564 3. CharacterInit - lua/autorun/vrmod_character.lua:371 4. StartCharacterSystem - lua/autorun/vrmod_character.lua:541 5. v - lua/autorun/vrmod_character.lua:579 6. Run - lua/includes/modules/hook.lua:84 7. func - lua/autorun/vrmod_network.lua:438 8. unknown - lua/includes/extensions/net.lua:32

This error looks like you are trying to enter VR while in spectator mode. I'll try to make some kind of workaround to prevent this but for now make sure that you are living and on the terrorist team before you try to enter VR, If you still get this error then that is a MUCH bigger issue
Ah yup, that was it!
It stopped happening after I turned VR on when already on a team.
I can now join and move normally.

  • The camera feels like it's positioned differently on the playermodel - like the shoulders are closer to the head than usual, and some parts of the top of the chest are visible when looking down?

  • The left-hand HUD seems to work normally, but the weapon switcher looks more like the sandbox weapon switcher, and all weapons are represented with only their names.

  • The primary weapons, secondary weapons, crowbar and grenades seem to align normally with the right hand! But the targeting laser pointer has a huge offset, which changes in weird ways when you move your weapon.

  • The magneto-stick doesn't show up as a weapon in your hand - instead, you grow a third arm that holds the magneto-stick out at an odd angle. Additionally, it seems to cause the following console error in the server console:
    Equipped weapon weapon_vrmod_empty is not compatible with TTT

  • If you holster your weapon, you grow two additional arms, holding the crowbar.

  • The flashlight works correctly!

  • On the Valve Index, the right-stick input that used to throw weapons now seems to be mapped to alt-fire (you can use it to hold objects with the magneto-stick). By default, there doesn't seem to be any way to discard or throw your weapons.

On the whole, this seems pretty close to regular TTT support, with the exception of the weapon targeting alignments, the camera alignment, and the "holstered" weapon acting weirdly.
Last edited by Dead Planets and Live TV; Aug 10, 2020 @ 1:59pm
NIMFER Dec 26, 2020 @ 5:33pm 
Playing TTT2 with custom roles in VR is not working properly for example if I am a Jackal it shows as a Traitor, any class that get's all of its info from UI is now unplayable and the shop is inaccessible for me (i am using quest 2) so to open shop I need to use desktop view and buy everything in desktop view then close it, same goes with checking bodies it somewhat works because I can trigger the window but still to view the content I need to open desktop view, so I am waiting for Oculus keybindings and new UI
Beverly  [developer] Dec 31, 2020 @ 3:45pm 
@Dead Planets and Live TV and @||NIMFER||

Your lists are not just a few bugs, but actually pretty much everything that this addon fixes right now for the original TTT. I've looked into each of these things with regards to TTT2, and almost everything looks like it would require a complete rewrite or rebuild like with a whole new set of weapon replacements, the muzzle offset system, or the UIs to name a few. If I really wanted to support TTT2, I would definitely make a separate addon as it would be very different starting from scratch in comparison to this one. However, with GMod 2 now somewhere on the horizon possibly with native VR support since it uses the Unreal Engine and that I don't play TTT2, I have no intention of supporting it. If someone else is eager to do so for some reason, I am happy to help provide some expertise from what I have learned from working on this.
Ah, I see! That's completely understandable.
Thank you very much for the comprehensive response, and for creating this addon in general! I hope you have a happy new year.
NIMFER Jan 2, 2021 @ 5:21am 
Originally posted by bennyd87708:

However, with GMod 2 now somewhere on the horizon possibly with native VR support since it uses the Unreal Engine
nope it will use Source 2
Last edited by NIMFER; Jan 2, 2021 @ 5:22am
Ah, that's correct! I went to go check. Here's the current about page,[sbox.facepunch.com] and the announcement post for the change.[sbox.facepunch.com]
They started out in Unreal Engine, but have since switched over to Source 2.
Last edited by Dead Planets and Live TV; Jan 2, 2021 @ 8:03am
Beverly  [developer] Jan 2, 2021 @ 2:02pm 
Originally posted by Dead Planets and Live TV:
Ah, that's correct! I went to go check. Here's the current about page,[sbox.facepunch.com] and the announcement post for the change.[sbox.facepunch.com]
They started out in Unreal Engine, but have since switched over to Source 2.

Wow even better!! Source 2 has probably the best VR support of any engine right now with the Alyx stuff. 👌
< >
Showing 1-9 of 9 comments
Per page: 1530 50