TTT-2 / ttt2-role_siki

This is the "Sidekick" role for TTT2
4 stars 6 forks source link

error #9

Closed dok441 closed 5 years ago

dok441 commented 5 years ago

[ERROR] addons/ttt2-role_siki-master/gamemodes/terrortown/entities/weapons/weapon_ttt2_sidekickdeagle.lua:206: attempt to perform arithmetic on local 'timeLeft' (a nil value)

  1. func - addons/ttt2-role_siki-master/gamemodes/terrortown/entities/weapons/weapon_ttt2_sidekickdeagle.lua:206
    1. unknown - lua/includes/extensions/net.lua:32
dok441 commented 5 years ago

[ERROR] addons/ttt2-role_siki-master/gamemodes/terrortown/entities/weapons/weapon_ttt2_sidekickdeagle.lua:156: attempt to call method 'HasWeapon' (a nil value)

  1. fn - addons/ttt2-role_siki-master/gamemodes/terrortown/entities/weapons/weapon_ttt2_sidekickdeagle.lua:156
    1. unknown - addons/ulib-master/lua/ulib/shared/hook.lua:109
dok441 commented 5 years ago

https://github.com/Alf21/TTT2/issues/355 Also because of this role there is this problem, I understand because of 2 errors.

lebroomer commented 5 years ago

Yeah, this errors are producing your described problem in #355. But I have honestly no clue, how this can happen. Both errors are quite impossible, because there are checks beforehand. This could maybe be caused by another addon which interferes here. Could you test, if the same behaviour is occuring with only TTT2+ the Roles installed?

lebroomer commented 5 years ago

The second error and thus the false alives should be fixed now with the newest commit.

lebroomer commented 5 years ago

So, I added a fallback solution for the first error. Did the Jackal killed someone just in the second the timer was running out? Because that could have produced the error as a superrare edge case, which should be fixed now.