Raised This Month: $ Target: $400
 0% 

[L4D2] Survivor Bot AI Improver


Post New Thread Reply   
 
Thread Tools Display Modes
kooper990
Member
Join Date: Jan 2021
Old 07-17-2023 , 23:19   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #71

What Silver said, I am baffled and sadden by this. This plugin is REALLY the best one I use so far, aside from the Bot Improver on the Workshop.
kooper990 is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 07-18-2023 , 08:04   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #72

GitHub: https://github.com/Emana202/L4D2-Sur...ot-AI-Improver

ReadMe states: Project is currently (mostly) unmaintained

FWIW, I occasionally get exceptions, but I do not get any crashes or stutters. It is the best bot AI improvement plugin I have found for dedicated servers and I will continue to use it. Of course, I would like to see performance optimizations since it uses a lot of system resources.
Mystik Spiral is online now
Zuriii
New Member
Join Date: Jun 2023
Old 07-18-2023 , 11:17   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #73

Quote:
Originally Posted by Mystik Spiral View Post
GitHub: https://github.com/Emana202/L4D2-Sur...ot-AI-Improver

ReadMe states: Project is currently (mostly) unmaintained

FWIW, I occasionally get exceptions, but I do not get any crashes or stutters. It is the best bot AI improvement plugin I have found for dedicated servers and I will continue to use it. Of course, I would like to see performance optimizations since it uses a lot of system resources.
Hopefully the author updates it eventually or someone who knows how to code. This plugin is really nice and one of the best.
Zuriii is offline
LN5005
Member
Join Date: Oct 2022
Location: Mad Universe
Old 07-28-2023 , 20:14   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #74

Seems like that this plugin is not compatible with ABM.
LN5005 is offline
kooper990
Member
Join Date: Jan 2021
Old 07-28-2023 , 21:40   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #75

What gives it away?
kooper990 is offline
z282846139
Member
Join Date: Aug 2018
Old 08-02-2023 , 11:52   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #76

Report a bug:
When player is down with a melee in hand, engine would replace player's melee into pistol. At the same time, if a bot without melee in hand near by player, and melees in survivor team is less than 'l4d2_improvedbots_melee_max_team', here bug comes that the bot will take the incapped player's melee, after player revived, he will lose his second weapon with nothing in second weapon slot.
z282846139 is offline
Kerouha
Member
Join Date: Jul 2015
Location: Russian Federation
Old 08-14-2023 , 05:32   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #77

Did some tinkering with the code, and I think the reason for massive lag spikes is the way how this plugin calculates distance to stuff

In a lot of places, there is a code that looks like this:
PHP Code:
    for (; LBI_GetNavAreaParent(iArea); iArea LBI_GetNavAreaParent(iArea))
    {
        
LBI_GetClosestPointOnNavArea(LBI_GetNavAreaParent(iArea), fGoalPosfParentCenter);
        
LBI_GetClosestPointOnNavArea(iAreafGoalPosfClosePoint);
        
fDistance += GetVectorDistance(fClosePointfParentCenterbSquared);
    } 
I'm not sure how one can calculate distance just by picking a "parent" navigation area over and over. Maybe it's just me; after all, Source SDK has the similar code. Point is, sometimes it goes runaway, and gives irrelevant high value.

Using L4D2_NavAreaBuildPath() without distance limit seems to cause lag too; especially if target is unreachable or nav_blocked.

Code (algorithm?) needs to be changed: whenever (wherever) you calculate distance to an entity, and result is a failure, mark the entity as un-pathable and don't try to calculate path to or from it ever again, at least for a duration of this frame. Don't kill the server by trying to reach the same stuck/out of bounds zombie for each survivor bot etc.

I attempted to do something like this in a fork of mine, but there is just too many places in code where "distance to object" is called/measured ever so slightly different, and i'm not finding and fixing all this sh

Feel free to check out the fork on github. Compile the sp file.
Quote:
Originally Posted by z282846139 View Post
bot will take the incapped player's melee
Fixed that behavior as well.

It'd be great if someone knowledgeable (@silvers?) looked into changes and gave advice where possible. Kinda new to this plugin thing.

Last edited by Kerouha; 08-14-2023 at 07:46. Reason: grammar
Kerouha is offline
Kerouha
Member
Join Date: Jul 2015
Location: Russian Federation
Old 08-14-2023 , 08:34   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #78

Quote:
Originally Posted by aiyoaiui View Post
cant complie
I think you have to comment similarly named symbol/enum in Dhooks .inc files (or wherever it is present) for it to compile.

That's the issue with "VScript" plugin, guess someone has to let the author know that they use same names in their code.

I'll put compiled file on github when I sort some stuff out with the code.

Last edited by Kerouha; 08-14-2023 at 08:42. Reason: add info
Kerouha is offline
Mystik Spiral
Senior Member
Join Date: Oct 2020
Location: Orlando, FL
Old 08-14-2023 , 15:20   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #79

I do not know what plugin put that vscript.inc file there, but I do not have it and can compile this plugin just fine, using either the source posted in the original post or pulling it from the Emana202 github.

Nevermind, I see that was added in the modified version by Kerouha.
__________________

Last edited by Mystik Spiral; 08-17-2023 at 17:14.
Mystik Spiral is online now
Gento_aki
New Member
Join Date: Apr 2023
Location: indonesia, bali, denpasa
Old 08-17-2023 , 09:31   Re: [L4D2] Survivor Bot AI Improver
Reply With Quote #80

Can you add some features to make survivor bots able to avoid from special infected?
Gento_aki 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 21:46.


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