TTT-2 / TTT2

Trouble in Terrorist Town 2 for Garry's Mod (gmod)
https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556
178 stars 74 forks source link

Lua error on fast search entries #1158

Closed xopez closed 10 months ago

xopez commented 10 months ago

Your version of TTT2 (mandatory)

Video

https://www.youtube.com/watch?v=NEtx6_ADKiU

Describe the bug (mandatory)

If searched to fast, I'll get a lua error.

Searched in the F1 menu and got a lua error on client side:

[TTT2 (Base) - v0.11.7b] gamemodes/terrortown/gamemode/client/cl_vskin/vgui/dcheckboxlabel_ttt2.lua:86: attempt to call method 'SetValue' (a nil value)
  1. receiveFunc - gamemodes/terrortown/gamemode/client/cl_vskin/vgui/dcheckboxlabel_ttt2.lua:86
   2. func - lua/ttt2/extensions/cvars.lua:161
    3. unknown - lua/includes/extensions/net.lua:38 (x3)
[TTT2 (Base) - v0.11.7b] gamemodes/terrortown/gamemode/client/cl_vskin/vgui/dnumslider_ttt2.lua:271: attempt to call method 'SetValue' (a nil value)
  1. receiveFunc - gamemodes/terrortown/gamemode/client/cl_vskin/vgui/dnumslider_ttt2.lua:271
   2. func - lua/ttt2/extensions/cvars.lua:161
    3. unknown - lua/includes/extensions/net.lua:38 (x2)

To reproduce

Steps to reproduce the behaviour:

  1. Go to submenu with search function
  2. type something fast in the search menu
  3. get lua error

Expected behaviour

there should be no error happening, independent of typing speed

Context (please provide as much as you can)

TimGoll commented 10 months ago

might be already fixed in v0.12. We will release the update in the coming week. Could you please test it after the release an report back?

sbzlzh commented 10 months ago

This bug is fixed in the GitHub version!

xopez commented 10 months ago

Sure I can test and thanks for the fast replies :)

sbzlzh commented 10 months ago

You can try using the GitHub version and see if that resolves it. I had the same problem as you before.

TimGoll commented 10 months ago

I'll close it as it is probably fixed on master. Please reopen if the issue persists after the 0.12 update. Thank you!

xopez commented 10 months ago

Thanks for uploading the new version to the workshop. I have tested it and the problem is fixed :)