.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Bots move between 2 waypoints - bug (http://forums.bots-united.com/showthread.php?t=3176)

The Storm 10-12-2004 19:11

Bots move between 2 waypoints - bug
 
Well I found this old bug in E[POD]bot and I wont to fix it but I don't know from where come this bug.
If someone can tell me where in the sorce code is the bug maybe I will fix it:).

Pierre-Marie Baty 10-12-2004 22:01

Re: Bots move between 2 waypoints - bug
 
Can you describe that bug better please ? I have little clue what you're talking about. Is it that the bots sometimes go back and forth endlessly between two waypoints ? If it's this one, that's because POD-bot has a maximum delay to reach a waypoint. When this delay is elapsed, the bot cancels his reaching of the current waypoint and wants to go back to the previous one. This bug especially appears while the bot is navigating vents because a player ducking moves slowly compared to a standing player. You have to modify this delay to take in account the reachability between these waypoints.

The Storm 11-12-2004 00:19

Re: Bots move between 2 waypoints - bug
 
Yes PMB this is the bug that you say.
Thanks for the help I now will try to fix it.

Edit : Can you tell me what is the full name of this delay. It will be more easy to find it :).

Whistler 11-12-2004 06:19

Re: Bots move between 2 waypoints - bug
 
well I don't think this is a "bug".
this is on purpose and is to prevent bot from getting stuck

and I think this is the part which you can change:
PHP Code:

inline void GetValidWaypoint (bot_t *pBot)
{
   
// Checks if the last Waypoint the Bot was heading for is still valid

   // If Bot hasn't got a Waypoint we need a new one anyway
   
if (pBot->curr_wpt_index == -1)
   {
      
DeleteSearchNodes (pBot);
      
BotFindWaypoint (pBot);
      
pBot->wpt_origin paths[pBot->curr_wpt_index]->origin;

      
// FIXME
      // Do some error checks if we got a waypoint
   
}

   
// If time to get there expired get new one as well
   
else if ((pBot->f_wpt_timeset 3.0 gpGlobals->time) && FNullEnt (pBot->pBotEnemy))
   {
      
DeleteSearchNodes (pBot);
      
BotFindWaypoint (pBot);
      
pBot->wpt_origin paths[pBot->curr_wpt_index]->origin;
   }


change the 3.0 to 5.0 or higher should fix the vent problem

The Storm 11-12-2004 11:08

Re: Bots move between 2 waypoints - bug
 
Thanks a lot of Whistler.
I now will try this that you say me ;).


EDIT : OK I try but is not working. The bug is still there.
The interesting is that the bots do this damn think only when they use a sniper weapons.

Whistler 11-12-2004 12:23

Re: Bots move between 2 waypoints - bug
 
make sure sniper weapons is zoomed out when bot doesn't have an enemy.
that's because bots don't zoom out the sniper weapons and they move slow.

The Storm 11-12-2004 12:41

Re: Bots move between 2 waypoints - bug
 
Quote:

Originally Posted by Whistler
make sure sniper weapons is zoomed out when bot doesn't have an enemy.
that's because bots don't zoom out the sniper weapons and they move slow.

But yes the bots zoomed out when there is no enemy.
I run the bots in debuging mode and when the bug come the bot is currently in the task TASK_SEEKCOVER and he use servial times the radio command "Team fall back" and continue to move between 2 waypoints.
If this can help.


All times are GMT +2. The time now is 22:43.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.