[Cs:s] Menu Key errors

Please post any questions about developing your plugin here. Please use the search function before posting!
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

[Cs:s] Menu Key errors

Postby cssbestrpg » Sat Sep 11, 2021 11:15 am

Hey, i keep getting randomly errors from menu, but it doesn't tell source which plugin causes.

Code: Select all

2021-09-04 07:14:02 - sp - EXCEPTION
[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: 1


2021-09-04 07:15:25 - sp - EXCEPTION
[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: 2


2021-09-04 08:11:02 - sp - EXCEPTION
[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: 4


2021-09-04 08:12:14 - sp - EXCEPTION
[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 321, in _select
return super()._select(player_index, choice_index)
File "../addons/source-python/packages/source-python/menus/radio.py", line 113, in _select
self._player_pages[player_index].options[choice_index])

KeyError: 6


Here is the sp info

Code: Select all

[2021-09-11 14:11:09]: --------------------------------------------------------
[2021-09-11 14:11:09]: Checksum : a2d224a8cccf820bd0fff686bd921f11
[2021-09-11 14:11:09]: Date : 2021-09-11 11:11:09.326222
[2021-09-11 14:11:09]: OS : Linux-4.15.0-96-generic-x86_64-with-debian-10.10
[2021-09-11 14:11:09]: Game : css
[2021-09-11 14:11:09]: SP version : 705
[2021-09-11 14:11:09]: Github commit : 38e4fe48579f9445b878624a9439ce10e28aa7e6
[2021-09-11 14:11:09]: Server plugins:
[2021-09-11 14:11:09]: 00: Metamod:Source 1.11.0-dev+1145
[2021-09-11 14:11:09]: 01: Source.Python, (C) 2012-2020, Source.Python Team.
[2021-09-11 14:11:09]: SP plugins:
[2021-09-11 14:11:09]: 00: rpg
[2021-09-11 14:11:09]: --------------------------------------------------------

In sourcemod i only use rtv/nominate.

Inside of rpg have several plugins.
Here is the screenshot of the rpg plugins:
https://prnt.sc/1rti27f
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Re: [Cs:s] Menu Key errors

Postby L'In20Cible » Wed Sep 15, 2021 9:02 pm

We could probably silent it, or implement some kind of anti-conflict internally, but otherwise it can be ignored. What likely happens is; SP sends a menu and add it to the user queue, SM overrides that menu with more options enabled causing it to be unknown by SP when such options are selected resulting into a key error when SP tries to process the selection. Regardless of what we do on our side, it will likely conflict the other way around (SP overriding SM menus, etc.).
cssbestrpg
Senior Member
Posts: 287
Joined: Sun May 17, 2020 7:56 am
Location: Finland
Contact:

Re: [Cs:s] Menu Key errors

Postby cssbestrpg » Sun Sep 19, 2021 12:47 pm


Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 31 guests