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 ForumsInstallation Support (Moderator: MordyT)Multiple B3 Installs From Same DB?
Pages: [1]   Go Down
  Print  
Author Topic: Multiple B3 Installs From Same DB?  (Read 531 times) Bookmark and Share
Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 cod5
Posts: 10
Offline Offline
« on: August 29, 2010, 04:50:55 AM »

So at present, I use (Win Server 2003) run.py and it takes it's info from b3.xml and loads config accordingly.

It would therefore be possible to create extra .xml docs containing info from my other servers for example b3_2.xml, b3_3.xml etc etc and open up another cmd window for each instance (he says!). But how could I replicate/change run.py so that it recognises each .xml and load from there?

Cheers! Smiley
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3485
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: August 29, 2010, 05:05:41 AM »

Hi,

you can specify a different config file. See Phase 3: Running B3 from the documentation
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 cod5
Posts: 10
Offline Offline
« Reply #2 on: August 29, 2010, 05:32:14 AM »

Hey! Thanks, something occurred Cheesy

Code:
Starting www.BigBrotherBot.com (b3) v1.3.3 [nt] (Daniel)

Using config file: C:\Python26\Lib\site-packages\b3\conf\b3_2.xml
Using external plugin directory: C:\Python26\lib\site-packages\b3\extplugins
Traceback (most recent call last):
  File "C:\Python26\Lib\site-packages\b3\run.py", line 152, in main
    run(config=options.config, nosetup=options.nosetup)
  File "C:\Python26\Lib\site-packages\b3\run.py", line 116, in run
    b3.start(config, nosetup)
  File "C:\Python26\lib\site-packages\b3\__init__.py", line 154, in start
    console = parser(conf)
  File "C:\Python26\lib\site-packages\b3\parser.py", line 204, in __init__
    self.log = b3.output.getInstance(logfile, self.config.getint('b3', 'log_leve
l'), log2console)
  File "C:\Python26\lib\site-packages\b3\output.py", line 131, in getInstance
    handler.doRollover()
  File "C:\Python26\lib\logging\handlers.py", line 134, in doRollover
    os.rename(self.baseFilename, dfn)
WindowsError: [Error 32] The process cannot access the file because it is being
used by another process
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Python26\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "C:\Python26\lib\logging\__init__.py", line 1516, in shutdown
    h.flush()
  File "C:\Python26\lib\logging\__init__.py", line 762, in flush
    self.stream.flush()
ValueError: I/O operation on closed file
Error in sys.exitfunc:
Traceback (most recent call last):
  File "C:\Python26\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "C:\Python26\lib\logging\__init__.py", line 1516, in shutdown
    h.flush()
  File "C:\Python26\lib\logging\__init__.py", line 762, in flush
    self.stream.flush()
ValueError: I/O operation on closed file

C:\Python26\Lib\site-packages\b3>

Everything is identical, I only had to change the port as the server is on the same IP.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3485
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: August 29, 2010, 05:51:48 AM »

there should be more to modify than just the server port.

what about the rcon password ?
what about the game server log file ?
what about the b3 bot  log file ?
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 cod5
Posts: 10
Offline Offline
« Reply #4 on: August 29, 2010, 07:18:45 AM »

OK, so I had to change log file name to b3_2.log but yes, only the port is different as servers reside on same box with same rcon password Smiley

Now, on the face of things, bot is running on both servers, however, I can now only enter commands on second server ... I jumped onto first server and indeed, console messages are coming through but as I said, I cannot enter commands.

I note that there is only one instance of games_mp.log ... there must be somewhere I have to tell the bot to create a new log with different name? I cannot see where, doesn't appear to be the facility in the new b3_2.xml file :\
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3485
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #5 on: August 29, 2010, 09:03:32 AM »

as you have 2 game servers, you must have 2 different game server log files. You cannot have two B3 config using the same server log file, this would just make troubles
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 cod5
Posts: 10
Offline Offline
« Reply #6 on: August 29, 2010, 12:36:06 PM »

This is correct, I already said this earlier Smiley

Now how would one tell B3 to create a games_mp.log file of a different name? Thx.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3485
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #7 on: August 29, 2010, 12:38:52 PM »

well B3 does not create games_mp.log, your game server does. B3 just reads it
Logged

Jr. Member
**
OS: Windows
Type: Owner dedicated server(s)
Gameservers: cod4 cod5
Posts: 10
Offline Offline
« Reply #8 on: August 29, 2010, 02:10:55 PM »

Never mind, I'm asking elsewhere. Asked the same question and it was answered simultaneously and courteously by 3 different devs. 
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal