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 SupportCall of Duty seriesCall of Duty 5 (World at War) (Moderator: MordyT)CoD5:WaW authentication problem when PB is off
Pages: [1]   Go Down
  Print  
Author Topic: CoD5:WaW authentication problem when PB is off  (Read 2778 times) Bookmark and Share
Jr. Member
**
Posts: 24
Offline Offline
« on: January 03, 2010, 08:34:13 AM »

okay when I have punkbuster on my cod5 server off my b3 becomes unresponsive and wont authenticate the clients

I notice in the logs I see this:

Code:
100103 23:58:41 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:58:41 VERBOSE connectClient() = {}
100103 23:58:41 DEBUG fusi0n556 not yet fully connected, retrying...#:1
100103 23:58:45 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:58:46 VERBOSE connectClient() = {}
100103 23:58:46 DEBUG fusi0n556 not yet fully connected, retrying...#:2
100103 23:58:50 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:58:50 VERBOSE connectClient() = {}
100103 23:58:50 DEBUG fusi0n556 not yet fully connected, retrying...#:3
100103 23:58:54 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:58:55 VERBOSE connectClient() = {}
100103 23:58:55 DEBUG fusi0n556 not yet fully connected, retrying...#:4
100103 23:58:59 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:00 VERBOSE connectClient() = {}
100103 23:59:00 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:00 DEBUG fusi0n556 not yet fully connected, retrying...#:5
100103 23:59:00 VERBOSE StatusPlugin: Building XML status
100103 23:59:00 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml
100103 23:59:00 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:04 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:04 VERBOSE connectClient() = {}
100103 23:59:04 DEBUG fusi0n556 not yet fully connected, retrying...#:6
100103 23:59:08 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:09 VERBOSE connectClient() = {}
100103 23:59:09 DEBUG fusi0n556 not yet fully connected, retrying...#:7
100103 23:59:13 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:13 VERBOSE connectClient() = {}
100103 23:59:13 DEBUG fusi0n556 not yet fully connected, retrying...#:8
100103 23:59:15 DEBUG DupenamePlugin: Checking for Dupes
100103 23:59:17 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:18 VERBOSE connectClient() = {}
100103 23:59:18 DEBUG fusi0n556 not yet fully connected, retrying...#:9
100103 23:59:22 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:22 VERBOSE connectClient() = {}
100103 23:59:22 DEBUG fusi0n556 not yet fully connected, retrying...#:10
100103 23:59:26 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:59:27 VERBOSE connectClient() = {}
100103 23:59:27 DEBUG Couldn't Auth fusi0n556, giving up...

it gives empty result for connectClient() when punkbuster is turned off???
for sometimes it authenticates and sometimes it doesn't

any ideas why? or any solutions?


« Last Edit: January 03, 2010, 09:33:35 PM by fusi0n556 » Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #1 on: January 04, 2010, 11:23:45 AM »

Can you see what differs when it is or is not authenticating? ie. it isn't authing clients on the same machine, or in LAN environment, or other specifics?

I need at least some more loginfo, in this one you have already connected before the log you are posting.
Logged

Jr. Member
**
Posts: 24
Offline Offline
« Reply #2 on: January 05, 2010, 08:02:07 PM »

i got normal setup with dedicated set to 2

this is the log just before the authentication

Code:
100103 23:34:43 BOT    Start reading...
100103 23:34:47 ERROR PublistPlugin: Unable to reach B3 masterserver, maybe the service is down or internet was unavailable
100103 23:34:47 DEBUG PublistPlugin: 400
100103 23:34:51 CONSOLE 38:59 say;d3f802ce0fefc530b5539c72e5a95a46;0;fusi0n556-NRNS;!help
100103 23:34:51 DEBUG No client - attempt join
100103 23:34:51 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:34:51 VERBOSE connectClient() = {}
100103 23:34:51 DEBUG fusi0n556-NRNS connected, waiting for Authentication...
100103 23:34:51 DEBUG Our Authentication queue: {'0': 1}
100103 23:34:51 ERROR could not parse line local variable 'ip' referenced before assignment: [('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parser.py', 641, 'run', 'self.parseLine(line)'), ('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parsers\\q3a.py', 136, 'parseLine', 'event = func(action, data, match)'), ('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parsers\\cod.py', 208, 'OnSay', 'self.OnJ(action, data, match)'), ('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parsers\\cod4.py', 112, 'OnJ', "client = self.clients.newClient(match.group('cid'), name=match.group('name'), ip=ip, state=b3.STATE_ALIVE, guid=guid, pbid=pbid)")]
100103 23:34:53 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:34:54 VERBOSE connectClient() = {}
100103 23:34:54 DEBUG fusi0n556-NRNS not yet fully connected, retrying...#:1
100103 23:34:58 VERBOSE RCON sending (127.0.0.1:28960) status
100103 23:34:58 VERBOSE connectClient() = {}
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: January 05, 2010, 11:51:48 PM »

Looks like the gamelog file is not updated by the gameserver.
Open your gamelog file and watch it to make sure your gameserver is writting into it live.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #4 on: January 06, 2010, 12:13:50 AM »

You say cod5, but in the b3 log I read cod4:

100103 23:34:51   ERROR   could not parse line local variable 'ip' referenced before assignment: [('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parser.py', 641, 'run', 'self.parseLine(line)'), ('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parsers\\q3a.py', 136, 'parseLine', 'event = func(action, data, match)'), ('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parsers\\cod.py', 208, 'OnSay', 'self.OnJ(action, data, match)'), ('C:\\Program Files\\Activision\\Call of Duty 4 - Modern Warfare\\main\\home\\b3\\b3\\parsers\\cod4.py', 112, 'OnJ', "client = self.clients.newClient(match.group('cid'), name=match.group('name'), ip=ip, state=b3.STATE_ALIVE, guid=guid, pbid=pbid)")]

Where is the problem, cod4 or cod5?

Make sure you are using the latest version of the bot. Seems to me this is an older parser.
« Last Edit: January 06, 2010, 12:21:06 AM by xlr8or » Logged

Jr. Member
**
Posts: 24
Offline Offline
« Reply #5 on: January 06, 2010, 05:54:03 AM »

sorry wrong log....

this is the error i get when it does return connect_client() with a result

but some times i get no result for connect_client()

Code:
100106 21:47:59 CONSOLE 1262785679 J;946572344;0;[NRNS]fusi0n556
100106 21:47:59 DEBUG [NRNS]fusi0n556 connected, waiting for Authentication...
100106 21:47:59 DEBUG Our Authentication queue: {'0': 1}
100106 21:48:00 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:48:00 VERBOSE RCON sending (127.0.0.1:28960) say ^0[^2NRNS^0]^7: ^2Big Brother Bot is watching you... ^9BigBrotherBot.com
100106 21:48:00 VERBOSE StatusPlugin: Building XML status
100106 21:48:00 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml
100106 21:48:01 DEBUG newClient: 0, 946572344, [NRNS]fusi0n556
100106 21:48:01 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:48:02 VERBOSE connectClient() = {'0': {'slot': '0', 'last': '0', 'name': 'fusi0n556^7', 'ip': '127.0.0.1', 'ping': '9', 'pbid': None, 'qport': '5643', 'rate': '25000', 'score': '0', 'guid': '946572344', 'port': '28961'}}
100106 21:48:02 DEBUG fusi0n556^7 found in status/playerList
100106 21:48:02 ERROR STDERR Exception in thread Thread-3:
Traceback (most recent call last):
  File "C:\Python25\lib\threading.py", line 486, in __bootstrap_inner
    self.run()
  File "C:\Python25\lib\threading.py", line 663, in run
    self.function(*self.args, **self.kwargs)
  File "C:\Program Files\Activision\Call of Duty - World at War\main\home\b3\b3\parsers\cod5.py", line 164, in newPlayer
    client = self.clients.newClient(cid, name=name, ip=ip, state=b3.STATE_ALIVE, guid=guid, pbid=pbid, data={ 'codguid' : codguid })
UnboundLocalError: local variable 'pbid' referenced before assignment


100106 21:48:06 CONSOLE 1262785686 say;946572344;0;[NRNS]fusi0n556;!help
100106 21:48:06 DEBUG No client - attempt join
100106 21:48:06 DEBUG [NRNS]fusi0n556 connected, waiting for Authentication...
100106 21:48:06 DEBUG Our Authentication queue: {'0': 1}
100106 21:48:08 DEBUG newClient: 0, 946572344, [NRNS]fusi0n556
100106 21:48:08 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:48:09 VERBOSE connectClient() = {'0': {'slot': '0', 'last': '0', 'name': 'fusi0n556^7', 'ip': '127.0.0.1', 'ping': '9', 'pbid': None, 'qport': '5643', 'rate': '25000', 'score': '0', 'guid': '946572344', 'port': '28961'}}
100106 21:48:09 DEBUG fusi0n556^7 found in status/playerList
100106 21:48:09 ERROR STDERR Exception in thread Thread-5:
Traceback (most recent call last):
  File "C:\Python25\lib\threading.py", line 486, in __bootstrap_inner
    self.run()
  File "C:\Python25\lib\threading.py", line 663, in run
    self.function(*self.args, **self.kwargs)
  File "C:\Program Files\Activision\Call of Duty - World at War\main\home\b3\b3\parsers\cod5.py", line 164, in newPlayer
    client = self.clients.newClient(cid, name=name, ip=ip, state=b3.STATE_ALIVE, guid=guid, pbid=pbid, data={ 'codguid' : codguid })
UnboundLocalError: local variable 'pbid' referenced before assignment


100106 21:48:16 CONSOLE 1262785696 Q;946572344;0;[NRNS]fusi0n556
100106 21:49:00 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:49:00 VERBOSE StatusPlugin: Building XML status
100106 21:49:00 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml
Logged
Jr. Member
**
Posts: 24
Offline Offline
« Reply #6 on: January 06, 2010, 06:13:30 AM »

also with cod4 sometimes i will get a result for connectClient() and othertimes i will get an empty result, when i get an empty result for connectClient() it will not save the IP of the client to the database

i.e

Code:
100106 21:54:18 CONSOLE 0:53 J;d3f802ce0fefc530b5539c72e5a95a46;0;fusi0n556-NRNS
100106 21:54:18 DEBUG Getting the (status) Playerlist
100106 21:54:18 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:54:19 VERBOSE connectClient() = {}
100106 21:54:19 DEBUG guid: d3f802ce0fefc530b5539c72e5a95a46 (32), ip:
100106 21:54:19 VERBOSE 0 cid changed from None to 0
100106 21:54:19 DEBUG Client Connected: [0] fusi0n556-NRNS - d3f802ce0fefc530b5539c72e5a95a46 ({})
100106 21:54:19 DEBUG Storage: getClient <b3.clients.Client object at 0x02452F90>
100106 21:54:19 BOT     Client found in storage 8, welcome back fusi0n556-NRd
100106 21:54:19 DEBUG Storage: getClientAlias <b3.clients.Alias object at 0x02452E90>
100106 21:54:19 DEBUG Storage: setClientAlias <b3.clients.Alias object at 0x02452F70>
100106 21:54:19 DEBUG Storage: setClientAlias data {'num_used': 0, 'alias': 'fusi0n556-NRd', 'time_add': 1262786059, 'time_edit': 1262786059, 'client_id': 8}
100106 21:54:19 BOT     New alias for 8: fusi0n556-NRd
100106 21:54:19 DEBUG Storage: setClient <b3.clients.Client object at 0x02452F90>
100106 21:54:19 DEBUG Storage: setClient data {'time_add': 1262591734, 'time_edit': 1262786059, 'name': 'fusi0n556-NRNS', 'group_bits': 0, 'ip': '', 'auto_login': 1, 'greeting': '', 'pbid': '', 'connections': 7, 'mask_level': 0, 'guid': 'd3f802ce0fefc530b5539c72e5a95a46', 'id': 8}
100106 21:54:19 DEBUG Client Authorized: [0] fusi0n556-NRNS - d3f802ce0fefc530b5539c72e5a95a46
100106 21:54:19 VERBOSE Queueing event Client Authenticated <b3.clients.Client object at 0x02452F90>
100106 21:54:19 VERBOSE Parsing Event: Client Authenticated: WelcomePlugin
100106 21:54:22 CONSOLE 0:56 say;d3f802ce0fefc530b5539c72e5a95a46;0;fusi0n556-NRNS;!help
100106 21:54:22 VERBOSE Queueing event Say !help
100106 21:54:22 VERBOSE Parsing Event: Say: CensorPlugin
100106 21:54:22 VERBOSE Parsing Event: Say: SpamcontrolPlugin
100106 21:54:22 VERBOSE Parsing Event: Say: AdminPlugin
100106 21:54:22 DEBUG AdminPlugin: OnSay handle 5:"!help"
100106 21:54:22 DEBUG AdminPlugin: Handle command !help
100106 21:54:22 VERBOSE RCON sending (127.0.0.1:28960) tell 0 ^0[^2NRNS^0]^7: ^3[pm]^7 ^7Available commands: forgive, forgiveall, forgivelist, forgiveprev, grudge, help, iamgod, register, rules
100106 21:55:00 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:55:00 ERROR RCON: ERROR reading: No readable socket
100106 21:55:00 VERBOSE RCON: retry sending status...
100106 21:55:01 ERROR RCON: ERROR reading: No readable socket
100106 21:55:01 DEBUG RCON: Did not send any data
100106 21:55:01 VERBOSE StatusPlugin: Building XML status
100106 21:55:01 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml
100106 21:56:00 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:56:00 VERBOSE RCON sending (127.0.0.1:28960) say ^0[^2NRNS^0]^7: ^3Rule #1: No racism of any kind
100106 21:56:01 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:56:01 VERBOSE StatusPlugin: Building XML status
100106 21:56:01 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml
100106 21:56:30 VERBOSE RCON sending (127.0.0.1:28960) status




my client table for my database
Code:
id ip connections guid pbid name auto_login mask_level group_bits greeting login password time_add time_edit
1 112 WORLD WORLD World 1 0 0 1256892092 1262786033
8 7 d3f802ce0fefc530b5539c72e5a95a46 fusi0n556-NRNS 1 0 0 1262591734 1262786059
as you see the missing cell under ip for my client


now i know this can be fixed if we use punkbuster.. for cod5 we do use punkbuster but i just wanted to point this out because its related to the error i get for cod4 where I get empty result for IP's because the reutrn for connectClient() is empty

but the thing i dont understand even with authentication queues it still randomly either gives or doesnt give a result for connectClient() even for both cod4 and cod5, when punkbuster is not looking

ive spent a while trying to fix this myself but with no success

now from the cod4 parser it uses this def for joining clients:
Code:
   def OnJ(self, action, data, match=None):
where it refers to
Code:
           sp = self.connectClient(cid)
for new clients and that def is:
Code:
   def connectClient(self, ccid):
        if self.PunkBuster:
            self.debug('Getting the (PunkBuster) Playerlist')
        else:
            self.debug('Getting the (status) Playerlist')
        players = self.getPlayerList()
        self.verbose('connectClient() = %s' % players)

        for cid, p in players.iteritems():
            #self.debug('cid: %s, ccid: %s, p: %s' %(cid, ccid, p))
            if int(cid) == int(ccid):
                self.debug('Client found in status/playerList')
                return p

which refers to
Code:
       players = self.getPlayerList()

which is an import from b3.parsers.q3a

which is this def:
Code:
   def getPlayerList(self):
        if self.PunkBuster:
            return self.PunkBuster.getPlayerList()
        else:
            data = self.write('status')
            if not data:
                return {}

            players = {}
            for line in data.split('\n')[3:]:
                m = re.match(self._regPlayer, line.strip())
                if m:
                    d = m.groupdict()
                    d['pbid'] = None
                    players[str(m.group('slot'))] = d
                #elif '------' not in line and 'map: ' not in line and 'num score ping' not in line:
                    #self.verbose('getPlayerList() = Line did not match format: %s' % line)

        return players
now it will call the status of the server from rcon

but the thing i dont get is why sometimes m() does give a result, and why others it doesnt
you can see what i mean here from our banlist where this missing IP's:
http://205.234.153.131/echelon/banlist.php

now if im wrong please correct me
but i just dont understand why this is happening, and it would help if someone could help me fix it

please let me know if im too confusing because i know i can go off track sometimes, because my coding experience is quite minimal but i understand the basics

also i am using
dedicated 2
b3 version: b3-1.2.1

 
« Last Edit: January 06, 2010, 06:15:29 AM by fusi0n556 » Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #7 on: January 06, 2010, 09:20:53 AM »

sorry wrong log....

this is the error i get when it does return connect_client() with a result

but some times i get no result for connect_client()

Code:
100106 21:47:59 CONSOLE 1262785679 J;946572344;0;[NRNS]fusi0n556
100106 21:47:59 DEBUG [NRNS]fusi0n556 connected, waiting for Authentication...
100106 21:47:59 DEBUG Our Authentication queue: {'0': 1}
100106 21:48:00 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:48:00 VERBOSE RCON sending (127.0.0.1:28960) say ^0[^2NRNS^0]^7: ^2Big Brother Bot is watching you... ^9BigBrotherBot.com
100106 21:48:00 VERBOSE StatusPlugin: Building XML status
100106 21:48:00 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml
100106 21:48:01 DEBUG newClient: 0, 946572344, [NRNS]fusi0n556
100106 21:48:01 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:48:02 VERBOSE connectClient() = {'0': {'slot': '0', 'last': '0', 'name': 'fusi0n556^7', 'ip': '127.0.0.1', 'ping': '9', 'pbid': None, 'qport': '5643', 'rate': '25000', 'score': '0', 'guid': '946572344', 'port': '28961'}}
100106 21:48:02 DEBUG fusi0n556^7 found in status/playerList
100106 21:48:02 ERROR STDERR Exception in thread Thread-3:
Traceback (most recent call last):
  File "C:\Python25\lib\threading.py", line 486, in __bootstrap_inner
    self.run()
  File "C:\Python25\lib\threading.py", line 663, in run
    self.function(*self.args, **self.kwargs)
  File "C:\Program Files\Activision\Call of Duty - World at War\main\home\b3\b3\parsers\cod5.py", line 164, in newPlayer
    client = self.clients.newClient(cid, name=name, ip=ip, state=b3.STATE_ALIVE, guid=guid, pbid=pbid, data={ 'codguid' : codguid })
UnboundLocalError: local variable 'pbid' referenced before assignment


100106 21:48:06 CONSOLE 1262785686 say;946572344;0;[NRNS]fusi0n556;!help
100106 21:48:06 DEBUG No client - attempt join
100106 21:48:06 DEBUG [NRNS]fusi0n556 connected, waiting for Authentication...
100106 21:48:06 DEBUG Our Authentication queue: {'0': 1}
100106 21:48:08 DEBUG newClient: 0, 946572344, [NRNS]fusi0n556
100106 21:48:08 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:48:09 VERBOSE connectClient() = {'0': {'slot': '0', 'last': '0', 'name': 'fusi0n556^7', 'ip': '127.0.0.1', 'ping': '9', 'pbid': None, 'qport': '5643', 'rate': '25000', 'score': '0', 'guid': '946572344', 'port': '28961'}}
100106 21:48:09 DEBUG fusi0n556^7 found in status/playerList
100106 21:48:09 ERROR STDERR Exception in thread Thread-5:
Traceback (most recent call last):
  File "C:\Python25\lib\threading.py", line 486, in __bootstrap_inner
    self.run()
  File "C:\Python25\lib\threading.py", line 663, in run
    self.function(*self.args, **self.kwargs)
  File "C:\Program Files\Activision\Call of Duty - World at War\main\home\b3\b3\parsers\cod5.py", line 164, in newPlayer
    client = self.clients.newClient(cid, name=name, ip=ip, state=b3.STATE_ALIVE, guid=guid, pbid=pbid, data={ 'codguid' : codguid })
UnboundLocalError: local variable 'pbid' referenced before assignment


100106 21:48:16 CONSOLE 1262785696 Q;946572344;0;[NRNS]fusi0n556
100106 21:49:00 VERBOSE RCON sending (127.0.0.1:28960) status
100106 21:49:00 VERBOSE StatusPlugin: Building XML status
100106 21:49:00 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml

First lets deal with the cod5 problem. You discovered a bug in the cod5 parser that I fixed just now (hopefully)
The latest version of the cod5 parser is in my repository.

Please use the parser (cod5.py version 1.0.5) from this package: http://github.com/xlr8or/big-brother-bot/archives/master and let me know if the problem is solved.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #8 on: January 06, 2010, 09:36:07 AM »

The CoD4 parser missing ip's I can explain. Since the connectionline in cod4 does not contain an ip, we have to get a statusresponse to obtain them. When a player connects, in some occasions, the logline is available to B3 before the status of the game shows the new player. So it can´t get the ip, because it´s not available in the games status yet.

The same issue is at hand with cod5, even more so there. That´s why I introduced a connection queue that checks the status if the player is connected. I've written an alternative cod4 parser, based on the cod5 parser that should get rid of this problem.

Only thing is that I need a cod4 server (with pb and without pb) to debug the thing, over the forums it's too much of a hassle and communication issue.
Logged

Jr. Member
**
Posts: 24
Offline Offline
« Reply #9 on: January 06, 2010, 09:53:10 PM »

well thanks for the information xlr8or

also i used your new cod5 parser and no problems with punkbuster off

log:
Code:
100107 13:46:04 BOT     Start reading...
100107 13:46:06 ERROR PublistPlugin: Unable to reach B3 masterserver, maybe the service is down or internet was unavailable
100107 13:46:06 DEBUG PublistPlugin: 400
100107 13:47:00 VERBOSE RCON sending (127.0.0.1:28960) status
100107 13:47:00 VERBOSE StatusPlugin: Building XML status
100107 13:47:00 DEBUG StatusPlugin: Writing XML status to C:\Users\Cameron/status.xml
100107 13:47:06 CONSOLE 1262843226 J;946572344;0;[NRNS]fusi0n556
100107 13:47:06 DEBUG [NRNS]fusi0n556 connected, waiting for Authentication...
100107 13:47:06 DEBUG Our Authentication queue: {'0': 1}
100107 13:47:08 DEBUG newClient: 0, 946572344, [NRNS]fusi0n556
100107 13:47:08 VERBOSE RCON sending (127.0.0.1:28960) status
100107 13:47:08 CONSOLE 1262843228 JT;946572344;0;axis;[NRNS]fusi0n556;
100107 13:47:08 VERBOSE connectClient() = {'0': {'slot': '0', 'last': '0', 'name': 'fusi0n556^7', 'ip': '127.0.0.1', 'ping': '13', 'pbid': None, 'qport': '24863', 'rate': '25000', 'score': '0', 'guid': '946572344', 'port': '28961'}}
100107 13:47:08 DEBUG fusi0n556^7 found in status/playerList
100107 13:47:08 VERBOSE 0 cid changed from None to 0
100107 13:47:08 DEBUG Client Connected: [0] [NRNS]fusi0n556 - 946572344 ({'codguid': '946572344'})
100107 13:47:08 DEBUG Storage: getClient <b3.clients.Client object at 0x02773EB0>
100107 13:47:08 DEBUG User not found 946572344: 'No client matching guid 946572344'
100107 13:47:08 BOT     Client not found in the storage 946572344, create new
100107 13:47:08 DEBUG Storage: setClient <b3.clients.Client object at 0x02773EB0>
100107 13:47:08 DEBUG Storage: setClient data {'time_add': 1262843228, 'time_edit': 1262843228, 'name': '[NRNS]fusi0n556', 'group_bits': 0, 'ip': '127.0.0.1', 'greeting': '', 'auto_login': 1, 'connections': 1, 'mask_level': 0, 'guid': '946572344', 'pbid': None}
100107 13:47:08 DEBUG Client Authorized: [0] [NRNS]fusi0n556 - 946572344
100107 13:47:08 VERBOSE Queueing event Client Authenticated <b3.clients.Client object at 0x02773EB0>
100107 13:47:08 VERBOSE Parsing Event: Client Authenticated: WelcomePlugin
100107 13:47:11 CONSOLE 1262843231 say;946572344;0;[NRNS]fusi0n556;!help
100107 13:47:11 VERBOSE Queueing event Say !help
100107 13:47:11 VERBOSE Parsing Event: Say: CensorPlugin
100107 13:47:11 VERBOSE Parsing Event: Say: SpamcontrolPlugin
100107 13:47:11 VERBOSE Parsing Event: Say: AdminPlugin
100107 13:47:11 DEBUG AdminPlugin: OnSay handle 5:"!help"
100107 13:47:11 DEBUG AdminPlugin: Handle command !help

also could I test your new cod4 parser... I do tests on my own PC and my Servers with punkbuster on and off
« Last Edit: January 06, 2010, 09:56:34 PM by fusi0n556 » Logged
[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #10 on: January 07, 2010, 01:45:33 AM »

You already did test the alternative cod4 parser a while back: http://www.bigbrotherbot.com/forums/cod4/cod4-parser-missing-ip%27s-without-punkbuster/msg8310/#msg8310

Only thing is that there is not enough info for me in the logs you provided...
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #11 on: January 08, 2010, 09:16:30 AM »

This discussion is closed. The cod4 issue is discussed in the appropriate forum / topic here:
http://www.bigbrotherbot.com/forums/cod4/cod4-parser-missing-ip%27s-without-punkbuster/
Logged

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


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal