Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bots

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 06-01-2016, 07:53 AM
AsmoTiC
Sarnak
 
Join Date: Aug 2004
Posts: 50
Default Bot Behavior

Was working through Luclin Raid content last night and noticed something odd about the Bot AI during the Shei Vinitras encounter.

For some quick background. The Shei is permarooted in a room with two AE's that continue to go off, regardless if the Shei is up or not. Emu handles this by having a bunch of invisible mobs under the floor in that room who continually cast the AE spells. These mobs are untargetable, even by the GM.

First attempt, was the raid (12 clients + 24 bots) moving into the room to get everyone in position to engage the merchant version of the boss. As soon as we reached the threshold of the room the bots all targeted and started trying to attack one of the invis/untargetable mobs under the floor.

We ^camp spawned all the bots, and logged the characters that had the mob on the extended target window. Logged back in, resummoned the bots, and went for a second try; this time with a different approach.

We engaged the boss from outside the room, tank shot an arrow to start the fight (with Shei as the target). Bots reacted as expected and charged into the room to engage. Tank got setup, and as things settled down we noticed that the bots all went back to trying to fight the invis/untargetable mobs. Assumed after they got hit by the AE.

Tried using ^attack spawned to get all the bots back on the boss. This worked for a few moments, but as soon as the AE hit they all rushed back to the invis mobs.

Anyway, just noticed there was a problem with the AI somewhere:
1. They are somehow targeting a mob that a client (even GM) can't target.
2. When issued a ^attack command they don't ignore everything else and stick to that one declared target, ignoring anything else until that declared target is dead.
Reply With Quote
  #2  
Old 06-01-2016, 06:13 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

You've pretty much answered your question :P


This clears the bots' hatelist when you use ^attack:
https://github.com/EQEmu/Server/blob...mand.cpp#L2534


For the 'untargetable' mobs, there is a flag that makes the client ignore the mob object when set..but, it is still a viable target in the server code.

I would imagine that pets also have this problem unless special consideration was put into their hate code.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #3  
Old 06-01-2016, 06:18 PM
AsmoTiC
Sarnak
 
Join Date: Aug 2004
Posts: 50
Default

Anyway to keep the bots from switching targets after using ^attack?

I don't mind that they are trying to murder those invis mobs, however they keep going back to them as soon as the room AE triggers (in this case the invis mobs cast their spells).
Reply With Quote
  #4  
Old 06-01-2016, 06:21 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Currently, I don't believe so...

I'm pretty sure their current target is based on 'most hate' and it is updated once per ai timer cycle.


That code is a little deeper than just class Bot..it would require a rework of that whole system - probably in more than one class.


I'll ponder for a solution and see what comes up.
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #5  
Old 06-01-2016, 06:35 PM
AsmoTiC
Sarnak
 
Join Date: Aug 2004
Posts: 50
Default

Yea, totally understand if it's an issue that affects NPC's in general, or something bad like that.

Shei is the first event we've done that has some AE not coming off the Boss itself. I want to say as the expansions progress, room wide AE becomes more common. Hopefully there is some way to fix them. Otherwise, we'll just continue to spam ^attack. =)
Reply With Quote
  #6  
Old 08-15-2016, 10:31 AM
Warkral
Sarnak
 
Join Date: May 2011
Posts: 56
Default

Old post I know, but couldn't you just locate the mobs in the zone list and move their spawn locations so they are visible? Seems a better solution then having to rewrite bot code.
Reply With Quote
  #7  
Old 08-15-2016, 06:24 PM
AsmoTiC
Sarnak
 
Join Date: Aug 2004
Posts: 50
Default

Hey Warkral. Problem with moving the NPC's, is they are there to simulate a mechanic for the boss. If you moved them, they would still be invis and invuln. The bots would still try to attack them and get stuck.

If you make them so they can be targetted and killed then the boss mechanic goes away.

We never bothered to go back and try to boss again.
Reply With Quote
  #8  
Old 08-15-2016, 08:01 PM
DanCanDo's Avatar
DanCanDo
Discordant
 
Join Date: May 2016
Location: Above Hell
Posts: 400
Default

You can change the invis 'race' from 240 to 1 or whatever in the db.
Being untargetable is a 'bodytype' of 11.
__________________
Project Insect Completed
Reply With Quote
  #9  
Old 08-15-2016, 09:03 PM
Uleat's Avatar
Uleat
Developer
 
Join Date: Apr 2012
Location: North Carolina
Posts: 2,815
Default

Doesn't change the problem of bots attacking the mob they have the most hate with, though...
__________________
Uleat of Bertoxxulous

Compilin' Dirty
Reply With Quote
  #10  
Old 08-16-2016, 05:57 AM
DanCanDo's Avatar
DanCanDo
Discordant
 
Join Date: May 2016
Location: Above Hell
Posts: 400
Default

Quote:
Originally Posted by Uleat View Post
Doesn't change the problem of bots attacking the mob they have the most hate with, though...
Yes, I was referring to this statement.

Quote:
Originally Posted by AsmoTiC View Post
If you moved them, they would still be invis and invuln.
__________________
Project Insect Completed
Reply With Quote
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 02:52 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3