Skip to content

Missing weapons data cause NotImplementedError on Weapon instantiation. #308

Description

@RenardDev
Traceback (most recent call last):
  File "..\addons\source-python\plugins\VoiceMod\VoiceMod.py", line 117, in PreEmitSound
    weapon = client.get_active_weapon()
  File "..\addons\source-python\packages\source-python\players\_base.py", line 803, in get_active_weapon
    return Weapon(index)
  File "..\addons\source-python\packages\source-python\entities\_base.py", line 127, in __call__
    obj = super().__call__(index)
  File "..\addons\source-python\packages\source-python\weapons\_base.py", line 40, in __init__
    WeaponMixin.__init__(self, index)
  File "..\addons\source-python\packages\source-python\weapons\default.py", line 29, in __getattribute__
    'No support for game "{0}"'.format(GAME_NAME))

NotImplementedError: No support for game "tf"
--------------------------------------------------------
Checksum      : beee61bc2b45f1329ec887af411ae5b3
Date          : 2020-03-17 17:14:32.592269
OS            : Windows-10-10.0.18362
Game          : tf2
SP version    : 695
Github commit : 92b3adfaaaf1bb9ecd2be1ddad55bc68589b4152
Server plugins:
   01: Source.Python, (C) 2012-2019, Source.Python Team.
SP plugins:
   00: BadSetLocalAnglesFixer
   01: AdvancedBunnyHop
   02: AntiAutoKick
   03: InstantReSpawn
   04: UTF8
   05: TauntMusicChanger
   06: VoiceMod
--------------------------------------------------------

The problem started after the last update.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions