Raised This Month: $51 Target: $400
 12% 

[ANY] AFK Manager (Version 4.3.0 / Updated July 2nd 2018)


Post New Thread Reply   
 
Thread Tools Display Modes
Rothgar
Veteran Member
Join Date: Nov 2007
Old 07-24-2013 , 18:25   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1301

Quote:
Originally Posted by cssBOT View Post
Now I know my problem. Running on a DM server. There is only one round start. Can you change it to OnMapStart?
What are you talking about? From what I can tell I wrote this to try and be compatible with Deathmatch Servers, it uses the Player Spawn event?
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
cssBOT
Senior Member
Join Date: Apr 2009
Old 07-25-2013 , 19:35   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1302

Quote:
Originally Posted by Rothgar View Post
What are you talking about? From what I can tell I wrote this to try and be compatible with Deathmatch Servers, it uses the Player Spawn event?
Well the player spawn event is fine for determining to move or kick based if they are afk after spawn but that is not the problem. It moves them to spectator fine every time. There is some problem with the function of kicking from spectate. It needs to track when a player moves to spectate (player_team event)

This plugin used to work fine. I see in the changelog for v3.5.0 you state:
"Fixed the AFK timers being reset when being moved to the Spectator team. This was causing timers to start from 0 again instead of continuing..."
Perhaps something in the logic went wrong there?

I have it configured to move to spectator for afk'g in game for 20s and then kicking from spectator if afk for 120s when the server reaches 22 players. It does the moves to spectator flawless but it only kicks one player per map for being afk in spectator when 22 or more players are on the server.

Here is my config:
Code:
/ Admin Flag for immunity? Leave Blank for any flag.
// -
// Default: ""
sm_afk_admins_flag "gz"

// Should admins be immune to the AFK Manager? [0 = DISABLED, 1 = COMPLETE IMMUNITY, 2 = KICK IMMUNITY, 3 = MOVE IMMUNITY]
// -
// Default: "1"
sm_afk_admins_immune "2"

// Is the AFK manager automatic plugin update enabled or disabled? (Requires SourceMod Autoupdate plugin) [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_autoupdate "1"

// Is the AFK manager enabled or disabled? [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_enable "1"

// Should the AFK manager exclude counting bots in player counts? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_exclude_bots "1"

// Should the AFK manager exclude checking dead players? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_exclude_dead "0"

// Minimum number of connected clients required for AFK kick to be enabled. [DEFAULT: 6]
// -
// Default: "6"
sm_afk_kick_min_players "22"

// Should the AFK Manager kick AFK clients? [0 = DISABLED, 1 = KICK ALL, 2 = ALL EXCEPT SPECTATORS, 3 = SPECTATORS ONLY]
// -
// Default: "1"
sm_afk_kick_players "3"

// Time in seconds (total) client must be AFK before being kicked. [0 = DISABLED, DEFAULT: 120.0 seconds]
// -
// Default: "120.0"
sm_afk_kick_time "120.0"

// Time in seconds remaining, player should be warned before being kicked for AFK. [DEFAULT: 30.0 seconds]
// -
// Default: "30.0"
sm_afk_kick_warn_time "30.0"

// Threshold for amount of movement required to mark a player as AFK. [0 = NONE, DEFAULT: 30.0]
// -
// Default: "30.0"
sm_afk_location_threshold "30.0"

// How many days should we keep AFK manager log files. [0 = INFINITE, DEFAULT: 0]
// -
// Default: "0"
sm_afk_log_days "7"

// Should the AFK manager log client kicks. [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_log_kicks "1"

// Should the AFK manager log client moves. [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_log_moves "0"

// Should the AFK manager log plugin warning messages. [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_log_warnings "1"

// Minimum number of connected clients required for AFK move to be enabled. [DEFAULT: 4]
// -
// Default: "4"
sm_afk_move_min_players "3"

// Should the AFK Manager move AFK clients to spectator team? [0 = FALSE, 1 = TRUE]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_move_spec "1"

// Time in seconds (total) client must be AFK before being moved to spectator. [0 = DISABLED, DEFAULT: 60.0 seconds]
// -
// Default: "60.0"
sm_afk_move_time "20.0"

// Time in seconds remaining, player should be warned before being moved for AFK. [DEFAULT: 30.0 seconds]
// -
// Default: "30.0"
sm_afk_move_warn_time "10.0"

// Should the AFK manager warn team 0 (Usually unassigned) players? (Disabling may not work for some games) [0 = FALSE, 1 = TRUE, DEFAULT: 1]
// -
// Default: "1"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_afk_move_warn_unassigned "1"

// Time in seconds (total) that player should have moved from their spawn position. [0 = DISABLED, DEFAULT: 20.0 seconds]
// -
// Default: "20.0"
sm_afk_spawn_time "20.0"

// Time in seconds remaining, player should be warned for being AFK in spawn. [DEFAULT: 15.0 seconds]
// -
// Default: "15.0"
sm_afk_spawn_warn_time "10.0"
cssBOT is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 07-28-2013 , 04:24   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1303

The only way we are going to get more information is if you enable Debug (have to manually compile) and get some Debug data.

This will create a lot of data and can be set to log or print to chat.

Last edited by Rothgar; 07-28-2013 at 04:25.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
cssBOT
Senior Member
Join Date: Apr 2009
Old 07-30-2013 , 04:27   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1304

Ok here. I've attached debug logs for 2 mapcycles. I set sm_afk_kick_min_players 10 (so on server with 20+ players it would trigger anyone afk to be kicked). The rest of my config is same as previous post.

In both map cycles 3 to 4 players were afk during the whole mapcyle without being kicked for afk.
Attached Files
File Type: zip afk_logs.zip (188.4 KB, 124 views)
cssBOT is offline
StayOx
SourceMod Donor
Join Date: Jun 2012
Location: Gliese 581g
Old 07-30-2013 , 08:06   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1305

a suggestion, add a cvar to block players change their team after going to spec, I see players who are sometimes purposely expect to be moved for plugin to change for SPEC and change your team
StayOx is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 07-30-2013 , 08:22   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1306

Quote:
Originally Posted by cssBOT View Post
Ok here. I've attached debug logs for 2 mapcycles. I set sm_afk_kick_min_players 10 (so on server with 20+ players it would trigger anyone afk to be kicked). The rest of my config is same as previous post.

In both map cycles 3 to 4 players were afk during the whole mapcyle without being kicked for afk.
What mod are you running?

By default when you get moved to spectator what spectate mode are you in? Is it the mode that alternates you to a random player every few seconds?

By default when the spectator target changes the AFK Manager takes that as the player is legitimately not AFK and is spectating.

I see a line like this which has me wondering:

CheckObserverAFK - Observer looking at new target? Old: 19 New: 21 Not AFK?
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
cssBOT
Senior Member
Join Date: Apr 2009
Old 08-01-2013 , 02:14   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1307

[CS:S/CS:GO] GunGame

+

[CS:S/CS:GO] DeathMatch:SM
cssBOT is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 08-01-2013 , 18:12   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1308

Quote:
Originally Posted by cssBOT View Post
So are you running CSS or CSGO?

Also:

By default when you get moved to spectator what spectate mode are you in? Is it the mode that alternates you to a random player every few seconds?
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
cssBOT
Senior Member
Join Date: Apr 2009
Old 08-05-2013 , 20:33   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1309

Quote:
Originally Posted by Rothgar View Post
So are you running CSS or CSGO?

Also:

By default when you get moved to spectator what spectate mode are you in? Is it the mode that alternates you to a random player every few seconds?
Running CS:S on linux. Yes the mode is as you mention.
cssBOT is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 08-05-2013 , 21:14   Re: AFK Manager (Version 3.5.2 / Updated July 13th 2013)
Reply With Quote #1310

the color on cs:go is a little screwy. first bracket is default the rest is green.. is that because of the way you use your {colors} or could it be something with colors.inc ? I had to {olive} {green}[AFK] {default}%s to make it look right. I could not use red

Last edited by hamilton5; 08-05-2013 at 21:16.
hamilton5 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode