TTT-2 / TTT2

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

Voice Chat Bug #1334

Open cakety opened 6 months ago

cakety commented 6 months ago

TTT2 - v0.12.3b

One player is having an unreproducable issue with voice chat. Console shows following error whenever that player attempts to talk.

[ERROR] gamemodes/terrortown/gamemode/client/cl_voice.lua:499: bad argument #1 to 'SetVoiceVolumeScale' (number expected, got nil)

  1. SetVoiceVolumeScale - [C]:-1
    1. UpdatePlayerVoiceVolume - gamemodes/terrortown/gamemode/client/cl_voice.lua:499
    2. unknown - gamemodes/terrortown/gamemode/client/cl_voice.lua:176

All other players do not have this issue, and I have been unable to replicate it. Error continues when server is run with no other addons enabled. Player can use voice chat normally when base TTT is run instead.

ZenBre4ker commented 6 months ago

Could that person try to set the volume of other players and try again?

cakety commented 6 months ago

Causes a different error:

[ERROR] gamemodes/terrortown/gamemode/client/cl_voice.lua:499: bad argument #1 to 'SetVoiceVolumeScale' (number expected, got nil)

  1. SetVoiceVolumeScale - [C]:-1
    1. UpdatePlayerVoiceVolume - gamemodes/terrortown/gamemode/client/cl_voice.lua:499
    2. DoClick - gamemodes/terrortown/gamemode/client/vgui/cl_sb_row.lua:337
      1. OnMouseReleased - lua/vgui/dlabel.lua:237
      2. unknown - lua/vgui/dimagebutton.lua:103
EntranceJew commented 6 months ago

that one should also be solved via #1335

EntranceJew commented 6 months ago

Are you playing a dedicated server? Are you playing peer to peer?

Is the error in other client's consoles? Is the error in the server's console? What color is the error?

Is one of the players on LAN? Are they authorized on steam? The system uses SteamID64 so multiple users on the same account may be impacted by this behavior.

It's very hard to pinpoint a cause without more information about how this is being played or getting that user's steamid64.

cakety commented 6 months ago

Dedicated server run from my machine. Console log when player attempts to join, same errors are seen in their console, but is not seen by others in the server. User's SteamID64 is 76561198177059830 image