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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 11-13-2009, 12:49 AM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default Bots SQL

Trying to load bots into a clean DB and getting the following:

If I use the load_bots.sql supplied with PEQ SVN 1038 I get the following error:

Code:
 ERROR 1418 (HY000) at line 4 in file: 'player_tables/botadventuring.sql': This function has none of DETERMINISTIC, NO SQL, or READS SQL DATA in its declaration and binary logging is enabled (you *might* want to use the less safe log_bin_trust_function_creators variable)
if I use the bots.sql file in the EQEMU SVN util/sql/svn folder I get the following error:

Code:
ERROR 1064 (42000) at line 74: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'IF NOT EXISTS `GetMobTypeByName` (mobname VARCHAR(64)) RETURNS CHAR(1)
BEGIN
   ' at line 1
Anyone know I can correct the PEQ one so I can source it in and get my new server rolling?

Thanks!
Reply With Quote
  #2  
Old 11-14-2009, 07:45 PM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

I got it working, had to disable bin-logging in my.conf and restart mysql. Then I needed to change the load_bots.sql file from the PEQ SVN.

It comes like this:

Code:
source player_tables/botadventuring.sql;
source player_tables/botbuffs.sql;
source player_tables/botpetstatepersists.sql;
source player_tables/botinventory.sql;
source player_tables/botgroups.sql;
source player_tables/bots.sql;
However that will not source properly because botadventuring.sql needs the bots table in the eq database. Which does not get generated until bots.sql is ran. So I needed to move the bots.sql line to the top, like so...

Code:
source player_tables/bots.sql;
source player_tables/botadventuring.sql;
source player_tables/botbuffs.sql;
source player_tables/botpetstatepersists.sql;
source player_tables/botinventory.sql;
source player_tables/botgroups.sql;
Then all worked fine.
Reply With Quote
  #3  
Old 11-16-2009, 12:59 PM
Nightlord
Sarnak
 
Join Date: Jun 2005
Posts: 37
Default

Thanks for this cubber ... we were having problems with zone crashing each time we tried to request an adventure. It must have had something to do with the bot code and the LDON adventures and how it may not have sourced properly. When I changed the source order to the one you posted it works fine now. We can request and accept adventures with another player or with a bot now.

Finding and posting fixes like this can save others so many headaches!
Reply With Quote
  #4  
Old 11-16-2009, 03:01 PM
cubber
Discordant
 
Join Date: Apr 2006
Posts: 374
Default

Your welcome Nightlord. I try to make it a habit if I post a question on a form and find the answer myself I post the resolution, instead of leaving a unanswered question lingering around forever.

I am glad it was of use to you, hopefully the file can get fixed in the next svn release of PEQ.
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 10:02 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