|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Development::Bots Forum for bots. |
01-07-2010, 03:10 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Well it will take me a few days to duplicate the problem. I will have to wipe a computer and load it, I do not want to mess with the live server. The new EqEmu needs Debian 5, mine is running Debian 4.
I can tell you this that I do remember. It happened while in an instance. I sent my pet to attack, the pet got really far down and I have no idea what the bots were healing at the time. I had to bail from the instance because fear of dying....
I zoned back into Fay and the bots were out of mana, they were healing the enchanter pet that was at 100%.
I have no problem getting you particulars especially if you can work on it. I really want my server on newer Debian but i need the emulator at 100 percent before I can do that. Give me a few days, maybe this weekend and I will start a VM with it or something.
|
01-09-2010, 09:47 PM
|
Hill Giant
|
|
Join Date: Sep 2009
Posts: 147
|
|
The healing bug was definitely happening in Rev1052. I've not tried it with the most recent Rev's yet, because I've just returned from vacation...
|
01-10-2010, 12:57 AM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Well maybe I can help you out and let you know how it goes. So far so good, Debian 5 loaded....compiling is going okay. Just running all of these patches....I never seem to get it right.
|
01-10-2010, 01:17 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Okay I am back to the pointer error.
[Debug] Member of group 1001 named 'Provocating' had an out of date pointer!!
[Debug] Member of group 1001 named 'Wundred' had an out of date pointer!!
I went back through my notes and I have no idea how I solved it last time.
This is what is working and what is not.
WORKING
Bots have inventory.
All bots converted over from old system.
Bots are now zoning.
NOT WORKING
Bots do not follow after zoning, noticed an out of date pointer error during zone.
Cannot create any new bots, always says the name is in use.
Patches I recently went back through to make sure they are there.
1022_botadventuring.sql
1027_botactives.sql
1030_botzoningsupport.sql
1036_botbuffs.sql
1038_botpetstatepersists.sql
1040_DeprecatedBotRaidsSystems.sql
1077_botgroups.sql still not following
|
01-10-2010, 01:42 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Also I wanted to add I am using r1086 of the source.
I just compiled and added my -DBOTS and bots.o to the makefile / makefile.common and recompiled, all went well but still the bots are not following, cannot create new bots and the out of date pointer error.
|
01-10-2010, 02:08 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Well I thought I had it fixed, false call.....still broken.
|
01-10-2010, 02:44 PM
|
Developer
|
|
Join Date: Feb 2004
Location: UK
Posts: 1,540
|
|
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.
|
01-10-2010, 02:53 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Thank god that part is over. You are a master at your craft.
Anyone have an idea on the bot following thing ? I can call it a day and maybe even be able to squeeze in play time tonight if I can get this fixed.
|
01-10-2010, 02:53 PM
|
Developer
|
|
Join Date: Apr 2003
Posts: 589
|
|
Derision is correct. I just tried that query under the same version of MySQL but with one running on a windows server and the other on a linux server and to my surprise, the query works fine for MySQL running on Windows, but fails on MySQL running on linux. Looks like I get to look at all the queries now to make sure the case sensitivity matches to the actual SQL create statements.
__________________
Read my developer notes at my blog.
Quote:
If it's not on IRC, it ain't l33t!
|
|
01-10-2010, 02:54 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
Yeah it fixed my problem too.
Any idea on the bots following thing ?
|
01-10-2010, 03:24 PM
|
Hill Giant
|
|
Join Date: Sep 2009
Posts: 147
|
|
Quote:
Originally Posted by provocating
Also I wanted to add I am using r1086 of the source.
I just compiled and added my -DBOTS and bots.o to the makefile / makefile.common and recompiled, all went well but still the bots are not following, cannot create new bots and the out of date pointer error.
|
Did you also add -DBOTS to your world/makefile file as well?
Sounds like you've got all the necessary sql patches in, but you're bots aren't cooperating properly.
Here are a couple of things that I had to do to get mine working:
.add -DBOTS to BOTH the world/makefile AND the zone/makefile
.add bots.o to zone/makefile.common
.remove the "-g" and "-O" flags from BOTH the world/makefile and the zone/makefile
hope this helps
|
01-10-2010, 03:26 PM
|
Developer
|
|
Join Date: Apr 2003
Posts: 589
|
|
I checked all the other bot queries and this one case appears to be the only query that needs to be changed to be case sensitive to its database object. I'll commit this fix later when I am ready to commit some other code I am working on now.
__________________
Read my developer notes at my blog.
Quote:
If it's not on IRC, it ain't l33t!
|
|
01-10-2010, 03:38 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
World makefile section
Code:
DFLAGS=-DDEBUG=5 -DBOTS -DEQDEBUG=5 -DSHAREMEM -DCATCH_CRASH -DNO_PIDLOG -DFIELD_ITEMS -DIRC -Di386 -DAPP_OPCODE_SIZE=2
Zone makefile section
Code:
DFLAGS=-DEQDEBUG=5 -DBOTS -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386
#
Zone makefile.common - Note I think you mean bot.o, not bots.o
Code:
../common/guild_base.o bot.o \^M
On this part
.remove the "-g" and "-O" flags from BOTH the world/makefile and the zone/makefile
I had never done that before, but I tried it and it did not make any difference. The bots still hang around the entrance of the zone like a bunch of State workers.
|
01-10-2010, 03:58 PM
|
Hill Giant
|
|
Join Date: Sep 2009
Posts: 147
|
|
ok... hmmm... a lot has changed in the sources since this thread was originally posted...
Let me see if I have everything straight...
DOES WORK:
-Rev1052 Windows Binaries W/ NEW database
-Rev1086 Linux SVN compile W/ NEW database
DOES NOT WORK:
-Rev1052 Windows Binaries W/ OLD database that's been patched
-Rev 1086 Linux SVN compile W/ OLD database that's been patched
Is this correct?
|
01-10-2010, 04:00 PM
|
|
Demi-God
|
|
Join Date: Nov 2007
Posts: 2,175
|
|
That was too long ago for me to remember. I am pretty confident though this is a database problem. The binaries seem to not matter on this issue.
What are you patched up to, what revision ?
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -4. The time now is 12:27 PM.
|
|
|
|
|
|
|
|
|
|
|
|
|