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
dann
Senior Member
Join Date: Nov 2007
Old 06-15-2009 , 08:49   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #361

Quote:
Originally Posted by Rothgar View Post
If you download the ".sp" file and open it, at the top will be a _DEBUG option you can set to 1.

Once you have done this compile it and then you should get all sorts of messages in your SourceMod logs.

We can then check it out
heres the first file, it was right after I installed it and changed maps tonight.

I also got this error when compiling, not sure if its important

Quote:
//// afk_manager-compat.sp
// afk_manager-compat.sp(155) : warning 204: symbol is assigned a value that is
never used: "L4D"
// Header size: 3548 bytes
// Code size: 15040 bytes
// Data size: 7840 bytes
// Stack/heap size: 16384 bytes; Total requirements: 42812 bytes
//
// 1 Warning.
//
// Compilation Time: 0.67 sec
// ----------------------------------------
Attached Files
File Type: log L0615004.log (18.5 KB, 135 views)
dann is offline
dann
Senior Member
Join Date: Nov 2007
Old 06-15-2009 , 14:14   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #362

heres a couple more. oops guess they are two large to upload as attachments.

thanks

Last edited by dann; 06-15-2009 at 14:16.
dann is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 06-15-2009 , 16:35   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #363

Quote:
L 06/15/2009 - 05:40:51: [afk_manager-compat.smx] [AFK Manager] RUNNING TIMER #1
L 06/15/2009 - 05:40:51: [afk_manager-compat.smx] [AFK Manager] RUNNING TIMER #2
L 06/15/2009 - 05:40:51: [afk_manager-compat.smx] [AFK Manager] CheckSamePosition - Checking Player Positions: Client: 1 Old Angle: -2336.031250 -2288.999511 68.031250 New Angle: -2336.031250 -2302.479980 95.703720
L 06/15/2009 - 05:40:51: [afk_manager-compat.smx] [AFK Manager] RUNNING TIMER #1
L 06/15/2009 - 05:40:51: [afk_manager-compat.smx] [AFK Manager] RUNNING TIMER #2
L 06/15/2009 - 05:40:51: [afk_manager-compat.smx] [AFK Manager] CheckSamePosition - Checking Player Positions: Client: 1 Old Angle: -2336.031250 -2302.479980 95.703720 New Angle: -2336.031250 -2302.479980 95.703720
Hmm somewhere along the lines it seems like it is running the timer twice... As you can see from the timestamps.

Just as a question, when you restart the server for example and for example it's on the first map and no one has connected/disconnected or been kicked etc. and you join can you see if the plugin works properly and maybe try and disconnect/reconnect a few times and then maybe try kicking yourself etc and see if it starts acting up.

I'll have to take a look into it, however either 2 timers are running or it's somehow looping the check twice I'd say. Will need to track it down.

I'd assume at this point maybe timers are not being closed properly at some point so there are some random timers running around possibly.

The weird part in your log file is this:

Quote:
L 06/15/2009 - 05:40:06: [afk_manager-compat.smx] [AFK Manager] AFK_Initialize - AFK Plugin Initializing!
L 06/15/2009 - 05:40:06: [afk_manager-compat.smx] [AFK Manager] AFK_Initialize - Finished Reseting Clients!
L 06/15/2009 - 05:40:06: [mapconfigs.smx] Executing map specific config: plr_pipeline.cfg
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] Event_PlayerTeam - Client: 1 joined team: 2
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] Event_PlayerTeam - Client: 1 joined a team and does not have a valid timer? Re-Initializing client
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] InitializePlayer - Initializing client: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] InitializePlayer - Creating AFK timer for client: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] ResetPlayer - Reseting arrays for index: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] Event_PlayerSpawn - Client spawned: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] ResetPlayer - Reseting arrays for index: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] InitializePlayer - Initializing client: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] InitializePlayer - Creating AFK timer for client: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] ResetPlayer - Reseting arrays for index: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] Event_PlayerSpawn - Client spawned: 1
L 06/15/2009 - 05:40:40: [afk_manager-compat.smx] [AFK Manager] ResetPlayer - Reseting arrays for index: 1
L 06/15/2009 - 05:40:41: [afk_manager-compat.smx] [AFK Manager] Event_PlayerSpawn - Client spawned: 1
L 06/15/2009 - 05:40:41: [afk_manager-compat.smx] [AFK Manager] ResetPlayer - Reseting arrays for index: 1
L 06/15/2009 - 05:40:41: [afk_manager-compat.smx] [AFK Manager] Event_RoundStart - Round Started
notice it creates a timer twice it seems and hasn't closed a timer. I don't know if you remembered what happened at that point whether someone had disconnected and then reconnected? It doesn't look like it changed maps...

Have you made sure this is not a bug in the latest dev release of 1.2.1 which it seems like you are using? have you tried the stable version?

The only other thing I can think of is that you joined a team and it spawned a timer and then the PostAdminCheck maybe kicked in afterwards... (massive delay for some reason?) and then it ran the Initialize again. OnClientPostAdminCheck. I currently in the Initialize function don't check for any active timers. I guess I could.

Last edited by Rothgar; 06-15-2009 at 16:46.
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 06-15-2009 , 16:51   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #364

Try this version also see if it fixes the problem. It has debug on.

I am thinking this might be caused possibly by a plugin that forces you on to a team on server join? Or people are really fast at joining a team before the post admin check in SourceMod runs. In any case try this version as well and see if it fixes it.

Last edited by Rothgar; 03-12-2010 at 02:20.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
dann
Senior Member
Join Date: Nov 2007
Old 06-15-2009 , 18:15   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #365

Quote:
Originally Posted by Rothgar View Post

Just as a question, when you restart the server for example and for example it's on the first map and no one has connected/disconnected or been kicked etc. and you join can you see if the plugin works properly and maybe try and disconnect/reconnect a few times and then maybe try kicking yourself etc and see if it starts acting up.
Yes it happens on server start, that first log is from when nobody has connected except for myself.

Quote:
Originally Posted by Rothgar View Post
Try this version also see if it fixes the problem. It has debug on.

I am thinking this might be caused possibly by a plugin that forces you on to a team on server join?
yes I'm using a plugin to force a team at join

http://forums.alliedmods.net/showthr...ight=forceteam

will this updated version fix it?
dann is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 06-16-2009 , 08:04   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #366

Try it.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
dann
Senior Member
Join Date: Nov 2007
Old 06-16-2009 , 09:24   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #367

I tried it last night. Its working properly when moving players to spec, but it no longer kicks spectators. so we're almost there.

it also seems people are timing out a lot more since i installed this one, not sure if its a coincidence or not though.
Attached Files
File Type: rar L0616004.rar (56.7 KB, 126 views)

Last edited by dann; 06-16-2009 at 09:42.
dann is offline
Rothgar
Veteran Member
Join Date: Nov 2007
Old 06-16-2009 , 19:21   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #368

Quote:
Originally Posted by dann View Post
I tried it last night. Its working properly when moving players to spec, but it no longer kicks spectators. so we're almost there.

it also seems people are timing out a lot more since i installed this one, not sure if its a coincidence or not though.
It could be because it's writing a lot of data to the hard-drive and the server can't cope perhaps.

When Debug is turned off this should help alleviate the time-outs.

As for the Spectator problems you'd need to be more specific on how it's not working. It would be better if you could get me a log file too of just one person and show me where in the logs you were moved to spectator and how you believe it's not working.
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 06-16-2009 , 23:11   Re: AFK Manager (Any Mod) (Version 3.1.4 / Updated June 16 2009)
Reply With Quote #369

3.1.4 released to fix the double timer problem dann mentioned.
Rothgar is offline
Send a message via ICQ to Rothgar Send a message via AIM to Rothgar Send a message via MSN to Rothgar
dann
Senior Member
Join Date: Nov 2007
Old 06-19-2009 , 17:14   Re: AFK Manager (Any Mod) (Version 3.1.3 / Updated May 30 2009)
Reply With Quote #370

Quote:
Originally Posted by Rothgar View Post

As for the Spectator problems you'd need to be more specific on how it's not working. It would be better if you could get me a log file too of just one person and show me where in the logs you were moved to spectator and how you believe it's not working.

ok ive tested it out yesterday morning, it kicks when there is 1 or 2 people in the server. If the server is full or semi full the person gets kicked to spectate and then just sits there. I reinstalled the version with debug on, but I can't seem to find the client id once they're in specate to see whats going on.

heres an example from the non-debug version. I have to manually kick these guys now.

Quote:
L 06/19/2009 - 01:27:43: [mapconfigs.smx] Executing map specific config: pl_goldrush.cfg
L 06/19/2009 - 01:29:52: [afk_manager-compat.smx] [AFK Manager] Crimson<1225><STEAM_0:1:16700832><> was moved to spectate for being AFK too long.
L 06/19/2009 - 011:50: [afk_manager-compat.smx] [AFK Manager] foghorn leghorn<1207><STEAM_0:1:2100734><> was moved to spectate for being AFK too long.
L 06/19/2009 - 01:40:25: [afk_manager-compat.smx] [AFK Manager] <7IГ>Combat Wombat<1228><STEAM_0:1:5937><> was moved to spectate for being AFK too long.
L 06/19/2009 - 01:440: [afk_manager-compat.smx] [AFK Manager] Hockeytown<1224><STEAM_0:1:9117878><> was moved to spectate for being AFK too long.
L 06/19/2009 - 01:57:50: [afk_manager-compat.smx] [AFK Manager] <7IГ>Combat Wombat<1228><STEAM_0:1:5937><> was moved to spectate for being AFK too long.
L 06/19/2009 - 02:08:01: [SM] Changed map to "pl_hoodoo_final"
thanks
dann 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 01:46.


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