-
Notifications
You must be signed in to change notification settings - Fork 31
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
Menu KeyError #487
Comments
Yes, this is likely a conflict with another server plugin. Could be difficult to fix. |
I get those errors randomly aswell, even i though only have installed sp and only use sp plugins i made |
These happens when the from menus import *
from players.entity import *
SimpleMenu(['...',]).send(1)
Player(1).client_command('menuselect 3', True)
"""
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\commands\auth.py", line 44, in __call__
return self.callback(*args)
File "..\addons\source-python\packages\source-python\menus\queue.py", line 267, in _menuselect_callback
_radio_queues[index]._select(choice)
File "..\addons\source-python\packages\source-python\menus\queue.py", line 126, in _select
next_menu = active_menu._select(self._index, choice)
File "..\addons\source-python\packages\source-python\menus\radio.py", line 113, in _select
self._player_pages[player_index].options[choice_index])
KeyError: 3
""" Passing no value is also producing an error: from menus import *
from players.entity import *
SimpleMenu(['...',]).send(1)
Player(1).client_command('menuselect', True)
"""
[SP] Caught an Exception:
Traceback (most recent call last):
File "..\addons\source-python\packages\source-python\commands\auth.py", line 44, in __call__
return self.callback(*args)
File "..\addons\source-python\packages\source-python\menus\queue.py", line 265, in _menuselect_callback
index, choice = _validate_selection(command, index, VALID_CHOICES)
File "..\addons\source-python\packages\source-python\menus\queue.py", line 221, in _validate_selection
choice = int(command[1])
IndexError: Index out of range.
""" f3272be addresses those contexts. |
Hi, my console is ocassionaly filled with these. Not sure how to reproduce that. Maybe it has something to do with sourcemod menu's clashing?
The text was updated successfully, but these errors were encountered: