So, it would be nice if we could make the plugin notice someone as "not afk" if they are picking a class or execute a change team from spectator to some actual player team.
ok haven't tested Nuclear Dawn, I'll see if Viper can help.
sm plugins load afk_manager
[SM] Loaded plugin afk_manager.smx successfully.
sm plugins list
[SM] Listing 46 plugins:
01...
46 <Error> "AFK Manager" (3.4.3) by Rothgar
Load Errors:
AFK Manager: Error detected in plugin startup (see error logs)
No error log entry. I have an error log for today, by chance, due to issue with curl ext, but there is nothing in the error log for AFKM. I have an afkm_<date>.log for weeks, and it's filled with data, so the plugin is working... just don't know why it's showing as <error> yet still running??
Example of what's in the afkm_20120718.log:
Spoiler
Code:
L 07/18/2012 - 06:02:40: [afk_manager.smx] AFK Manager Log File
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK move has not been reached, feature is now disabled: sm_afk_move_min_players = 4 Current Players = 0
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK kick has not been reached, feature is now disabled: sm_afk_kick_min_players = 6 Current Players = 0
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK move is reached, feature is now enabled: sm_afk_move_min_players = 4 Current Players = 4
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK kick is reached, feature is now enabled: sm_afk_kick_min_players = 4 Current Players = 4
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK move has not been reached, feature is now disabled: sm_afk_move_min_players = 4 Current Players = 1
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK kick has not been reached, feature is now disabled: sm_afk_kick_min_players = 4 Current Players = 1
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK move is reached, feature is now enabled: sm_afk_move_min_players = 4 Current Players = 4
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK kick is reached, feature is now enabled: sm_afk_kick_min_players = 4 Current Players = 4
Whats even more weird, I deleted the translation file, and it still didn't write anything to the error log - unless it has to wait for an action to translate anything, I'll look at the source code right quick.
Somehow, the access permissions for the log folder was changed. After I added the appropriate permissions, no Error with the AFKManager... weird that other plugins weren't complaining...
Anyways, above issue resolved. Although, I'm using a slightly modified version:
Added,
sm plugins load afk_manager
[SM] Loaded plugin afk_manager.smx successfully.
sm plugins list
[SM] Listing 46 plugins:
01...
46 <Error> "AFK Manager" (3.4.3) by Rothgar
Load Errors:
AFK Manager: Error detected in plugin startup (see error logs)
No error log entry. I have an error log for today, by chance, due to issue with curl ext, but there is nothing in the error log for AFKM. I have an afkm_<date>.log for weeks, and it's filled with data, so the plugin is working... just don't know why it's showing as <error> yet still running??
Example of what's in the afkm_20120718.log:
Spoiler
Code:
L 07/18/2012 - 06:02:40: [afk_manager.smx] AFK Manager Log File
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK move has not been reached, feature is now disabled: sm_afk_move_min_players = 4 Current Players = 0
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK kick has not been reached, feature is now disabled: sm_afk_kick_min_players = 6 Current Players = 0
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK move is reached, feature is now enabled: sm_afk_move_min_players = 4 Current Players = 4
L 07/18/2012 - 06:03:06: [afk_manager.smx] Minimum player count for AFK kick is reached, feature is now enabled: sm_afk_kick_min_players = 4 Current Players = 4
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK move has not been reached, feature is now disabled: sm_afk_move_min_players = 4 Current Players = 1
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK kick has not been reached, feature is now disabled: sm_afk_kick_min_players = 4 Current Players = 1
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK move is reached, feature is now enabled: sm_afk_move_min_players = 4 Current Players = 4
L 07/18/2012 - 06:30:28: [afk_manager.smx] Minimum player count for AFK kick is reached, feature is now enabled: sm_afk_kick_min_players = 4 Current Players = 4
Whats even more weird, I deleted the translation file, and it still didn't write anything to the error log - unless it has to wait for an action to translate anything, I'll look at the source code right quick.
Somehow, the access permissions for the log folder was changed. After I added the appropriate permissions, no Error with the AFKManager... weird that other plugins weren't complaining...
Anyways, above issue resolved. Although, I'm using a slightly modified version:
Added,
Do you know if CS:GO has the same problems as CS:S?
i.e. the only reason that modification/detection was beneficial was to fix:
Valve was calling player_spawn when joining the Spectator team I believe??? I had to patch this...
Valve required me to suicide players that were AFK as I believe if you were the last player on the team and were moved as AFK without being suicided the round would not end properly? (Memory is a bit hazed on this one)
Do you know what cvar CS:GO uses for the default AFK features? is it mp_idledealmethod like TF2 or mp_autokick or something else?