TTT-2 / ttt2-role_pri

A new holy role for TTT2
https://steamcommunity.com/sharedfiles/filedetails/?id=1789489722
3 stars 4 forks source link

targetID problems with tData = nil #6

Closed dok441 closed 4 years ago

dok441 commented 4 years ago

[ERROR] addons/ttt2-role_pri-master/lua/autorun/client/cl_priest_targetid.lua:8: attempt to call method 'GetEntity' (a nil value)

  1. v - addons/ttt2-role_pri-master/lua/autorun/client/cl_priest_targetid.lua:8
    1. Run - lua/includes/modules/hook.lua:84
    2. Call - gamemodes/terrortown/gamemode/client/cl_targetid.lua:302
      1. unknown - gamemodes/terrortown/gamemode/client/cl_hud_manager.lua:118
TimGoll commented 4 years ago

I can't reproduce this. It does not happen for me. Please reopen once you know the source of the problem.

TimGoll commented 4 years ago

Okay, so we investigated this a bit further. The only scenario where this error could happen is if an addon sets tData to nil or overwrites it in the TTTRenderEntityInfo hook. I don't know which addon does this, but it seems like it happens to you. Maybe you could check which addon uses this hook.

TimGoll commented 4 years ago

Could you update us with some additional information? I'm still not able to reproduce this

dok441 commented 4 years ago

The problem is no longer there.