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

[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 02-20-2010 , 06:33   Re: AFK Manager (Any Mod) (Version 3.2.4 / Updated Feburary 201 2010)
Reply With Quote #491

Released version 3.2.4:

Changes:

Added new "Spawn" AFK check to try and quickly detect people who have not moved from spawn at all.

Added threshold check for player location to help deal with player nudges in the new OB engine. It can be changed but by default should cater for "non purposeful" nudges at the cost of not detecting small player movements to reset AFK.

Changed the way the overall AFK Check works. Was using a filter to check what players were looking at, this will not work well for the threshold checking/player nudge fixes so now just check EyeAngles. As a secondary check we also check player location with the threshold listed above.

Let me know if there are any bugs has been tested slightly with Atreus and team.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Atreus
SourceMod Donor
Join Date: Apr 2005
Location: San Diego, CA
Old 02-20-2010 , 06:36   Re: AFK Manager (Any Mod) (Version 3.2.4 / Updated Feburary 201 2010)
Reply With Quote #492

Fantastic. I tested this with Rothgar a bit ago for the basic new features and it was good to go I plan to tweak mine to account for purposeful nudges too, and will post a good threshhold value for that once i do
Atreus is offline
Send a message via AIM to Atreus Send a message via MSN to Atreus
Rothgar
Veteran Member
Join Date: Nov 2007
Old 03-09-2010 , 08:07   Re: AFK Manager (Any Mod) (Version 3.2.4 / Updated March 9 2010)
Reply With Quote #493

3.2.5 Released.

Added Spawn AFK feature to warrant warning times so it does not spam messages the whole time if you want a shorter warning interval.

Fixed a few issues with move and kick times not disabling when you set them to 0 in the event you may just want the Spawn AFK feature.

Thanks to Atreus for testing.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Onedda
Senior Member
Join Date: May 2009
Old 03-09-2010 , 13:14   Re: AFK Manager (Any Mod) (Version 3.2.5 / Updated March 9 2010)
Reply With Quote #494

Hello Rothgar

installed latest version today and some times this happens in the log

this happens on my windows and also linux server

L 03/09/2010 - 18:12:04: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:09: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:14: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:19: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:24: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:29: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:124: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:129: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:44: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:49: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:54: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:59: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:04: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:09: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:14: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:19: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:24: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:29: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:134: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.

also having this set doesnt seem to work on my windows server, does on my linux.

// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_afk_move_spec "0"



all the time.
__________________

Last edited by Onedda; 03-09-2010 at 14:54.
Onedda is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 03-09-2010 , 17:22   Re: AFK Manager (Any Mod) (Version 3.2.5 / Updated March 9 2010)
Reply With Quote #495

Quote:
Originally Posted by Onedda View Post
Hello Rothgar

installed latest version today and some times this happens in the log

this happens on my windows and also linux server

L 03/09/2010 - 18:12:04: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:09: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:14: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:19: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:24: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:29: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:124: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:129: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:44: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:49: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:54: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:59: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:04: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:09: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:14: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:19: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:24: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:29: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:134: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.

also having this set doesnt seem to work on my windows server, does on my linux.

// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_afk_move_spec "0"



all the time.
Can you post the rest of your cvars?

Also is that for the AFK Spawn feature or just general AFK do you know?

What version of SourceMod are you running, have you tried doing an update or restart of your server? Seems a bit odd it would work on Linux but not windows... SourceMod should be OS independent as far as functions/features are concerned.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Rothgar
Veteran Member
Join Date: Nov 2007
Old 03-09-2010 , 17:31   Re: AFK Manager (Any Mod) (Version 3.2.5 / Updated March 9 2010)
Reply With Quote #496

Actually on closer inspection I may have missed changing the AFK Spawn Kick function to use "Kick" Instead of "Move" which may have looped.

Can you try this version and if it works I'll post a bug fix release.

This has Debug enabled and will spam chat with a lot of messages. I suggest testing it on non production server.

Last edited by psychonic; 03-10-2010 at 17:47. Reason: don't post smx without sp
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Warbucks
Senior Member
Join Date: Jun 2008
Location: Canada
Old 03-09-2010 , 19:56   Re: AFK Manager (Any Mod) (Version 3.2.5 / Updated March 9 2010)
Reply With Quote #497

Quote:
Originally Posted by Onedda View Post
Hello Rothgar

installed latest version today and some times this happens in the log

this happens on my windows and also linux server

L 03/09/2010 - 18:12:04: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:09: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:14: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:19: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:24: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:29: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:124: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:129: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:44: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:49: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:54: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:12:59: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:04: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:09: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:14: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:19: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:24: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:13:29: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.
L 03/09/2010 - 18:134: [afk_manager.smx] [AFK Manager] ^1[DoN]^3NighTwAtCh<91><STEAM_0:0:4672045><> was moved to spectate for being AFK too long.

also having this set doesnt seem to work on my windows server, does on my linux.

// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_afk_move_spec "0"

I'm getting the same chat spam on my windows server as well with 3.2.5. I'll try the debug version you posted.
all the time.
Warbucks is offline
Onedda
Senior Member
Join Date: May 2009
Old 03-10-2010 , 12:20   Re: AFK Manager (Any Mod) (Version 3.2.5 / Updated March 9 2010)
Reply With Quote #498

here you go

// This file was auto-generated by SourceMod (v1.3.1)
// ConVars for plugin "afk_manager.smx"


// Admin Flag for immunity? Leave Blank for any flag.
// -
// Default: ""
sm_afk_admins_flag "a"

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

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

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

// Minimum amount of connected clients needed to kick AFK clients.
// -
// Default: "6"
sm_afk_kick_min_players "6"

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

// Time in seconds (total) client must be AFK before being kicked.
// -
// 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"

// Minimum amount of connected clients needed to move clients to spectator.
// -
// Default: "4"
sm_afk_move_min_players "4"

// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_afk_move_spec "0"

// Time in seconds (total) client must be AFK before being moved to spectator.
// -
// Default: "60.0"
sm_afk_move_time "60.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 "30.0"

// Time in seconds, player should have moved from spawn before being flagged AFK. [0 = DISABLED, DEFAULT: 20.0 seconds]
// -
// Default: "20.0"
sm_afk_spawn_time "20.0"

as i said before, on my linux i have it set so it kicks instead of moving them to spawn, but on my windows server it always moves them to spawn even though its not set like that.
__________________
Onedda is offline
Warbucks
Senior Member
Join Date: Jun 2008
Location: Canada
Old 03-10-2010 , 13:43   Re: AFK Manager (Any Mod) (Version 3.2.5 / Updated March 9 2010)
Reply With Quote #499

Quote:
Originally Posted by Onedda View Post
here you go

// This file was auto-generated by SourceMod (v1.3.1)
// ConVars for plugin "afk_manager.smx"


// Admin Flag for immunity? Leave Blank for any flag.
// -
// Default: ""
sm_afk_admins_flag "a"

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

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

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

// Minimum amount of connected clients needed to kick AFK clients.
// -
// Default: "6"
sm_afk_kick_min_players "6"

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

// Time in seconds (total) client must be AFK before being kicked.
// -
// 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"

// Minimum amount of connected clients needed to move clients to spectator.
// -
// Default: "4"
sm_afk_move_min_players "4"

// Move AFK clients to spec before kicking them? [0 = FALSE, 1 = TRUE]
// -
// Default: "0"
sm_afk_move_spec "0"

// Time in seconds (total) client must be AFK before being moved to spectator.
// -
// Default: "60.0"
sm_afk_move_time "60.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 "30.0"

// Time in seconds, player should have moved from spawn before being flagged AFK. [0 = DISABLED, DEFAULT: 20.0 seconds]
// -
// Default: "20.0"
sm_afk_spawn_time "20.0"

as i said before, on my linux i have it set so it kicks instead of moving them to spawn, but on my windows server it always moves them to spawn even though its not set like that.
Your configuration isn't the issue. It's a bug in the actual plugin. It's calling the Move function instead of the Kick function. I've fixed this manually myself, but wait till he posts an updated version.

Last edited by Warbucks; 03-10-2010 at 13:47.
Warbucks is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 03-10-2010 , 17:35   Re: AFK Manager (Any Mod) (Version 3.2.5 / Updated March 9 2010)
Reply With Quote #500

Right which is what I changed in the Debug version I posted. Has this been confirmed then? If so I will release the fixed version.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
Reply


Thread Tools
Display Modes

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 11:23.


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