Extend and customize logging for reserved slots?
Hi,
I had some issue with the reserved slots (wrong people being dropped, that kind of things), which I couldn't figure out. Is there a way of logging the plugin behavior? Like, who is accepted, dropped, or kicked, and why? |
Re: Extend and customize logging for reserved slots?
I don't know about logging but i can tell you about how it picks who to kick.
(Keep in mind it depends a lot on how you configure the plugin...) When the plugin senses it needs to kick someone, because the server is full or someone without reserved slot access has joined, it calls SelectKickClient. This function basically finds the player with the highest ping and kicks them. So, what exactly is going wrong with your plugin? Who is it kicking that it shouldn't? Maybe you should also post your sourcemod.cfg so we can see how you are setting the settings. |
Re: Extend and customize logging for reserved slots?
I had more issues with people being dropped although they had the appropriate flag (or should have), and people without the flag playing on the server. Since the logs are so light, and I didn't get everything reported as it should (only a few clear cases), that's why I was asking for a more precise log, so I could debug this (if it's my configuration error, the plugin, or whatever).
Core sm config: sm_reserve_type 1 sm_reserved_slots 1 sm_hide_slots 0 admin_overrides: "sm_reskick_immunity" "o" admin_groups: "MyPeople" { "flags" "o" } admins_simple: "STEAM_0:1:whatever" "@MyPeople" Nothing fancy overall. The only pushy thing I got, was having the same steam_id affected to (for example) @MyPeople in admins_simple.ini and to @Root in admins.cfg, but I've tested that the latter take precedence (besides, none of the issues affected people being flagged in admins.cfg). |
Re: Extend and customize logging for reserved slots?
Have you tried without the admin overide?
I have no admin overides and my res slots work fine I have it set to hide the res slots and wait for player to leave. Works fine with the kick player set aswell. |
Re: Extend and customize logging for reserved slots?
It doesn't log that sort of stuff by default though it would not be hard to alter it to do that. What exactly do you want logged?
|
Re: Extend and customize logging for reserved slots?
Well, each time the plugin does something.
Some examples: [Timestamp] [reservedslots] PlayerName (STEAM_0:1xxxxx, flags: none) dropped, 24 players on server, 1 reserved slot [Timestamp] [reservedslots] PlayerName2 (STEAM_0:1xxxxx, flags: abop, sm_reskick_immunity is on "o") entered, 24 players on server, 1 reserved slot [Timestamp] [reservedslots] PlayerName4 (STEAM_0:1xxxxx, flags: op, sm_reskick_immunity is on "o") wasn't kicked, 24 players on server, 1 reserved slot [Timestamp] [reservedslots] PlayerName3 (STEAM_0:1xxxxx, flags: p) kicked, 24 players on server, 1 reserved slot Or something along those lines. Basically, a trace of what the plugin doing, when, to who, and why. Like on the last two lines above, if the timestamp is almost the same, I know Player2 is supposed to be flagged in a way, I know ReservedSlot think the o flag allows him to not be dropped, and that player4 was kicked because of player 2. There are numerous possibilities of why my test (and other's people) didn't work: I didn't understood the manual, I made an error or a typo in my config files, I made an error in my admins config files, the server drank too much, or the plugin has a bug. By tracing it, I can compare to my config files step by step, and see where's the issue. |
Re: Extend and customize logging for reserved slots?
Quote:
|
All times are GMT -4. The time now is 00:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.