EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bots (https://www.eqemulator.org/forums/forumdisplay.php?f=676)
-   -   Bots not following after zoning, definitely my database (https://www.eqemulator.org/forums/showthread.php?t=30127)

prickle 01-10-2010 04:06 PM

I'm currently on Rev 1085. It's working fine for me.

Do you still have the new database available?

I have an idea that may get you up and running with a new database and allow you keep your current player characters and bots.

provocating 01-10-2010 04:27 PM

Well if you meant how I had it up and running before, no sure do not. I wiped and loaded Debian 5. I am so friggin close right now I just backed this guy up and waiting to figure out this last glitch.

prickle 01-10-2010 05:13 PM

Well, here's my idea:

1) Create the new database
2) Source in the necessary files for the new database
3) Configure the server to use the new database
4) Log into the game and verify the bots are working properly

If the bots work the way then you should do the following:
.Log into MySQL (phpMyAdmin or commandline or use whatever database management tool you prefer)
.Access the OLD database
.Export the following tables as flat sql files:

Bot SQL file:
botinventory
bots

Character Data SQL file:
character_
character_activities
character_enabledtasks
character_tasks
inventory

.Access the NEW database
.Import the SQL files you exported above into the new database

Assuming everything works properly with a fresh database the above should achieve your end goal.

Hope this helps

provocating 01-10-2010 06:00 PM

Yeah, yeah kind of working. I have a new DB and now they zone, cast, group, etc. Trying to get my guys over as we speak.

provocating 01-10-2010 07:08 PM

Okay I think I have it all. I also moved the keyring and bot inventory over, took a while to get that going.

Other than the inventory, keyrings, etc....anything else need to be moved for the players ?

provocating 01-10-2010 07:59 PM

Just and FYI for whoever does the bots. On Linux SQL since it is case sensitive it appears the bot code goes lower case but the view is in camel case so.

DROP VIEW IF EXISTS `vwbotgroups`;
CREATE VIEW `vwbotgroups` AS
select g.BotGroupId,
g.BotGroupName,
g.BotGroupLeaderBotId,
b.Name as BotGroupLeaderName,
b.BotOwnerCharacterId,
c.name as BotOwnerCharacterName
from botgroup as g
join bots as b on g.BotGroupLeaderBotId = b.BotID
join character_ as c on b.BotOwnerCharacterID = c.id
order by b.BotOwnerCharacterId, g.BotGroupName;


Is what I had to doctor to make the grouping work.

prickle 01-10-2010 10:25 PM

Quote:

Originally Posted by provocating (Post 182632)
Okay I think I have it all. I also moved the keyring and bot inventory over, took a while to get that going.

Other than the inventory, keyrings, etc....anything else need to be moved for the players ?

hmmmm... if you have multiple people that play on the server you'll want to copy over the following tables as well:

account
account_ip
account_rewards

Possibly the "mail" table as well.

provocating 01-10-2010 10:29 PM

What goes in account_rewards ?

prickle 01-11-2010 01:00 AM

i'm not entirely sure to be honest. Mine is empty. If yours is empty too, then there is no need to import that data into the new database.


All times are GMT -4. The time now is 01:07 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.