TTT-2 / ttt2-role_snif

This is the "Sniffer" role for TTT2
1 stars 8 forks source link

Can't confirm body #1

Closed TobsA13 closed 5 years ago

TobsA13 commented 5 years ago

In some cases when identifying a body only the identify message on the top right appears, the body remains identified.

In the server console this error appears:

File exists in two addons - possible conflicts! gamemodes/terrortown/gamemode/server/sv_corpse.lua (Trouble in Terrorist Town 2 (Advanced Update) - v0.5.1b and ttt2-role_snif)

[ERROR] gamemodes/terrortown/entities/weapons/weapon_ttt2_lens.lua:258: bad argument #2 to 'WriteUInt' (number expected, got nil)
  1. WriteUInt - [C]:-1
   2. fn - gamemodes/terrortown/entities/weapons/weapon_ttt2_lens.lua:258
    3. Call - addons/ulib/lua/ulib/shared/hook.lua:109
     4. IdentifyBody - gamemodes/terrortown/gamemode/server/sv_corpse.lua:124
      5. ShowSearch - gamemodes/terrortown/gamemode/server/sv_corpse.lua:255
       6. unknown - gamemodes/terrortown/gamemode/server/sv_player.lua:436

Warning! A net message (TTT2SnifferSendKiller) is already started! Discarding in favor of the new message! (StartDrowning)

At the error occurs even when Sniffer is disabled (ttt_sniffer_enabled 0)

We are using the latest Gmod version. This is the collection we are using: https://steamcommunity.com/sharedfiles/filedetails/?id=1712938602 Please note the linked collections.

Alf21 commented 5 years ago

should be fixed. Ty!