In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsGame specific SupportUrban Terror (Moderator: MordyT)Multiple B3 - One Database How-To
Pages: [1]   Go Down
  Print  
Author Topic: Multiple B3 - One Database How-To  (Read 822 times) Bookmark and Share
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: URT
Posts: 125
Offline Offline
Owner of BitchNipples Servers (Running B3)
« on: August 06, 2011, 08:40:23 PM »

I am getting another server together and was wanting to have my multiple B3's access a single database rather than one db per B3.

I think it is as simple as setting the db in theb3.xml but I don't know how that would properly seperate stats for a site like gametracker.

Can someone help me with this?

Thank you in advance
Logged

Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #1 on: August 07, 2011, 04:02:30 AM »

the solution is already posted here in this forum...

if you cant find it... here is a little hint: check my postings...  Cheesy
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: URT
Posts: 125
Offline Offline
Owner of BitchNipples Servers (Running B3)
« Reply #2 on: August 07, 2011, 11:47:23 AM »

tried that but your postings revealed nothing as far as the information I am seeking. Your posts consist of information related to CODx and Echelon.

The information I had previously found related ONLY to Urbanterror said that it cannot be done due to each server assigning different clientid's doesn't make since since if you have all servers linked to one db then no matter what server a player would connect to after the first time, it would or should recognize that there is already a clientid and welcome them.

However I was really wanting to know what needed to be done to allow the database to keep stats per server seperated so gametracker could keep track and Ecshelon when I am ever able to get it working

If you do have a post that explains that... would you please link it for me?
Logged
Sr. Member
****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: COD2, COD4, COD5WaW, Homefront
Posts: 173
Offline Offline
« Reply #3 on: August 07, 2011, 01:45:38 PM »

it doesnt matter which game it is you set it up for...
the function principle is the same...

but if you already know that the urt server is assigning DIFFERENT uids for the same player on different servers this would not work in one single database...

but you can try it on your own... i have posted step-by-step guides already which explain the multiple-b3-on-one-single-db method...

if you dont need xlrstats/chatlogs etc you can set it up much easier...
install the first server... get your superadmin level (!iamgod)
then start the next b3 serverinstance just connecting to the same db...
and see if you are recognized on the 2nd server as superadmin too

if yes: everything ok... project successfull
if not: just forget about it and make a 2nd full db variant for the 2nd server
Logged
Full Member
***
OS: Linux
Type: Owner dedicated server(s)
Gameservers: URT
Posts: 125
Offline Offline
Owner of BitchNipples Servers (Running B3)
« Reply #4 on: August 07, 2011, 01:58:47 PM »

... i have posted step-by-step guides already which explain the multiple-b3-on-one-single-db method...

link please?
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2629
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #5 on: August 07, 2011, 02:12:24 PM »

Sorry to interrupt here, but since you wouldn't carry from one server to another (meaning you would have to re-register on each server, due to the URT assigns GUIDs), what would be the point of using one database? Unles you are limited to one DB?

I can tell you the database access will be slower if you have multiple dbs running since they are all writing at the same time.

If you want I can give you step by step, but I am not sure you want this. Let me know...
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 244
Offline Offline
« Reply #6 on: August 08, 2011, 01:44:27 AM »

I had the same issue about month ago. We were migrating and starting second server, so I did some research and case study to determine if one-database solution would work.
Unfortunately single database would make more mess, than good things. Every server assings different GUIDs (they are created according to the server IP), so every client playing on both servers would be duplicated in the database. Finally, echelon and xlrstats would be messed up terribly.

Better solution is to create separate databases. Slightly more work needs to be done, but all in all it's much easier. Then you can have echelon taking care of multiple servers (like here: http://img7.imageshack.us/img7/4276/obraz16x.jpg ), and you can have separate xlrstats for both servers.
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal