Skip to content

HL2:DM weaponslist #515

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
RocKs-Painkiller opened this issue Apr 21, 2025 · 0 comments · Fixed by #517
Closed

HL2:DM weaponslist #515

RocKs-Painkiller opened this issue Apr 21, 2025 · 0 comments · Fixed by #517

Comments

@RocKs-Painkiller
Copy link

RocKs-Painkiller commented Apr 21, 2025

[code][Source.Python] Loading... [Source.Python] Failed to load the main module due to following exception: Traceback (most recent call last): File "/home/container/hl2mp/addons/source-python/packages/source-python/__init__.py", line 89, in load setup_sp_command() ~~~~~~~~~~~~~~~~^^ File "/home/container/hl2mp/addons/source-python/packages/source-python/__init__.py", line 342, in setup_sp_command from core.command import auth, docs, dump, plugin File "/home/container/hl2mp/addons/source-python/packages/source-python/core/command/__init__.py", line 20, in <module> from commands.typed import TypedServerCommand File "/home/container/hl2mp/addons/source-python/packages/source-python/commands/typed.py", line 29, in <module> from filters.players import parse_filter File "/home/container/hl2mp/addons/source-python/packages/source-python/filters/players.py", line 26, in <module> from players.entity import Player File "/home/container/hl2mp/addons/source-python/packages/source-python/players/entity.py", line 19, in <module> import players._base File "/home/container/hl2mp/adource-python/packages/source-python/players/_base.py", line 45, in <module> from entities.entity import Entity File "/home/container/hl2mp/addons/source-python/packages/source-python/entities/entity.py", line 17, in <module> import entities._base File "/home/container/hl2mp/addons/source-python/packages/source-python/entities/_base.py", line 48, in <module> from filters.weapons import WeaponClassIter File "/home/container/hl2mp/addons/source-python/packages/source-python/filters/weapons.py", line 16, in <module> from weapons.manager import weapon_manager File "/home/container/hl2mp/addons/source-python/packages/source-python/weapons/manager.py", line 174, in <module> weapon_manager = _WeaponManager() File "/home/container/hl2mp/addons/source-python/packages/source-python/weapons/manager.py", line 79, in __init__ self[name] = WeaponClass( ~~~~~~~~~~~^ name, basename, self.ini['weapons'][basename] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/home/container/hl2mp/addons/source-python/packages/source-python/weapons/instance.py", line 47, in __init__ self._slot = self.parse_weapon_constants( ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ properties.get('slot', None), WeaponSlot) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/container/hl2mp/addons/source-python/packages/source-python/weapons/instance.py", line 192, in parse_weapon_constants return weapon_constants(value) File "/home/container/hl2mp/addons/source-python/Python3/enum.py", line 730, in __call__ raise TypeError( f"{cls} has no members; specify names=()if you meant to create a new, empty, enum" ) TypeError: <enum 'WeaponSlot'> has no members; specifynames=() if you meant to create a new, empty, enum [Source.Python] Could not initialize python. Failed to load plugin "addons/source-python" [Source.Python] Unloading... [Source.Python] Unloaded successfully. Unable to load plugin "addons/source-python"[/code]

Linux

[code]

weapon_crowbar slot: 0 x: 0
weapon_pistol slot: 1 x: 1
weapon_smg1 slot: 2 x: 2
weapon_frag slot: 4 x: 3
weapon_physcannon slot: -1 x: 4
weapon_stunstick slot: -1 x: 5
weapon_357 slot: -1 x: 6
weapon_ar2 slot: -1 x: 7
weapon_shotgun slot: 3 x: 8
weapon_crossbow slot: -1 x: 9
weapon_rpg slot: -1 x: 10
weapon_slam slot: -1 x: 11
[/code]

Windows

[code]
weapon_pistol slot: 1 x: 0
weapon_crowbar slot: 0 x: 1
weapon_stunstick slot: -1 x: 2
weapon_357 slot: -1 x: 3
weapon_smg1 slot: 2 x: 4
weapon_ar2 slot: 5 x: 5
weapon_shotgun slot: 3 x: 6
weapon_frag slot: 4 x: 7
weapon_crossbow slot: -1 x: 8
weapon_rpg slot: -1 x: 9
weapon_slam slot: -1 x: 10
weapon_physcannon slot: -1 x: 11
[/code]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant