Esempio n. 1
0
 def handle_update(self, message):
     update = message["update"]
     if not util.developer():
         logger.warn("Server says that Updating is needed.")
         self.progress.close()
         self.state = ClientState.OUTDATED
         fa.updater.fetchClientUpdate(update)
Esempio n. 2
0
 def handle_update(self, message):
     update = message["update"]
     if not util.developer():
         logger.warn("Server says that Updating is needed.")
         self.progress.close()
         self.state = ClientState.OUTDATED
         fa.updater.fetchClientUpdate(update)        
Esempio n. 3
0
    def openQuery(self, name, activate=False):
        # In developer mode, allow player to talk to self to test chat functions
        if (name == self.client.login) and not util.developer():
            return False

        #not allowing foes to talk to us.
        if (self.client.isFoe(name)) :
            return False

        if name not in self.channels:
            self.channels[name] = Channel(self, name, True)
            self.addTab(self.channels[name], user2name(name))

        if activate:
            self.setCurrentWidget(self.channels[name])

        self.channels[name].resizing()
        return True
Esempio n. 4
0
    def openQuery(self, name, activate=False):
        # In developer mode, allow player to talk to self to test chat functions
        if (name == self.client.login) and not util.developer():
            return False

        #not allowing foes to talk to us.
        if (self.client.isFoe(name)):
            return False

        if name not in self.channels:
            self.channels[name] = Channel(self, name, True)
            self.addTab(self.channels[name], user2name(name))

        if activate:
            self.setCurrentWidget(self.channels[name])

        self.channels[name].resizing()
        return True
Esempio n. 5
0




# Initialize logging system
import logging
import util
logger = logging.getLogger("faf.client")
#logger.setLevel(logging.DEBUG)

VERSION        = 0
VERSION_STRING = "development"

#Load build number from version file.
if not util.developer():        
    VERSION_STRING = open("version").read()
    VERSION = int(VERSION_STRING.rsplit('.', 1)[1])


# Initialize all important globals
LOBBY_HOST = 'lobby.faforever.com'
LOBBY_PORT = 8001
LOCAL_REPLAY_PORT = 15000
GAME_PORT_DEFAULT = 6112

# Important URLs
MUMBLE_URL = "mumble://{login}@mumble.faforever.com/Games?version=1.2.0" 
FORUMS_URL = "http://forums.faforever.com/forums"
WEBSITE_URL = "http://www.faforever.com"
UNITDB_URL = "http://content.faforever.com/faf/unitsDB/"