BeBot - An Anarchy Online and Age Of Conan chat automaton

General => General discussion => Topic started by: RaZeR on November 27, 2012, 09:49:56 am

Title: Sharing a single database using 2 guild bots
Post by: RaZeR on November 27, 2012, 09:49:56 am
Does anyone foresee any problems in running 2 guild bots off the same database. My guild is in the process of moving to a different server, and I will be running the 2 guild bots on seperate accounts, from separate directories (so they have a different configuration file for the different logins) but using the same database details.

Both guild bots will have the same character name, and the idea is to continue to support players playing on the previous server during the transition.

I don't wish to start-over, or discontinue the old guild bot for quite some time. I've already tested that the guild bot works fine using existing settings on the new server, I just have not tested running 2 at the same time.

BTW: while testing the above I discovered if you have the same character name for your guild bot on a different server but the SAME account, it uses the new character instead of the old one. I tried patching in a "&& dimension=2" to use the old one but ran into problems further in the code.
Title: Re: Sharing a single database using 2 guild bots
Post by: Slacklin on December 01, 2012, 10:02:00 pm
You will have to set a prefix for one or both of the bots. In the MySQL.conf file find this line    // $table_prefix = ""; and remove the slashes then indicate what prefix you want to use (for example ucom_) that way you can distinguish which tables belong to what bot.
SimplePortal 2.3.7 © 2008-2024, SimplePortal