Beispiel #1
0
 def setUp(self):
     logger = logging.getLogger('output')
     logger.propagate = False
     B3TestCase.setUp(self)
     self.pb = PunkBuster(self.console)
     logger.setLevel(VERBOSE2)
     logger.propagate = True
    def startup(self):
        """
        Called after the parser is created before run().
        """
        if not self.config.has_option('server', 'game_log'):
            self.critical(
                "Your main config file is missing the 'game_log' setting in section 'server'"
            )
            raise SystemExit(220)

        # add the world client
        self.clients.newClient('1022',
                               guid='WORLD',
                               name='World',
                               hide=True,
                               pbid='WORLD')
        if self.config.has_option('server',
                                  'punkbuster') and self.config.getboolean(
                                      'server', 'punkbuster'):
            self.PunkBuster = PunkBuster(self)

        self._eventMap['warmup'] = self.getEventID('EVT_GAME_WARMUP')
        self._eventMap['shutdowngame'] = self.getEventID('EVT_GAME_ROUND_END')

        # force g_logsync
        self.debug('Forcing server cvar g_logsync to %s' % self._logSync)
        self.setCvar('g_logsync', self._logSync)
Beispiel #3
0
    def startup(self):
        if not self.config.has_option('server','game_log'):
            self.critical("your main config file is missing the 'game_log' setting in section 'server'")
            raise SystemExit(220)

        # add the world client
        client = self.clients.newClient('1022', guid='WORLD', name='World', hide=True, pbid='WORLD')

        if self.config.has_option('server', 'punkbuster') and self.config.getboolean('server', 'punkbuster'):
            self.PunkBuster = PunkBuster(self)
    def startup(self):
        # add the world client
        client = self.clients.newClient(1022,
                                        guid='WORLD',
                                        name='World',
                                        hide=True,
                                        pbid='WORLD')

        if self.config.has_option('server',
                                  'punkbuster') and self.config.getboolean(
                                      'server', 'punkbuster'):
            self.PunkBuster = PunkBuster(self)
Beispiel #5
0
    def startup(self):
        """
        Called after the parser is created before run().
        """
        self.clients.new_client('-1', guid=self.gameName + ':WORLD', name='World', pbid='WORLD', hide=True)
        self.PunkBuster = PunkBuster.PunkBuster(self)
        self._eventMap['warmup'] = self.getEventID('EVT_GAME_WARMUP')
        self._eventMap['restartgame'] = self.getEventID('EVT_GAME_ROUND_END')

        # force g_logsync
        self.debug('Forcing server cvar g_logsync to %s' % self._logSync)
        self.setCvar('g_logsync', self._logSync)