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 ForumsGeneral Usage Support (Moderator: MordyT)status.xml only get updated when b3 (re)start
Pages: [1]   Go Down
  Print  
Author Topic: status.xml only get updated when b3 (re)start  (Read 204 times) Bookmark and Share
Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: oa081
Posts: 4
Offline Offline
« on: January 18, 2012, 12:56:39 AM »

Dear All,

New to B3 and thanks for this great tools.

Recently have B3 setup on Ubuntu 10.4 LTS x64. Stauts.xml to be set relocated in /var/www other than default “~/” but oddly only get updated when the B3 (re)start. Be more precisely every 30s interval only “B3Status Time” in the status.xml get refreshed. Beneath please find my status.xml (only the highlighted B3Status Time is updated every 30s interval while all the others get no updates since last restart of B3).

**************************************************************************
eric@game:/var/www$ cat status.xml
<?xml version="1.0" encoding="UTF-8"?>
<B3Status Time="Wed Jan 18 16:50:00 2012">
        <Game CaptureLimit="" FragLimit="" Map="aggressor" MapTime="2316" Name="oa081" RoundTime="2316" Rounds="1" TimeLimit="" Type="ctf">
                <Data Name="modName" Value="baseoa"/>
                <Data Name="console" Value="&lt;b3.parsers.oa081.Oa081Parser object at 0x2097210&gt;"/>
                <Data Name="fs_basepath" Value="/home/eric/openarena-0.8.1"/>
                <Data Name="fs_homepath" Value="/home/eric/.openarena"/>
                <Data Name="gameName" Value="oa081"/>
                <Data Name="fs_game" Value="baseoa"/>
                <Data Name="gameType" Value="ctf"/>
                <Data Name="_roundTimeStart" Value="1326874284"/>
                <Data Name="_mapTimeStart" Value="1326874284"/>
                <Data Name="rounds" Value="1"/>
                <Data Name="_mapName" Value="aggressor"/>
        </Game>
        <Clients Total="0"/>
</B3Status>
*****************************************************************************

But obviously the b3.log marks down every single change as follows:

*****************************************************************************

120118 16:47:00 VERBOSE "RCON sending (127.0.0.1:27960) 'status'"
120118 16:47:00 VERBOS2 "RCON: Received 'map: aggressor\\nnum score ping name            lastmsg address               qport rate\\n--- ---
-- ---- --------------- ------- --------------------- ----- -----\\n  1   112    0 Beret^7                80 bot                       0 16
384\\n  2   115    0 Sergei^7              120 bot                   50293 16384\\n  3   108    0 Penguin^7             120 bot           
           0 16384\\n  4     0    6 eric^7                  0 192.168.11.236         7819 25000'"
120118 16:47:00 VERBOSE 'StatusPlugin: Building XML status'
120118 16:47:00 DEBUG   'StatusPlugin: Writing XML status to /var/www/status.xml'
120118 16:47:30 VERBOSE "RCON sending (127.0.0.1:27960) 'status'"
120118 16:47:30 VERBOS2 "RCON: Received 'map: aggressor\\nnum score ping name            lastmsg address               qport rate\\n--- ---
-- ---- --------------- ------- --------------------- ----- -----\\n  1   112    0 Beret^7                80 bot                       0 16
384\\n  2   115    0 Sergei^7              120 bot                   50293 16384\\n  3   111    0 Penguin^7             120 bot           
           0 16384\\n  4     0    6 eric^7                  0 192.168.11.236         7819 25000'"
120118 16:48:00 VERBOSE "RCON sending (127.0.0.1:27960) 'status'"
120118 16:48:00 VERBOS2 "RCON: Received 'map: aggressor\\nnum score ping name            lastmsg address               qport rate\\n--- ---
-- ---- --------------- ------- --------------------- ----- -----\\n  1   113    0 Beret^7                80 bot                       0 16
384\\n  2   116    0 Sergei^7              120 bot                   50293 16384\\n  3   113    0 Penguin^7             120 bot           
           0 16384\\n  4     0    6 eric^7                  0 192.168.11.236         7819 25000'"
120118 16:48:00 VERBOSE 'StatusPlugin: Building XML status'
120118 16:48:00 VERBOSE "RCON sending (127.0.0.1:27960) 'say ^0(^2b3^0)^7: ^3Rule #1: No racism of any kind'"
120118 16:48:00 DEBUG   'StatusPlugin: Writing XML status to /var/www/status.xml'
120118 16:48:01 VERBOS2 "RCON: Received ''"
120118 16:48:30 VERBOSE "RCON sending (127.0.0.1:27960) 'status'"
120118 16:48:30 VERBOS2 "RCON: Received 'map: aggressor\\nnum score ping name            lastmsg address               qport rate\\n--- ---
-- ---- --------------- ------- --------------------- ----- -----\\n  1   115    0 Beret^7                80 bot                       0 16
384\\n  2   117    0 Sergei^7              120 bot                   50293 16384\\n  3   113    0 Penguin^7             120 bot           
           0 16384\\n  4     0    8 eric^7                  0 192.168.11.236         7819 25000'"
*****************************************************************************

Any clue?

Many thanks.

Eric
Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #1 on: January 18, 2012, 06:03:34 AM »

Can you post the following:
status.py

Then set log level down to 8, and restart the bot. After several minutes, stop the bot and post the b3.log as well
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
Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: oa081
Posts: 4
Offline Offline
« Reply #2 on: January 18, 2012, 07:53:27 AM »

Hi MordyT,

Thanks for help.

Here is my status.py which I don't touch one single word from b3-1.7.1-py2.6.egg.

http://pastebin.com/V3FqypXJ

Here is my level-8 b3.log.

http://pastebin.com/2z2iNk57

Thanks

Eric
Logged
Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #3 on: January 18, 2012, 09:16:52 AM »

Hi,
I looked over the logs and all, but did not find anything that would suggest why this is happening. Stick around though, I am sure a dev will be able to help better.

Has anything in B3 recently changed that caused this? Or is this out of the blue?
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
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #4 on: January 18, 2012, 09:45:40 AM »

Is this the correct location for the game log, and is it getting updated correctly?

'Starting bot reading file /home/b3/games_mp.log'

Logged
Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: oa081
Posts: 4
Offline Offline
« Reply #5 on: January 18, 2012, 07:04:59 PM »

Hi,

my games_mp.log with mask 644 located in /home/b3/ set by /home/b3/conf/b3.xml never get updated since b3 start. Is this relevant?

BTW where is supposed to be correct location of games_mp.log? I use /usr/local/bin/b3_run -s to generate the b3.xml.

Many thanks.

Eric 
Logged
Dev. Team
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: COD2,COD4,COD5
Posts: 1098
Offline Offline
« Reply #6 on: January 18, 2012, 07:11:44 PM »

The game log is created by your game not by b3, so you need to find out where it is and then change to xml entry to point to it.

That is why nothing is getting updated in  status.xml, and also none of the commands will work.
Logged
Newbie
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: oa081
Posts: 4
Offline Offline
« Reply #7 on: January 19, 2012, 07:17:23 AM »

Dear All,

Many thanks, Cheesy, it works (so called "games_mp.log" in b3.xml shall be replaced with real game log of specific game server). I may have to spend more time to read the manual first.

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


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal