catoni0 / vrmod-x64

Optimization project aimed to create stable all in-one-package for gmod x64/Linux
Other
3 stars 0 forks source link

A couple of problems (menu error) #3

Open marischou opened 4 days ago

marischou commented 4 days ago

Hello! After failing to run both the original VRMod and VRModSemiofficial, I found this and decided to try it. Now, game doesn't crash, and I actually can play in VR, so firstly thank you for the addon!

My problems are:

  1. Spawn menu
  2. Context menu
  3. Chat
  4. Settings

are all not visible to me, and I get errors every time I click them.

Below are some console logs of me pressing the buttons, in order.

...
[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59: attempt to index global 'vrScrW' (a nil value)
  1. unknown - addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59

Timer Failed! [Simple][@addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua (line 20)]

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59: attempt to index global 'vrScrW' (a nil value)
  1. unknown - addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59

Timer Failed! [Simple][@addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua (line 20)]

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59: attempt to index global 'vrScrW' (a nil value)
  1. unknown - addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59

Timer Failed! [Simple][@addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua (line 20)]

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59: attempt to index global 'vrScrW' (a nil value)
  1. unknown - addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59

Timer Failed! [Simple][@addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua (line 20)]

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59: attempt to index global 'vrScrW' (a nil value)
  1. unknown - addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59

Timer Failed! [Simple][@addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua (line 20)]

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59: attempt to index global 'vrScrW' (a nil value)
  1. unknown - addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59

Timer Failed! [Simple][@addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua (line 20)]

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59: attempt to index global 'vrScrW' (a nil value)
  1. unknown - addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua:59

Timer Failed! [Simple][@addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua (line 20)]

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133: attempt to index a nil value
  1. v - addons/vrmod/lua/vrmod/io/vrmod_dropweapon.lua:133
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/base/vrmod.lua:435
     4. unknown - lua/includes/modules/hook.lua:96

[vrmod] addons/vrmod/lua/vrmod/io/vrmod_manualpickup.lua:23: attempt to index local 'ent' (a nil value)
  1. v - addons/vrmod/lua/vrmod/io/vrmod_manualpickup.lua:23
   2. Call - lua/includes/modules/hook.lua:96
    3. v - addons/vrmod/lua/vrmod/io/vrmod_pickup.lua:317
     4. Run - lua/includes/modules/hook.lua:96
      5. net_exit - addons/vrmod/lua/vrmod/base/vrmod_network.lua:575
       6. callback - addons/vrmod/lua/vrmod/base/vrmod_network.lua:580
        7. func - addons/vrmod/lua/vrmod/base/vrmod_api.lua:556
         8. unknown - lua/includes/extensions/net.lua:38
...

I would appreciate any pointers for this issue!

I am using: VR: Quest 3 OS: Fedora 41 KDE Plasma, kernel 6.11.7-300.fc41.x86_64 Protocol version 24 Exe version 2024.10.29 (garrysmod) Exe build: 19:24:41 Nov 13 2024 (9488) (4000) GMod version 2024.11.14, branch: x86-64, multicore: 1 Linux 64bit

catoni0 commented 2 days ago

Try to disable "realtime ui rendering" in vrmod settings - gameplay - rendering, see if it helps. Should be accessible before starting vrmod with connected headset.

Another thing you can try is go to line 59 in addons/vrmod/lua/vrmod/ui/vrmod_dermapopups.lua* and change `basePos, baseAng = WorldToLocal(g_VR.tracking.hmd.pos + Vector(0, 0, -20) + Angle(0, g_VR.tracking.hmd.ang.yaw, 0):Forward() 30 + ang:Forward() vrScrW:GetInt() -0.02 + ang:Right() vrScrH:GetInt() -0.02, ang, g_VR.origin, g_VR.originAngle)`

to basePos, baseAng = WorldToLocal(g_VR.tracking.hmd.pos + Vector(0, 0, -20) + Angle(0, g_VR.tracking.hmd.ang.yaw, 0):Forward() * 30 + ang:Forward() * ScrW():GetInt() * -0.02 + ang:Right() *ScrH():GetInt() * -0.02, ang, g_VR.origin, g_VR.originAngle)

or

basePos, baseAng = WorldToLocal(g_VR.tracking.hmd.pos + Vector(0, 0, -20) + Angle(0, g_VR.tracking.hmd.ang.yaw, 0):Forward() * 30 + ang:Forward() * ScrW() * -0.02 + ang:Right() *ScrH() * -0.02, ang, g_VR.origin, g_VR.originAngle)