You are here: Big Brother Bot ForumSupport ForumsGame specific SupportOpen Arena (Moderator: MordyT)OpenArena and Q3A support
Pages: 1 ... 4 5 [6]   Go Down
  Print  
Author Topic: OpenArena and Q3A support  (Read 5876 times) Bookmark and Share
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #75 on: August 27, 2010, 12:31:31 PM »

new version on my side : v0.7.6

Code:
27/08/2010 - 0.7.6 - GrosBedo
* fixed findnextmap underscore bug (maps and vstr cvars with an underscore are now correctly parsed)

Simple but very useful.

[attachment deleted by maintenance]
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #76 on: August 27, 2010, 04:07:12 PM »

this change has been push to my github repo under version 0.8.1 (parser version, not OA version. It's a bit confusing)

Be careful, you are not using the latest version of the parser and are missing a few fixes.
Latest version can be downloaded here
OA parser history can be reviewed here
OA parser changes can be followed with your favorite news reader at http://github.com/courgette/big-brother-bot/commits/master.atom

Also, about the nextmap underscore fix, shouldn't line 654 also be changed ?
« Last Edit: August 27, 2010, 04:09:06 PM by Courgette » Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #77 on: August 28, 2010, 02:48:48 AM »

this change has been push to my github repo under version 0.8.1 (parser version, not OA version. It's a bit confusing)

Be careful, you are not using the latest version of the parser and are missing a few fixes.
Latest version can be downloaded here
OA parser history can be reviewed here
OA parser changes can be followed with your favorite news reader at http://github.com/courgette/big-brother-bot/commits/master.atom

Arg I just can't get used to github, I everytime lost myself. Thank's for the links ! And nice changes BTW Wink Maybe awards could now be included in the stats plugin, but I don't know enough how other games would react.

Also, about the nextmap underscore fix, shouldn't line 654 also be changed ?

Yes, indeed ! Nice catch. Could you please add it in the last commit ?
Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #78 on: August 28, 2010, 05:06:48 AM »

There is a bug with your changes :

Code:
100828 14:54:48 CONSOLE 8:36 Award: 10 1: Karamel is a fake gained the EXCELLENT
 award!
100828 14:54:48 DEBUG   XLR--------> line matched ^(?P<action>[a-z]+):\s*(?P<dat
a>(?P<cid>[0-9]+)\s(?P<text>.*))$
100828 14:54:48 ERROR   could not parse line no such group: [('/home/openarena/b
3/b3/parser.py', 695, 'run', 'self.parseLine(line)'), ('/home/openarena/b3/b3/pa
rsers/q3a.py', 162, 'parseLine', 'event = func(action, data, match)'), ('/home/o
penarena/b3/b3/parsers/oa081.py', 492, 'OnAward', "action_type = 'award_%s' % ma
tch.group('awardname')")]

Not critical though.

------------------------------

Another thing that annoy me more : when I relaunch the bot, some players that are already connected to the server gets ignored, until they reconnect. Even if there is a map change. That's very weird, and I don't know where it could come from. It just does the old 'Nonetype has no authed method'. Anyway it's rare now.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #79 on: August 28, 2010, 06:58:27 AM »

I did the underscore fix, I think I've fixed the Award stuff as well.
About people not being recognized at bot start, need logs
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #80 on: August 28, 2010, 09:32:03 AM »

I did the underscore fix, I think I've fixed the Award stuff as well.
Ok, Ill test that Smiley
About people not being recognized at bot start, need logs

That's the problem : beside this error, there's no reason why the client does not get recognized, I can't see nothing in the log, and it's far too long since it's from a real game server...

I will try to post one excerpt as soon as I find a good one.
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #81 on: September 03, 2010, 05:55:25 AM »

Do you have news about the /rcon tell support ?
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #82 on: September 03, 2010, 11:14:30 PM »

Do you have news about the /rcon tell support ?

No, but I think I will submit this directly to the ioquake3 tracker since it's a bug affecting all ioq3-based games.
Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #83 on: September 03, 2010, 11:40:09 PM »

update v0.8.4 :

Code:
04/09/2010 - 0.8.4 - GrosBedo
* fix issue with CTF flag capture events

This fixes these 2 issues :
Code:
100902 12:13:55 CONSOLE 0:42 CTF: 2 2 0: ^4^3G^7argle^1*^1 got the BLUE flag!
100902 12:13:55 DEBUG XLR--------> line matched ^(?P<action>[a-z]+):\s*(?P<data>(?P<acid>[0-9]+)\s(?P<cid>[0-9]+)\s(?P<aweap>[0-9]+):\s*(?P<text>.*))$
100902 12:13:55 ERROR could not parse line no such group: [('/home/openarena/b3/b3/parser.py', 697, 'run', 'self.parseLine(line)'), ('/home/openarena/b3/b3/parsers/q3a.py', 162, 'parseLine', 'event = func(action, data, match)'), ('/home/openarena/b3/b3/parsers/oa081.py', 475, 'OnCtf', "flagteam = self.getTeam(match.group('fid'))")]

100902 12:14:17 CONSOLE 4:41 CTF: 3 1 0: ^4*^1O^7ptimusPrim^1e^4* got the RED flag!
100902 12:14:17 DEBUG XLR--------> line matched ^(?P<action>[a-z]+):\s*(?P<data>(?P<acid>[0-9]+)\s(?P<cid>[0-9]+)\s(?P<aweap>[0-9]+):\s*(?P<text>.*))$
100902 12:14:17 VERBOSE RCON sending (127.0.0.1:27960) dumpuser 1
100902 12:14:18 DEBUG dumpuser 1 returned : Player 1 is not on the server
100902 12:14:18 ERROR could not parse line no such group: [('/home/openarena/b3/b3/parser.py', 697, 'run', 'self.parseLine(line)'), ('/home/openarena/b3/b3/parsers/q3a.py', 162, 'parseLine', 'event = func(action, data, match)'), ('/home/openarena/b3/b3/parsers/oa081.py', 475, 'OnCtf', "flagteam = self.getTeam(match.group('fid'))")]

This maybe fixes a bigger bug that made the bot not recognizing the players chat for a while, but Im not sure this is the cause, Ive lost the logs. I will try to fix it whenever I stumble accross it again.

[attachment deleted by maintenance]
« Last Edit: September 03, 2010, 11:41:48 PM by grosbedo » Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #84 on: September 04, 2010, 11:42:18 AM »

So all previous bugs seems to be fixed. I once again caught the bot stopping to work, although it seems to be a different case than what I happened to encounter last time.

Anyway, here's the log (full attached, here only an excerpt) :

Code:
100904 21:00:24 DEBUG Client Authorized: [2] b - D0330ED962640BE8F6C15CAF6ED1A0BE
100904 21:00:24 VERBOSE RCON sending (999.999.999.999:27961) dumpuser 5
100904 21:00:25 VERBOSE Parsed user info {'team': -1, 'cid': '5'}
100904 21:00:25 INFO we are missing the guid but this is not a bot either, dumpuser
100904 21:00:25 VERBOSE RCON sending (999.999.999.999:27961) dumpuser 5
100904 21:00:26 DEBUG dumpuser 5 returned : Player 5 is not on the server
100904 21:00:26 INFO STDOUT Error: 'NoneType' object has no attribute 'split'
  File "/home/openarena/b3/b3/__init__.py", line 167, in start
    console.start()
  File "/home/openarena/b3/b3/parser.py", line 367, in start
    self.onStartup()
  File "/home/openarena/b3/b3/parser.py", line 422, in onStartup
    self.startup()
  File "/home/openarena/b3/b3/parsers/oa081.py", line 261, in startup
    self.OnClientuserinfochanged(None, userinfostring)
  File "/home/openarena/b3/b3/parsers/oa081.py", line 335, in OnClientuserinfochanged
    self.OnClientuserinfochanged(None, self.queryClientUserInfoByCid(cid))
  File "/home/openarena/b3/b3/parsers/oa081.py", line 300, in OnClientuserinfochanged
    bclient = self.parseUserInfo(data)
  File "/home/openarena/b3/b3/parsers/oa081.py", line 508, in parseUserInfo
    playerID, info = string.split(info, ' ', 1)
  File "/usr/lib/python2.6/string.py", line 292, in split
    return s.split(sep, maxsplit)

100904 21:00:26 INFO STDOUT

100904 21:00:26 BOT     Shutting down...
100904 21:00:26 VERBOSE AdvPlugin: Warning: No handle func for AdvPlugin
100904 21:00:26 INFO StatusPlugin: B3 stop/exit.. updating status
100904 21:00:26 DEBUG StatusPlugin: Writing XML status to /home/openarena/status.xml
100904 21:00:26 VERBOSE ChatloggerquoterPlugin: Warning: No handle func for ChatloggerquoterPlugin
100904 21:00:26 VERBOSE ForceteamPlugin: Warning: No handle func for ForceteamPlugin
100904 21:00:26 INFO PublistPlugin: Sending shutdown info to B3 master
100904 21:00:26 DEBUG RatemapPlugin: ran event
100904 21:00:26 BOT     Shutting down database connections...

All ip addresses have been masked for obvious privacy reasons.

So it seems the bot stops completely to work. I have added the --restart option, so maybe this will auto-restart the bot (I didn't take a look at how the restart function work yet), but anyway I think that this bug is worth some investigations.

[attachment deleted by maintenance]
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3484
Online Online
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #85 on: September 04, 2010, 12:25:28 PM »

I won't be able to work on this issue for the next 2 weeks. Remind me this in two weeks if you're still experiencing problems

Sent from my HTC Legend using Tapatalk
Logged

Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #86 on: September 05, 2010, 01:15:23 AM »

I won't be able to work on this issue for the next 2 weeks. Remind me this in two weeks if you're still experiencing problems

Yes I understand Wink I will try to do it on my own, if I can't, I will remind you. Thank you for your support Smiley
Logged
Former Dev. (senate)
*****
OS: Linux
Type: Owner dedicated server(s)
Gameservers: OpenArena
Posts: 258
Offline Offline
« Reply #87 on: September 16, 2010, 04:43:25 PM »

Ok, I stumbled over this crash issue again, here is the log :

Code:
100917 00:00:24    VERBOSE    RCON sending (999.999.999.999:27961) dumpuser 16
100917 00:00:25    VERBOSE    Parsed user info {'team': -1, 'cid': '16'}
100917 00:00:25    INFO    we are missing the guid but this is not a bot either, dumpuser
100917 00:00:25    VERBOSE    RCON sending (999.999.999.999:27961) dumpuser 16
100917 00:00:26    VERBOSE    Parsed user info {'team': -1, 'cid': '16'}
100917 00:00:26    INFO    we are missing the guid but this is not a bot either, dumpuser
100917 00:00:26    VERBOSE    RCON sending (999.999.999.999:27961) dumpuser 16
100917 00:00:26    DEBUG    dumpuser 16 returned : Player 16 is not on the server
100917 00:00:26    INFO    STDOUT Error: 'NoneType' object has no attribute 'split'
  File "/home/openarena/b3/b3/__init__.py", line 167, in start
    console.start()
  File "/home/openarena/b3/b3/parser.py", line 367, in start
    self.onStartup()
  File "/home/openarena/b3/b3/parser.py", line 422, in onStartup
    self.startup()
  File "/home/openarena/b3/b3/parsers/oa081.py", line 261, in startup
    self.OnClientuserinfochanged(None, userinfostring)
  File "/home/openarena/b3/b3/parsers/oa081.py", line 335, in OnClientuserinfochanged
    self.OnClientuserinfochanged(None, self.queryClientUserInfoByCid(cid))
  File "/home/openarena/b3/b3/parsers/oa081.py", line 335, in OnClientuserinfochanged
    self.OnClientuserinfochanged(None, self.queryClientUserInfoByCid(cid))
  File "/home/openarena/b3/b3/parsers/oa081.py", line 300, in OnClientuserinfochanged
    bclient = self.parseUserInfo(data)
  File "/home/openarena/b3/b3/parsers/oa081.py", line 508, in parseUserInfo
    playerID, info = string.split(info, ' ', 1)
  File "/usr/lib/python2.6/string.py", line 292, in split
    return s.split(sep, maxsplit)

100917 00:00:26    INFO    STDOUT

100917 00:00:26    BOT        Shutting down...

I think Ive found out why it happens : it must be when a player has disconnected at the very time B3 is checking for the list of users (between users list fetch and users infos querying). This is a very rare case, but it can happen.

Ive committed a simple fix, I hope it will work this out.

http://github.com/grosbedo/big-brother-bot/commit/29eee12710feb27ec145d82a4c89237d0fd2070b#diff-0

[attachment deleted by maintenance]
Logged
Tags: OpenArena 
Pages: 1 ... 4 5 [6]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal