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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-20-2009, 12:16 PM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default New Bot Group Based Raid System

I will soon remove the BotRaid system from the server code and many of the existing "#bot group order" commands in favor of the logic I just committed this morning that is essentially group based raids for bots as EQ raids were before the raid system was added to the game. Please see this link for details:

http://code.google.com/p/projecteqem.../detail?r=1032

This code is a first draft. Please report any bugs with this system ONLY to this thread.

It is my intent that after this system is stabilized, I will then turn my attention to integrating bots with the server's standard raid interface that characters now use while also keeping this new group based system in place.

Enjoy!
__________________
Read my developer notes at my blog.

Quote:
If it's not on IRC, it ain't l33t!
Reply With Quote
  #2  
Old 10-21-2009, 08:49 PM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

I assume there are no problems with this new code? Cool!
__________________
Read my developer notes at my blog.

Quote:
If it's not on IRC, it ain't l33t!
Reply With Quote
  #3  
Old 10-22-2009, 09:15 AM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

I haven't had a chance to test out the raiding aspect with the bots and the new code. However, the one part of the new bots code that I was able to test was with zoning. On my system (Ubuntu Linux), the bots go "stupid" after zoning. They forget to follow you, and don't seem to behave normally. The only way to make them behave properly is to camp them and then respawn them after zoning.

Dunno if this is just me that's seeing this because I haven't seen anyone else mention it yet.
Reply With Quote
  #4  
Old 10-22-2009, 09:42 AM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

What rev were you using when this happened? This sounds like a bug I fixed in rev 1033. If you are unsure, I'd recommend getting the latest code out of the repo today and try again.
__________________
Read my developer notes at my blog.

Quote:
If it's not on IRC, it ain't l33t!
Reply With Quote
  #5  
Old 10-22-2009, 09:56 AM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Two midterms this week and some more next; I'll test this ASAP, sorry I've let my priorities get skewed temporarily =P
__________________
Yo mama so fat, if she moved past a black hole at high velocity it'd create a closed timelike curve.
Reply With Quote
  #6  
Old 10-22-2009, 02:20 PM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

That was happening with rev 1035.

I updated to rev 1036 last night, but didn't have time to personally test it out.

I'll be able to test rev 1036 (or whatever the latest is when I get home) tonight though.
Reply With Quote
  #7  
Old 10-22-2009, 04:04 PM
SCROFT
Fire Beetle
 
Join Date: Jul 2006
Posts: 13
Default

Quote:
Originally Posted by prickle View Post
That was happening with rev 1035.

I updated to rev 1036 last night, but didn't have time to personally test it out.

I'll be able to test rev 1036 (or whatever the latest is when I get home) tonight though.
I play on prickles server and just tested this... they still will not follow after zoning.

I logged in... spawned in a cleric and verified he followed me to the zone... and zoned to another zone... after zoning the cleric was there and continued to buff me but would not follow me... i then spawned in a enchanter... this enchanter started buffing but also would not follow me.

So i figure when i zone somehow the fact that i am the group leader is lost?

Why they will buff me... but not follow me?

My guess anyways hope this helps narrow down the bug.

rev1036 BTW
Reply With Quote
  #8  
Old 10-22-2009, 05:50 PM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

in case it helps:

$ gcc --version
gcc (Ubuntu 4.3.3-5ubuntu4) 4.3.3
Copyright (C) 2008 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Reply With Quote
  #9  
Old 10-22-2009, 06:02 PM
leslamarch
Discordant
 
Join Date: Sep 2006
Location: Green Bay, WI
Posts: 436
Default

Just tested on fresh PEQ DB with REV 1036 and I'm not seeing this problem at all, Tested on my Home windows environment. I zone to about 10 different zones and bots all responded great.
Reply With Quote
  #10  
Old 10-22-2009, 06:18 PM
SCROFT
Fire Beetle
 
Join Date: Jul 2006
Posts: 13
Default

Quote:
Originally Posted by leslamarch View Post
Just tested on fresh PEQ DB with REV 1036 and I'm not seeing this problem at all, Tested on my Home windows environment. I zone to about 10 different zones and bots all responded great.
Thanks for the follow up... we will check over our setup and see if we missed something.
Reply With Quote
  #11  
Old 10-22-2009, 06:46 PM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

The code responsible for making sure the bot responds to you after it zones with you is this one little code block:

Code:
if(g->GetLeader())
								activeBot->SetFollowID(g->GetLeader()->GetID());
If the bot doesn't follow you or respond to you after it zones with you, then carefully review your group_id and group_leaders tables and make sure the records match up and that you have all the required SQL updates for these tables.

I hope this helps you.
__________________
Read my developer notes at my blog.

Quote:
If it's not on IRC, it ain't l33t!
Reply With Quote
  #12  
Old 10-23-2009, 12:28 AM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

ok... I've had some time with them now... (still haven't had a chance to check the raiding aspect though)

I did the following after I got home from work:

Redid DB with PEQ DB Rev1008:
-sourced system-drop.sql
-sourced peqdb_Rev1008.sql
-sourced 1022, 1027, 1030, and 1036 sql files

Recompiled SVN Rev1036:
-verified the strings of code you indicated above are in the bot.cpp file
-added -DBOTS to the zone/makefile file
-added bot.o botRaids.o to the zone/makefile.common file
-changed march=i686 to march=athlon64 in all makefiles

copied binaries to server directory

launched server

Testing bots:
-summon wizard bot
-check group_id and group_leader tables: updates when group forms
-verified bot follows me around the zone
-issued #bot gate pok command
-bot casts teleport
-group zoned into PoK bot no longer follows me around the zone
-issue #bot gate cobalt command
-bot casts teleport
-group zoned to cobalt scar
-bot still does not follow

-camp bot
-spawn bot
-recheck group_id and group_leader tables IDs correspond with each other
-bot follows around zone

So, the bot responds to buff and travel commands after zoning, but they refuse to follow me around the zone. Trying to use #bot group order follow to make them follow me does not work. They seem to respond to most bot orders (e.g. bot group summon, etc) but they refuse to follow me after zoning.

The ~only~ thing that makes them follow me around a zone after zoning is making them camp and then respawning them.
Reply With Quote
  #13  
Old 10-23-2009, 12:36 AM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

That is consistent with what I posted about the bot not getting a Group Leader and so its follow id doesnt get set. I wish I knew what you might not have done. I'll look over more about what you posted in detail later tomorrow and think on it some. Maybe I can figure out what you may have missed. The fact that I have the bots running around with me zone after zone and that another experienced community member such as laslamarch has this running as expected, makes me think there is a config error here that is easy to do.
__________________
Read my developer notes at my blog.

Quote:
If it's not on IRC, it ain't l33t!
Reply With Quote
  #14  
Old 10-23-2009, 12:39 AM
WildcardX
Developer
 
Join Date: Apr 2003
Posts: 589
Default

Can you post the SQL for your group_id and group_leader tables DDL? I dont know if your savy enough to do so, but if you are that might help shed some light on this situation.
__________________
Read my developer notes at my blog.

Quote:
If it's not on IRC, it ain't l33t!
Reply With Quote
  #15  
Old 10-23-2009, 01:22 AM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

I'm playing with a full bot party right now this is what's in the two tables right now:

mysql> select * from group_id;
+---------+--------+-------------+
| groupid | charid | name |
+---------+--------+-------------+
| 109002 | 1 | Nunyscleric |
| 109002 | 6 | Nunyas |
| 109002 | 11 | Pusher |
| 109002 | 17 | Tanku |
| 109002 | 27 | Rogue |
| 109002 | 32 | Punchy |
+---------+--------+-------------+

mysql> select * from group_leaders;
+--------+------------+---------+--------------+
| gid | leadername | marknpc | leadershipaa |
+--------+------------+---------+--------------+
| 109002 | Nunyas | | |
+--------+------------+---------+--------------+
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 11:29 AM.


 

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