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

Development::Bots Forum for bots.

Reply
 
Thread Tools Display Modes
  #1  
Old 01-10-2010, 01:24 AM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default Unable to create new bots

I've noticed that I am unable to create new bots with Rev 1085. The following are the steps that I take to reproduce the bug:

1) Issue the bot create command:
#bot create <random bot name> <random class> <random race> <random sex>

2) Observe "The name <bot name> is already being used. Please choose a different name."

Names I've tried:

CHShaman
RotoTank
Blah
Blahb
TestingBot
Test

When I first encountered this error, I searched my database for the names I was attempting to use (CHShaman & RotoTank) and neither of them were to be found in any form in the database. That's when i tried other names that were definitely not in use.

After I compiled Rev 1085, I sourced in 1057_titles.sql (upgrading from Rev 1052), 1077_botgroups.sql, and bots.sql.

After looking at the bots.cpp file, I checked my database and verified the following tables exist:

vwBotCharacterMobs
botgroup
botgroupmembers
vwBotGroups
botbuffs
botpets
botpetinventory
botpetbuffs
botguildmembers
botinventory
bots

It's possible I've done something wrong again... but from looking at my database it seems everything is the way it needs to be. So, any assistance in helping me get this fixed will be greatly appreciated.
Reply With Quote
  #2  
Old 01-10-2010, 01:22 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Same exact problem for me, in addition they do not follow after zoning.

I am using last nights CVS 1052 and the newest database, as far as I know I am patched up completely.
Reply With Quote
  #3  
Old 01-10-2010, 01:25 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

And I am looking, this could be the problem with the bot naming error.

http://code.google.com/p/projecteqem.../detail?r=1083
Reply With Quote
  #4  
Old 01-10-2010, 02:54 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

A fix mentioned in my thread.

The issue with getting the 'Bot name is already in use' message may be a case sensitivity thing on Linux.

The query that is being used to check if the name is available is:
Code:

SELECT COUNT(id) FROM vwbotcharactermobs WHERE name LIKE '%s'

But the view name is actually mixed case:
Code:

CREATE VIEW `vwBotCharacterMobs` AS ...

You could try changing the query on line 928 in bot.cpp to:
Code:

SELECT COUNT(id) FROM vwBotCharacterMobs WHERE name LIKE '%s'

and recompiling.
Reply With Quote
Reply With Quote
  #5  
Old 01-10-2010, 03:13 PM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

yeah, I saw that bit in the bot.cpp file, but didn't bother with editing and recompiling that when I first encountered the error. I'll try it out and report my results...


I'm not sure what to tell you about your bot following issue, mine seem to be functioning fine with 1085. So far, the only issue I've encountered has been the #bot create thing.
Reply With Quote
  #6  
Old 01-10-2010, 03:15 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I am almost 100 percent sure something is borked in my database. I need to know where to look though.
Reply With Quote
  #7  
Old 01-10-2010, 03:54 PM
prickle
Hill Giant
 
Join Date: Sep 2009
Posts: 147
Default

yup.... changing that one line definitely fixed the bot create bug for me.
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 01:47 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