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

[TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 16 MAY 2015 (v1.21)


Post New Thread Reply   
 
Thread Tools Display Modes
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 01-11-2015 , 08:21   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #11

Quote:
Originally Posted by Chdata View Post
Yeah, if you move yourself you can see that.
Do you think I should add in code to prevent a player from moving themselves?
__________________
El Diablo War3Evo is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-11-2015 , 10:38   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #12

Nah, I think it's nice. Make it optional I guess.
__________________
Chdata is offline
ShinyRazu
Member
Join Date: Feb 2014
Old 01-11-2015 , 10:57   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #13

Nice plugin idea... however I have a few complaints from my players:

- Players are moving (Not AFK) and are being changed to Medic class, which annoys them.
- Players AFK for a very short while also are turned into a Medic (sometimes as little as 5 seconds AFK).
- The plugin respawns dead players... may not matter so much normally, but we run a few Jailbreak servers, and believe me this causes a lot of trouble as it's supposed to be Arena style. Consider changing this or adding a CVar to stop dead players being respawned?

Thanks.
ShinyRazu is offline
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 01-11-2015 , 11:28   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #14

Quote:
Originally Posted by ShinyRazu View Post
Nice plugin idea... however I have a few complaints from my players:

- Players are moving (Not AFK) and are being changed to Medic class, which annoys them.
I've not had this issue on our servers, and I play daily. Maybe some settings you may want to change in the AFK manager part to help fix it. Since my AFK Manager is an almost exact copy of https://forums.alliedmods.net/showthread.php?p=708265 then, look there for the options needed to add to your server.cfg or /sourcemod/afk_manager.cfg file. I think increasing this sm_afk_location_threshold to 300.0 may help (decrease that number if the afk_manager no longer works).

Quote:
Originally Posted by ShinyRazu View Post
- Players AFK for a very short while also are turned into a Medic (sometimes as little as 5 seconds AFK).
Again, as stated above.. probably just a problem with the setup of your afk manager settings. Check these convars: sm_afk_move_warn_time and sm_afk_move_time. OnPlayerAFK(client) triggers right before someone is moved to spec. Increase this time in your configuration file to fix this issue.

Quote:
Originally Posted by ShinyRazu View Post
- The plugin respawns dead players... may not matter so much normally, but we run a few Jailbreak servers, and believe me this causes a lot of trouble as it's supposed to be Arena style. Consider changing this or adding a CVar to stop dead players being respawned?
Thanks.
I'll work on a CVAR for this.
__________________
El Diablo War3Evo is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-11-2015 , 12:01   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #15

Code:
L 01/09/2015 - 10:38:41: [SM] Displaying call stack trace for plugin "afk_bot_stand_alone.smx":
L 01/09/2015 - 10:38:41: [SM]   [0]  Line 329, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/include/tf2_stocks.inc::TF2_GetPlayerClass()
L 01/09/2015 - 10:38:41: [SM]   [1]  Line 568, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/afk_bot_stand_alone.sp::OnPlayerRunCmd()
L 01/09/2015 - 10:38:42: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 0/worldspawn)
L 01/09/2015 - 10:38:42: [SM] Displaying call stack trace for plugin "afk_bot_stand_alone.smx":
L 01/09/2015 - 10:38:42: [SM]   [0]  Line 329, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/include/tf2_stocks.inc::TF2_GetPlayerClass()
L 01/09/2015 - 10:38:42: [SM]   [1]  Line 568, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/afk_bot_stand_alone.sp::OnPlayerRunCmd()
L 01/09/2015 - 10:38:42: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 0/worldspawn)
L 01/09/2015 - 10:38:42: [SM] Displaying call stack trace for plugin "afk_bot_stand_alone.smx":
Didn't notice this create an 18mb error log file.
__________________
Chdata is offline
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 01-11-2015 , 12:22   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #16

Quote:
Originally Posted by Chdata View Post
Code:
L 01/09/2015 - 10:38:41: [SM] Displaying call stack trace for plugin "afk_bot_stand_alone.smx":
L 01/09/2015 - 10:38:41: [SM]   [0]  Line 329, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/include/tf2_stocks.inc::TF2_GetPlayerClass()
L 01/09/2015 - 10:38:41: [SM]   [1]  Line 568, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/afk_bot_stand_alone.sp::OnPlayerRunCmd()
L 01/09/2015 - 10:38:42: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 0/worldspawn)
L 01/09/2015 - 10:38:42: [SM] Displaying call stack trace for plugin "afk_bot_stand_alone.smx":
L 01/09/2015 - 10:38:42: [SM]   [0]  Line 329, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/include/tf2_stocks.inc::TF2_GetPlayerClass()
L 01/09/2015 - 10:38:42: [SM]   [1]  Line 568, /home/diablo/SOURCEMOD_ALL_FILES/sourcemod/git_War3Evo_VenumX_19FEB2014/tf/addons/sourcemod/scripting/afk_bot_stand_alone.sp::OnPlayerRunCmd()
L 01/09/2015 - 10:38:42: [SM] Native "GetEntProp" reported: Property "m_iClass" not found (entity 0/worldspawn)
L 01/09/2015 - 10:38:42: [SM] Displaying call stack trace for plugin "afk_bot_stand_alone.smx":
Didn't notice this create an 18mb error log file.

are you running version 1.1?

cause, I don't have those errors in my log file.
__________________
El Diablo War3Evo is offline
SPYderman
Senior Member
Join Date: Aug 2013
Old 01-12-2015 , 18:04   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #17

Quote:
Originally Posted by El Diablo War3Evo View Post
Do you think I should add in code to prevent a player from moving themselves?
I would love that, but as Chdata said, you should make it a cvar because sometimes it comes in use for stuck bots.

Last edited by SPYderman; 01-12-2015 at 18:05.
SPYderman is offline
SPYderman
Senior Member
Join Date: Aug 2013
Old 01-14-2015 , 17:40   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #18

So a list of more things, I'll edit this post with a video or something and more bugs I find soon:

Bugs:
- Bots seem to only get stuck (aside from stairs/ramps) when it makes right turns, or right walls. When it goes left it seems to be perfectly fine, they just strafe to the right a lot.
- After testing this with other people, they are telling me they get a very fast AFK timer when they're respawning so they go straight to medic bot right after they spawn (I've tried changing the timers in the configs and everything). One person has also reported that after this, they'd get even more warning messages.
- As I said before, people getting warned even when they're already AFK when they die.

Suggestions:
- Maybe make it to where the bot tries to always remain right behind their patient? Could probably help their navigation a bit.
- A tag to put in player names so you know that they are AFK?
- Perhaps allow everyone to set themselves AFK so they won't need to wait?
SPYderman is offline
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 05-09-2015 , 01:56   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 10 JAN 2015 (v1.1)
Reply With Quote #19

Quote:
Originally Posted by SPYderman View Post
So a list of more things, I'll edit this post with a video or something and more bugs I find soon:

Bugs:
- Bots seem to only get stuck (aside from stairs/ramps) when it makes right turns, or right walls. When it goes left it seems to be perfectly fine, they just strafe to the right a lot.
- After testing this with other people, they are telling me they get a very fast AFK timer when they're respawning so they go straight to medic bot right after they spawn (I've tried changing the timers in the configs and everything). One person has also reported that after this, they'd get even more warning messages.
- As I said before, people getting warned even when they're already AFK when they die.

Suggestions:
- Maybe make it to where the bot tries to always remain right behind their patient? Could probably help their navigation a bit.
- A tag to put in player names so you know that they are AFK?
- Perhaps allow everyone to set themselves AFK so they won't need to wait?

Navigation has been updated, the bot now checks for 3 positions for walls. In front of itself, and 30 degrees from both sides. I still have to make it look to its feet to see if there is anything blocking its' feet and maybe tell it to jump or move around it. There is a noticeable difference now in how it gets around corners.

Hopefully the afkbot_allow_respawn_dead_players helps those servers with issues with respawning dead players into afk medic bot.

I guess there is still more stuff to work on, but the major update to this is the new "wall detection" code I added. Helps the bot "see" that it is stuck in a corner.
__________________
El Diablo War3Evo is offline
El Diablo War3Evo
Veteran Member
Join Date: Jun 2013
Old 05-16-2015 , 11:29   Re: [TF2] AFK PLAYER MEDIC BOT (controls player's client) Updated 16 MAY 2015 (v1.21)
Reply With Quote #20

version 1.21
- Patched Memory leak

[SM] MEMORY LEAK DETECTED IN PLUGIN (file "afk_bot_stand_alone.smx")
[SM] Unloading plugin to free 30716 handles.
[SM] Contact the author(s) of this plugin to correct this error.
--------------------------------------------------------------------------
Type Timer | Count 2
Type TraceRay | Count 30714
-- Approximately 0 bytes of memory are in use by (30716) Handles.
__________________
El Diablo War3Evo 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 06:11.


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