Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(60)  |  Call(60)  |  Derive(0)  |  Import(0)
Log a message from the console

src/b/3/b3-1.9.2/b3/parsers/cod.py   b3(Download)
            else:
                self.warning(
                    'PunkBuster test FAILED, Check your game server setup and B3 config! Disabling PB support!')
 
        # get map from the status rcon command
        except:
            self.game.fs_game = None
            self.warning('Could not query server for fs_game')
 
        try:
            self.game.fs_basepath = self.getCvar('fs_basepath').getString().rstrip('/')
            self.debug('fs_basepath: %s' % self.game.fs_basepath)
        except:
            self.game.fs_basepath = None
            self.warning('Could not query server for fs_basepath')
        except:
            self.game.fs_homepath = None
            self.warning('Could not query server for fs_homepath')
        try:
            self.game.shortversion = self.getCvar('shortversion').getString()
            self.debug('shortversion: %s' % self.game.shortversion)
        except:
            self.game.shortversion = None
            self.warning('Could not query server for shortversion')

src/b/i/big-brother-bot-HEAD/b3/parsers/cod.py   big-brother-bot(Download)
            else:
                self.warning(
                    'PunkBuster test FAILED, Check your game server setup and B3 config! Disabling PB support!')
 
        # get map from the status rcon command
        except:
            self.game.fs_game = None
            self.warning('Could not query server for fs_game')
 
        try:
            self.game.fs_basepath = self.getCvar('fs_basepath').getString().rstrip('/')
            self.debug('fs_basepath: %s' % self.game.fs_basepath)
        except:
            self.game.fs_basepath = None
            self.warning('Could not query server for fs_basepath')
        except:
            self.game.fs_homepath = None
            self.warning('Could not query server for fs_homepath')
        try:
            self.game.shortversion = self.getCvar('shortversion').getString()
            self.debug('shortversion: %s' % self.game.shortversion)
        except:
            self.game.shortversion = None
            self.warning('Could not query server for shortversion')

src/b/3/b3-1.9.2/b3/parsers/iourt41.py   b3(Download)
        except:
            self.game.fs_game = None
            self.warning("Could not query server for fs_game")
 
        try:
            self.game.fs_basepath = self.getCvar('fs_basepath').getString().rstrip('/')
            self.debug('fs_basepath: %s' % self.game.fs_basepath)
        except:
            self.game.fs_basepath = None
            self.warning("Could not query server for fs_basepath")
        except:
            self.game.fs_homepath = None
            self.warning("Could not query server for fs_homepath")
 
        self._maplist = self.getMaps()
            except Exception as err:
                if tries < 3:
                    self.warning(err)
                else:
                    self.error("cannot fix players teams : %s" % err) 
                        except Exception, err:
                            bclient['ip'] = ''
                            self.warning("Failed to get client %s ip address." % bclient['cid'], err)
 
 

src/b/i/big-brother-bot-HEAD/b3/parsers/iourt41.py   big-brother-bot(Download)
        except:
            self.game.fs_game = None
            self.warning("Could not query server for fs_game")
 
        try:
            self.game.fs_basepath = self.getCvar('fs_basepath').getString().rstrip('/')
            self.debug('fs_basepath: %s' % self.game.fs_basepath)
        except:
            self.game.fs_basepath = None
            self.warning("Could not query server for fs_basepath")
        except:
            self.game.fs_homepath = None
            self.warning("Could not query server for fs_homepath")
 
        self._maplist = self.getMaps()
            except Exception as err:
                if tries < 3:
                    self.warning(err)
                else:
                    self.error("cannot fix players teams : %s" % err) 
                        except Exception, err:
                            bclient['ip'] = ''
                            self.warning("Failed to get client %s ip address." % bclient['cid'], err)
 
 

src/b/3/b3-1.9.2/b3/parsers/oa081.py   b3(Download)
            self.game.fs_game = None
            self.game.modName = None
            self.warning("Could not query server for fs_game")
 
        try:
            self.game.fs_basepath = self.getCvar('fs_basepath').getString().rstrip('/')
            self.debug('fs_basepath: %s' % self.game.fs_basepath)
        except:
            self.game.fs_basepath = None
            self.warning("Could not query server for fs_basepath")
        except:
            self.game.fs_homepath = None
            self.warning("Could not query server for fs_homepath")
 
        try:
            self.game.gameType = self.defineGameType(self.getCvar('g_gametype').getString())
            self.debug('g_gametype: %s' % self.game.gameType)
        except:
            self.game.gameType = None
            self.warning("Could not query server for g_gametype")
                        bclient['ip'] = infoclient['ip']
                    else:
                        self.warning('failed to get client ip')
 
                if bclient.has_key('ip'):

src/b/i/big-brother-bot-HEAD/b3/parsers/oa081.py   big-brother-bot(Download)
            self.game.fs_game = None
            self.game.modName = None
            self.warning("Could not query server for fs_game")
 
        try:
            self.game.fs_basepath = self.getCvar('fs_basepath').getString().rstrip('/')
            self.debug('fs_basepath: %s' % self.game.fs_basepath)
        except:
            self.game.fs_basepath = None
            self.warning("Could not query server for fs_basepath")
        except:
            self.game.fs_homepath = None
            self.warning("Could not query server for fs_homepath")
 
        try:
            self.game.gameType = self.defineGameType(self.getCvar('g_gametype').getString())
            self.debug('g_gametype: %s' % self.game.gameType)
        except:
            self.game.gameType = None
            self.warning("Could not query server for g_gametype")
                        bclient['ip'] = infoclient['ip']
                    else:
                        self.warning('failed to get client ip')
 
                if bclient.has_key('ip'):

src/b/3/b3-1.9.2/b3/parsers/smg11.py   b3(Download)
                        self.clients.newClient(cid, name=bclient['name'], ip='0.0.0.0', state=b3.STATE_ALIVE, guid=guid, data={ 'guid' : guid }, money=20)
                    else:
                        self.warning('cannot connect player because he has no guid and is not a bot either')
                    self._connectingSlots.remove(cid)
                    return None
                        bclient['ip'] = infoclient['ip']
                    else:
                        self.warning('failed to get client ip')
 
                if bclient.has_key('ip'):
                    self.clients.newClient(cid, name=bclient['name'], ip=bclient['ip'], state=b3.STATE_ALIVE, guid=guid, data={ 'guid' : guid }, money=20)
                else:
                    self.warning('failed to get connect client')

src/b/i/big-brother-bot-HEAD/b3/parsers/smg11.py   big-brother-bot(Download)
                        self.clients.newClient(cid, name=bclient['name'], ip='0.0.0.0', state=b3.STATE_ALIVE, guid=guid, data={ 'guid' : guid }, money=20)
                    else:
                        self.warning('cannot connect player because he has no guid and is not a bot either')
                    self._connectingSlots.remove(cid)
                    return None
                        bclient['ip'] = infoclient['ip']
                    else:
                        self.warning('failed to get client ip')
 
                if bclient.has_key('ip'):
                    self.clients.newClient(cid, name=bclient['name'], ip=bclient['ip'], state=b3.STATE_ALIVE, guid=guid, data={ 'guid' : guid }, money=20)
                else:
                    self.warning('failed to get connect client')

src/b/3/b3-1.9.2/b3/parsers/sof2.py   b3(Download)
 
        if self.privateMsg:
            self.warning('SoF2 will need a mod to enable private messaging!')
 
        if not self.config.has_option('server', 'punkbuster') or self.config.getboolean('server', 'punkbuster'):

src/b/i/big-brother-bot-HEAD/b3/parsers/sof2.py   big-brother-bot(Download)
 
        if self.privateMsg:
            self.warning('SoF2 will need a mod to enable private messaging!')
 
        if not self.config.has_option('server', 'punkbuster') or self.config.getboolean('server', 'punkbuster'):